⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 data.xml

📁 一个考试的程序
💻 XML
字号:
<test1>
<question>
<note>
multiple selection
</note>
<detail>
Given
1	public class X{
2		public Object m(){
3			Object o = new Float(3.14F);
4			Object [] oa = new Object[1];
5			oa[0] = o;
6			o=null;
7			return oa[0];
8		}
9	}

When is the Float object, created in line 3,eligible for garbage collection?
</detail>
<choice>
just after line 5
just after line 6
just after line 7(that is,as the method returns)
never in this method
</choice>
<answer>
0001
</answer>
</question>


<question>
<note>
multiple selection
</note>
<detail>
Consider the following classes:
	public class Test {
		public static void test() {
			this.print();
		}
		public static void print() {
			System.out.println("Test");
		}
		public static void main(String args []) {
			test();
		}
	}
What is the result of compiling and running this class?
</detail>

<choice>
The string Test is printed to the standard out. 
A runtime exception is raised stating that an object has not been created. 
Nothing is printed to the standard output. 
An exception is raised stating that the method test cannot be found. 
An exception is raised stating that the variable this can only be used within an instance. 
The class fails to compile stating that the variable this is undefined.
</choice>
<answer>
000001
</answer>
</question>

<question>
<note>
single selection
</note>
<detail>
Which of these is the correct format to use to create the literal char value a?

A)	'a' 
B)	"a" 
C)	new Character(a) 
D)	\000a 
Select the most appropriate answer.
</detail>
<choice>
A
B
C
D
</choice>
<answer>
1000
</answer>
</question>
</test1>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -