Pessoal, no exame cai perguntas do tipo:
class C {
public static void main(String args[]) {
System.out.print(Long.toHexString(Long.MIN_VALUE)+",");
System.out.print(Long.toHexString(Long.MAX_VALUE));
}
}
What is the result of attempting to compile and run the program?
a. Prints: 80000000,7fffffff
b. Prints: 8000000000000000,7fffffffffffffff
c. Prints: 7fffffff,80000000
d. Prints: 7fffffffffffffff,8000000000000000
e. Prints: 00000000,ffffffff
f. Prints: 0000000000000000,ffffffffffffffff
g. Compiler Error
h. Runtime Error
i. None of the Above
Fiz um simulado que tinha umas 3 questões desse tipo, pra saber esses valores só decorando, e acho que esse não é objetivo do exame…
Quem já fez, por favor, deixe seu comentário…
Valeu…