Oracle 1z0-808 Exam11 Oracle 1z0-808 Exam 2024: Question #5 Oracle 1z0-808 Exam 2024: Question #5 Oracle 1z0-808 Exam: Question #5 해설 질문 원본 내용 What is the name of the Java concept that uses access modifiers to protect variables and hide them within a class? A. Encapsulation B. Inheritance C. Abstraction D. Instantiation E. Polymorphism 질문 번역 Java에서 접근 제어자를 사용하여 변수를 보호하고 클래스 내부에 숨기는 개념은 무엇인가요? A. 캡슐화 (Encapsulation) B. 상속 (Inheritance) C. 추상화 (Abstraction) D. 인스턴스화 (Instantiation) E. 다형성 (Pol.. 2024. 2. 18. Oracle 1z0-808 Exam 2024: Question #4 Oracle 1z0-808 Exam 2024: Question #4 Oracle 1z0-808 Exam: Question #4 해설 질문 원본 내용 Consider the following code: public static void main(String[] args) { Short s1 = 200; Integer s2 = 400; Long s3 = (long) s1 + s2; // line n1 String s4 = (String) (s3 * s2); // line n2 System.out.println("Sum is " + s4); } What is the result? A. Sum is 600 B. Compilation fails at line n1. C. Compilation fails at line n2. D. A ClassCastException is thro.. 2024. 2. 18. Oracle 1z0-808 Exam 2024: Question #3 Oracle 1z0-808 Exam 2024: Question #3 Oracle 1z0-808 Exam: Question #3 해설 질문 원본 내용 Question #3 Consider the following code: public static void main(String[] args) { String date = LocalDate .parse("2014-05-04") .format(DateTimeFormatter.ISO_DATE_TIME); System.out.println(date); } What is the result? A. May 04, 2014T00:00:00.000 B. 2014-05-04T00:00:00.000 C. 5/4/14T00:00:00.000 D. An exception is thrown at runtime. 질문 번역 다음 Java 코드에 대.. 2024. 2. 18. Oracle 1z0-808 Exam 2024: Question #2 Oracle 1z0-808 Exam 2024: Question #2 Oracle 1z0-808 Exam: Question #2 해설 질문 원본 내용 Question #2 Which statement is true about the switch statement? A. It must contain the default section. B. The break statement, at the end of each case block, is optional. C. Its case label literals can be changed at runtime. D. Its expression must evaluate to a collection of values. 질문 번역 다음은 switch 문에 대한 진술입니다. 어느 것이 참인가요? A. 반드시 default 섹션이 포함되어야 한.. 2024. 2. 18. Oracle 1z0-808 Exam 2024: Question #1 Oracle 1z0-808 Exam 2024: Question #1 질문 원본 내용 Question #1 Consider the following code: class Product { double price; } public class Test { public void updatePrice(Product product, double price) { price = price * 2; product.price = product.price + price; } public static void main(String[] args) { Product prt = new Product(); prt.price = 200; double newPrice = 100; Test t = new Test(); t.updatePrice(prt, newPrice); System.out.println.. 2024. 2. 18. 이전 1 2 다음