Jeanne Boyarsky - OCP Oracle Certified Professional Java SE 17 Developer Study Guide

Здесь есть возможность читать онлайн «Jeanne Boyarsky - OCP Oracle Certified Professional Java SE 17 Developer Study Guide» — ознакомительный отрывок электронной книги совершенно бесплатно, а после прочтения отрывка купить полную версию. В некоторых случаях можно слушать аудио, скачать через торрент в формате fb2 и присутствует краткое содержание. Жанр: unrecognised, на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале библиотеки ЛибКат.

OCP Oracle Certified Professional Java SE 17 Developer Study Guide: краткое содержание, описание и аннотация

Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «OCP Oracle Certified Professional Java SE 17 Developer Study Guide»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.

An effective and practical study aid to the new OCP Java SE 17 Developer certification exam In the
, you'll find accessible and essential test prep material for the in-demand and practical OCP Java SE 17 Developer certification. Providing comprehensive coverage of all OCP Java SE 17 exam objectives and competencies, the Study Guide offers you access to all the skills and knowledge you'll need to succeed on the test and in the field as a new or experienced Java developer.
This book provides material on records, sealed classes, text blocks, dates, streams, controlling program flow, using the Java object-oriented approach, handling exceptions, working with arrays and collections, and more. You'll also get:
Intuitively organized information that aligns with the competencies tested on the exam and those required by real-world Java developers Opportunities to practice and develop skills that remain in high demand in the IT industry Access to the Sybex online learning center, with chapter review questions, full-length practice exams, hundreds of electronic flashcards, and a glossary of key terms Perfect for anyone prepping for the brand-new OCP Java SE 17 credential,
is also a can't-miss reference for practicing and aspiring Java developers seeking to learn or reinforce their foundational skills in Java programming and improve their performance on the job.

OCP Oracle Certified Professional Java SE 17 Developer Study Guide — читать онлайн ознакомительный отрывок

Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «OCP Oracle Certified Professional Java SE 17 Developer Study Guide», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

5 What is the result of the following program?1: public class MathFunctions { 2: public static void addToInt(int x, int amountToAdd) { 3: x = x + amountToAdd; 4: } 5: public static void main(String[] args) { 6: var a = 15; 7: var b = 10; 8: MathFunctions.addToInt(a, b); 9: System.out.println(a); } }101525Compiler error on line 3Compiler error on line 8None of the above

6 Suppose that we have the following property files and code. What values are printed on lines 8 and 9, respectively?Penguin.properties name=Billy age=1 Penguin_de.properties name=Chilly age=4 Penguin_en.properties name=Willy 5: Locale fr = new Locale("fr"); 6: Locale.setDefault(new Locale("en", "US")); 7: var b = ResourceBundle.getBundle("Penguin", fr); 8: System.out.println(b.getString("name")); 9: System.out.println(b.getString("age"));Billy and 1Billy and nullWilly and 1Willy and nullChilly and nullThe code does not compile.

7 What is guaranteed to be printed by the following code? (Choose all that apply.)int[] array = {6,9,8}; System.out.println("B" + Arrays.binarySearch(array,9)); System.out.println("C" + Arrays.compare(array, new int[] {6, 9, 8})); System.out.println("M" + Arrays.mismatch(array, new int[] {6, 9, 8}));B1B2C-1C0M-1M0The code does not compile.

8 Which functional interfaces complete the following code, presuming variable r exists? (Choose all that apply.)6: ______ x = r.negate(); 7: ______ y = () -> System.out.println(); 8: ______ z = (a, b) -> a - b;BinaryPredicateComparableComparatorConsumerPredicateRunnableRunnable

9 Suppose you have a module named com.vet. Where could you place the following module-info.java file to create a valid module?public module com.vet { exports com.vet; }At the same level as the com folderAt the same level as the vet folderInside the vet folderNone of the above

10 What is the output of the following program? (Choose all that apply.)1: interface HasTail { private int getTailLength(); } 2: abstract class Puma implements HasTail { 3: String getTailLength() { return "4"; } 4: } 5: public class Cougar implements HasTail { 6: public static void main(String[] args) { 7: var puma = new Puma() {}; 8: System.out.println(puma.getTailLength()); 9: } 10: public int getTailLength(int length) { return 2; } 11: }24The code will not compile because of line 1.The code will not compile because of line 3.The code will not compile because of line 5.The code will not compile because of line 7.The code will not compile because of line 10.The output cannot be determined from the code provided.

11 Which lines in Tadpole.java give a compiler error? (Choose all that apply.)// Frog.java 1: package animal; 2: public class Frog { 3: protected void ribbit() { } 4: void jump() { } 5: } // Tadpole.java 1: package other; 2: import animal.*; 3: public class Tadpole extends Frog { 4: public static void main(String[] args) { 5: Tadpole t = new Tadpole(); 6: t.ribbit(); 7: t.jump(); 8: Frog f = new Tadpole(); 9: f.ribbit(); 10: f.jump(); 11: } }Line 5Line 6Line 7Line 8Line 9Line 10All of the lines compile.

12 Which of the following can fill in the blanks in order to make this code compile?__________ a = __________.getConnection( url, userName, password); __________ b = a.prepareStatement(sql); __________ c = b.executeQuery(); if (c.next()) System.out.println(c.getString(1));Connection, Driver, PreparedStatement, ResultSetConnection, DriverManager, PreparedStatement, ResultSetConnection, DataSource, PreparedStatement, ResultSetDriver, Connection, PreparedStatement, ResultSetDriverManager, Connection, PreparedStatement, ResultSetDataSource, Connection, PreparedStatement, ResultSet

13 Which of the following statements can fill in the blank to make the code compile successfully? (Choose all that apply.)Set

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

Похожие книги на «OCP Oracle Certified Professional Java SE 17 Developer Study Guide»

Представляем Вашему вниманию похожие книги на «OCP Oracle Certified Professional Java SE 17 Developer Study Guide» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё непрочитанные произведения.


Отзывы о книге «OCP Oracle Certified Professional Java SE 17 Developer Study Guide»

Обсуждение, отзывы о книге «OCP Oracle Certified Professional Java SE 17 Developer Study Guide» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.

x