Pessoal nao entendii essas duas questoes abaixo . A resposta da 9 é " d " e da 13 é f . Alguem poderia me dar um toque ??
Question 9
class A {
public static void main (String[] args) {
float a = 1; // 1
float b = 1L; // 2
float c = 1F; // 3
float d = 1.0; // 4
}
}
A compile-time error is generated at which lines?
a. 1
b. 2
c. 3
d. 4
e. None of the Above
Question 13
class Orange {
public static void main (String[] args) {
char c = ‘u000a’; // ‘u000a’ = Linefeed
System.out.print(“ABC” + c);
}
}
What is the result of attempting to compile and run the program?
a. Prints: ABC
b. Prints: ABCc
c. Prints: ABC10
d. Prints: ABCa
e. Prints: ABC0x000a
f. Compiler error.
g. Runtime error.
h. None of the Above
