.
.
. . .
. . .
Java 基础
Which of the following will compile correctly?
float f=10f;
float f=10.1;
float f=10.1f;
byte b=10b;
Which declarations of identifiers are legal
$persons
TwoUsers
*point
this
_endline
Which statement of assigning a long type variable to a hexadecimal value is correct
long number = 345L;
long number = 0345;
long number = 0345L;
long number = 0x345L
Which of the following fragments might cause errors
String s = Gone with the wind; String t = good ;
String k = s + t;
String s = Gone with the wind; String t;
t = s[3] + one;
String s = Gone with the wind; String standard = s.toUpperCase();
String s = home directory; String t = s - directory;
Which are syntactically valid statement at// point x class Person {
private int a;
public int change(int m){ return m; }
}
public class Teacher extends Person { public int b;
public static void main(String arg[]){ Person p = new Person();
Teacher t = new Teacher(); int i;
// point x
}
}
i = m;
i = b;
i = p.a;
i = p.change(30);
i = t.b.
Which layout manager is used when the frame is resized the buttonss position in the Frame might be changed
BorderLayout
FlowLayout
CardLayout
GridLayout
Given the following code fragment:
1) public void create() { 2} Vector myVect;
3} myVect = new Vector();
4} }
Which of the following statements are true
The declaration on line 2 does not allocate memory space for the variable myVect.
The declaration on line 2 allocates memory space for a reference to a Vector object.
The statement on line 2 creates an object of class Vector.
The statement on line 3 creates an object of class Vector.
The statement on line 3 allocates memory space for an object of class Vector
Which of the following answer is correct to express the value 8 in octal number A.
0x10
08
0x8
Which are not Java keywords
TRUE
sizeof
const
super
void
Which of the following statements are true
The equals() method determines if reference values refer to the same object.
The == operator determines if the contents and ty
您可能关注的文档
- 几种沼气厌氧发酵工艺比较.docx
- 北师大版小学二年级数学认识钟表练习题1.docx
- 服务行业的员工手册.docx
- 软件股份有限公司库房管理规定.docx
- 小学生综合素质评价表.docx
- 就业指导课-(电子教案).docx
- 心理知识竞赛题库完整.docx
- 托管中心全年工作计划总结.docx
- 2020年节后复工复产公司安全检查表.docx
- 高低压配电房电气设备托管服务合同模板.docx
- 全过程工程管理造价咨询工程监理项目服务方案投标方案(技术部分).doc
- 招标代理服务投标技术服务方案(技术方案).doc
- AI大模型与AIGC技术在公安领域的应用解决方案(99页 PPT).pptx
- 工业4.0智能制造数字工厂规划方案.pptx
- 树立社会主义核心价值观.docx
- 三年(2023-2025)中考历史真题分类汇编(全国)专题21 科技文化与社会生活(解析版).docx
- 2025年中考道德与法治真题完全解读(吉林卷).pdf
- 2025年中考道德与法治真题完全解读(安徽卷).pdf
- 三年(2023-2025)中考历史真题分类汇编(全国)专题14 人民解放战争(解析版).pdf
- 三年(2023-2025)广东中考历史真题分类汇编:专题03 中国近代史(八年级上册)(解析版).docx
最近下载
- B0205精密自动车床操作说明书.pdf VIP
- 山东省济南市历下区四年级(上)期末数学试卷.pdf VIP
- 统编人教版六年级语文上册全册课后习题答案.pdf VIP
- 苏州中学伟长试验部历年招生试题.docx VIP
- 2025湖北荆州市公安县事业单位急需紧缺人才引进86人笔试备考试题及答案解析.docx VIP
- 2024届四川省成都市金堂县中考联考历史试题含解析.doc VIP
- 丹佛斯磁悬浮压缩机轴承原理及控制.pdf VIP
- 2026人教版小学三年级下册英语期末综合试卷(4套含答案解析).pdf
- 山东省济南市历下区2023-2024学年四年级上学期语文期末考试试卷(含答案).pdf VIP
- 2025湖北荆州市公安县事业单位急需紧缺人才引进86人笔试备考题库及答案解析.docx VIP
原创力文档

文档评论(0)