Oracle 1Z0-815 Actual Free Exam Questions & Community Discussion
Given the code fragment:
int b = 3;
if ( !(b > 3)) {
System.out.println("square");
}{
System.out.println("circle");
}
System.out.println("...");
What is the result?
int b = 3;
if ( !(b > 3)) {
System.out.println("square");
}{
System.out.println("circle");
}
System.out.println("...");
What is the result?
Correct Answer: D
Vote an answer
Given:
class Overloading {
int x(double d) {
System.out.println("one");
return 0;
}
String x(double d) {
System.out.println("two");
return null;
}
double x(double d) {
System.out.println("three");
return 0.0;
}
public static void main(String[] args) {
new Overloading().x(4.0);
}
}
What is the result?
class Overloading {
int x(double d) {
System.out.println("one");
return 0;
}
String x(double d) {
System.out.println("two");
return null;
}
double x(double d) {
System.out.println("three");
return 0.0;
}
public static void main(String[] args) {
new Overloading().x(4.0);
}
}
What is the result?
Correct Answer: B
Vote an answer
Given:

What is the result?

What is the result?
Correct Answer: A
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

What is the output?

What is the output?
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
What is the result?
public class StringReplace {
public static void main(String[] args) {
String message = "Hi everyone!";
System.out.println("message = " + message.replace("e", "X")); } }
public class StringReplace {
public static void main(String[] args) {
String message = "Hi everyone!";
System.out.println("message = " + message.replace("e", "X")); } }
Correct Answer: E
Vote an answer
Given:

What is the output?

What is the output?
Correct Answer: D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
0
0
0
10

