본문 바로가기

Oracle 1z0-808 Exam11

Oracle 1z0-808 Exam 2024: Question #11
Oracle 1z0-808 Exam 2024: Question #11 Oracle 1z0-808 Exam: Question #11 해설 질문 원본 내용 Given: interface Readable { public void readBook(); public void setBookMark(); } abstract class Book implements Readable { // line n1 public void readBook() { } // line n2 } class EBook extends Book { // line n3 public void readBook() { } // line n4 } And given the code fragment: Book book1 = new EBook(); book1.readBook(); Which option enables the co.. 2024. 2. 23.
Oracle 1z0-808 Exam 2024: Question #10
Oracle 1z0-808 Exam 2024: Question #10 Oracle 1z0-808 Exam: Question #10 해설 질문 원본 내용 Given the following code: public static void main(String[] args) { StringBuilder sb = new StringBuilder("Java"); String s = "Java"; if (sb.toString().equals(s.toString())) { System.out.println("Match 1"); } else if (sb.equals(s)) { System.out.println("Match 2"); } else { System.out.println("No Match"); } } What is the result? A. Match 1 B. Match 2 C... 2024. 2. 21.
Oracle 1z0-808 Exam 2024: Question #9
Oracle 1z0-808 Exam 2024: Question #9 Oracle 1z0-808 Exam : Question #9 해설 질문 원본 내용 Given these two classes: public class Customer { ElectricAccount acct = new ElectricAccount(); public void useElectricity(double kWh) { acct.addKWh(kWh); } } public class ElectricAccount { private double kWh; private double rate = 0.07; private double bill; // methods should be written here at line n1 } Any amount of electricity used by a customer (r.. 2024. 2. 21.
Oracle 1z0-808 Exam 2024: Question #8
Oracle 1z0-808 Exam 2024: Question #8 Oracle 1z0-808 Exam: Question #8 해설 질문 원본 내용 Given the following class declarations: class Caller { private void init() { System.out.println("Initialized"); } private void start() { init(); System.out.println("Started"); } } public class TestCall { public static void main(String[] args) { Caller c = new Caller(); c.start(); // line n1 c.init(); // line n2 } } What is the result? A. Compilation f.. 2024. 2. 20.
Oracle 1z0-808 Exam 2024: Question #7
Oracle 1z0-808 Exam 2024: Question #7 Oracle 1z0-808 Exam: Question #7 해설 질문 원본 내용 Given the following class declarations: abstract class Planet { protected void revolve() { // line n1 } abstract void rotate(); // line n2 } class Earth extends Planet { void revolve() { // line n3 } protected void rotate() { // line n4 } } And the following main method: Car c1 = new Car("Auto"); Car c2 = new Car("4W", 150, "Manual"); System.out.print.. 2024. 2. 19.
Oracle 1z0-808 Exam 2024: Question #6
Oracle 1z0-808 Exam 2024: Question #6 Oracle 1z0-808 Exam: Question #6 해설 질문 원본 내용 Consider the following code: abstract class Planet { protected void revolve() { // line n1 } abstract void rotate(); // line n2 } class Earth extends Planet { void revolve() { // line n3 } protected void rotate() { // line n4 } } Which two modifications, made independently, enable the code to compile? (Choose two.) A. Make the method at line n1 public.. 2024. 2. 19.