| Exam Code/Number: | 1z1-808Join the discussion |
| Exam Name: | Java SE 8 Programmer I |
| Certification: | Oracle |
| Question Number: | 398 |
| Publish Date: | May 30, 2026 |
|
Rating
100%
|
|
Given:
public class MainMethod {
void main() {
System.out.println("one");
}
static void main(String args) {
System.out.println("two");
}
public static void main(String[] args) {
System.out.println("three");
}
void mina(Object[] args) {
System.out.println("four");
}
}
What is printed out when the program is excuted?
Given:
public class Marklist {
int num;
public static void graceMarks(Marklist obj4) {
obj4.num += 10;
}
public static void main(String[] args) {
MarkList obj1 = new MarkList();
MarkList obj2 = obj1;
MarkList obj1 = null;
obj2.num = 60;
graceMarks(obj2);
}
}
How many objects are created in the memory runtime?
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")); }
}
Oracle.1z1-808.v2024-09-23.q208
Sep 23, 2024
Oracle.1z1-808.v2022-09-11.q147
Sep 11, 2022
Oracle.1z1-808.v2022-05-26.q226
May 26, 2022