Given the code fragment:
What is the result?
a memory address1 in hexadecimal number format
a memory address2 in hexadecimal number format
10, 15
[10, 15]
0, 10, 15
[10, 15, null]
a memory address in hexadecimal number format
What is the meaning of “write once, run anywhere” in Java?
Java programs are designed to run only in web browsers and, thus, can run wherever there is a browser.
It is a marketing statement because Java programs must be compiled for a specific platform in order to run.
Java programs can run on any Java Virtual Machine without being recompiled.
Java programs, after being compiled, can run on any platform or device even without a Java Virtual Machine.
25.67
25.00
25.7
26
Given:
300
100
200
A compilation error occurs.
3 : 1
3 : 2
0 : 1
2 : 0
Which statement is true about exception handling?
At least one catch block must accompany a try statement.
All statements in a try block are executed, even if an exception occurs in the middle of the try block.
At least one statement in a try block must throw an exception.
All catch blocks must be ordered from general to most specific.
false
true
Which statement, when inserted at line n1, enables the Course class to compile?
int newFee;
double newFee;
long newFee;
float newFee;