Oracle Certified Professional: Java SE 11 Developer (1Z0-819) Practice Test
Oracle Certified Professional: Java SE 11 Developer (1Z0-819) के लिए अपना आत्मविश्वास बढ़ाएँ। अवधारणाओं का अभ्यास करें, उत्तरों को समझें और हर सवाल के साथ अपना ज्ञान मज़बूत करें।
एक नमूना सवाल आज़माएँपरीक्षा का परिचय और विवरण
Oracle Certified Professional: Java SE 11 Developer (1Z0-819) सर्टिफिकेशन उद्योग-मानक क्रेडेंशियल है जो पेशेवर Java प्रोग्रामिंग कौशल को मान्य करता है, और यह दुनिया में सबसे अधिक मान्यता प्राप्त सॉफ्टवेयर विकास सर्टिफिकेशन में से एक है। यह एग्जाम Java fundamentals, object-oriented programming principles, exception handling, Java APIs including collections and streams, functional programming with lambdas, Java Platform Module System (JPMS) जो Java 9 में पेश किया गया, concurrent programming, I/O operations, और database access with JDBC को कवर करता है। Java SE 11 एक long-term support (LTS) रिलीज़ है, जिससे यह सर्टिफिकेशन एंटरप्राइज़ डेवलपमेंट रोल्स के लिए विशेष रूप से मूल्यवान हो जाता है जहां स्थिरता महत्वपूर्ण है, और OCP Java SE 11 Developer, Java SE 11 Programmer I (1Z0-815) और Programmer II (1Z0-816) के उद्देश्यों को एक ही व्यापक एग्जाम में जोड़ता है।
नमूना प्रश्न
अभ्यास कैसे काम करता है, यह जानने के लिए एक उत्तर चुनें और व्याख्या देखें।
A developer is building a modular Java application and needs to use the JDBC API to connect to a relational database. Which module must be required in the module descriptor to access the JDBC interfaces?
JDBC API को java.sql मॉड्यूल में परिभाषित किया गया है, जैसा कि Java SE मॉड्यूल सूची में दर्शाया गया है। java.base मॉड्यूल बुनियादी APIs रखता है लेकिन इसमें JDBC शामिल नहीं है। कोई jdk.jdbc मॉड्यूल नहीं है; JDBC Java SE का हिस्सा है, न कि JDK-विशिष्ट। java.naming मॉड्यूल JNDI प्रदान करता है, जो JDBC से अलग है। इसलिए, एक मॉड्यूल डेस्क्रिप्टर में JDBC इंटरफेस तक पहुँचने के लिए requires java.sql; शामिल होना चाहिए।
A developer is building a Java SE application that must authenticate to a remote service using Kerberos tickets. Which module should be used to access the necessary security APIs?
Kerberos प्रमाणीकरण Java में Generic Security Services API (GSS-API) के माध्यम से उपलब्ध कराया जाता है, जो java.security.jgss मॉड्यूल में परिभाषित है। SASL मॉड्यूल (java.security.sasl) अन्य प्रमाणीकरण तंत्रों का समर्थन करता है लेकिन Kerberos को सीधे नहीं। RMI कनेक्टर मॉड्यूल (java.management.rmi) JMX रिमोट प्रबंधन के लिए है, और JNDI मॉड्यूल (java.naming) नामकरण और निर्देशिका सेवाओं के लिए है, जिनमें से कोई भी Kerberos प्रमाणीकरण APIs प्रदान नहीं करता।
A developer is building a Java SE application that must run on any conforming Java SE 11 implementation, including those that are not the reference JDK. Which module is guaranteed to be available for the application to use?
जावा SE प्लेटफ़ॉर्म किसी भी अनुरूप जावा SE 11 कार्यान्वयन में मौजूद होने की गारंटी वाले कोर API का एक सेट परिभाषित करता है। ये API ऐसे मॉड्यूलों में व्यवस्थित हैं जिनके नाम 'java' से शुरू होते हैं। मॉड्यूल java.base में foundational APIs जैसे java.lang और java.util शामिल हैं, और यह हमेशा उपलब्ध रहता है। जिन मॉड्यूलों के नाम 'jdk' से शुरू होते हैं, वे JDK के लिए विशिष्ट हैं और सभी जावा SE कार्यान्वयनों में मौजूद होने की गारंटी नहीं है; वे वैकल्पिक कार्यान्वयनों या रनटाइम वातावरण में अनुपस्थित हो सकते हैं। अतः, केवल java.base ही उपलब्ध होने की गारंटी है।
A developer is designing a new class that represents a network connection and needs to provide a method that reports whether the connection is currently active. Following the standard Java naming conventions, what should the method be named?
Java नामकरण परंपराएँ निर्दिष्ट करती हैं कि किसी ऑब्जेक्ट के बारे में बूलियन शर्त की जाँच करने वाले मेथड्स को 'is' उपसर्ग के साथ नामित किया जाना चाहिए, जिसके बाद शर्त का नाम आता है। इससे मेथड का उद्देश्य स्पष्ट होता है और यह Java SE Platform API के साथ संगत रहता है। अन्य विकल्प इस परंपरा का पालन नहीं करते: 'active()' में 'is' उपसर्ग नहीं है, 'checkActive()' एक मानक बूलियन परीक्षण नाम नहीं है, और 'getActive()' आम तौर पर गुण एक्सेसर के लिए उपयोग किया जाता है न कि बूलियन परीक्षण के लिए।
A developer is maintaining a widely distributed Java library. They need to modify an existing class without breaking binary compatibility for clients who have already compiled against the previous version. Which of the following changes is guaranteed to preserve binary compatibility?
Binary compatibility ensures that pre-existing compiled code continues to work without recompilation when a library is updated. Adding new fields, methods, or constructors to an existing class is explicitly permitted and does not break existing binaries because existing code does not reference the new members. Deleting a public field breaks compatibility because existing code may access that field directly, and the field will no longer exist. Changing the return type of a public method breaks compatibility because the method descriptor changes, causing a NoSuchMethodError when existing code attempts to invoke it. Reordering parameters similarly changes the method descriptor, breaking invocation from pre-compiled clients.
करियर के अवसर और वेतन
जब तक लोकल रेंज न दिखे, ये US मार्केट के आंकड़े हैं।
इस परीक्षा में क्या शामिल है
01Annotations
This specific domain involves creating custom annotations, applying annotations within Java code structures, and processing annotations dynamically during application execution and compilation phases according to official language specifications.
विषय
- Create, apply, and process annotations
सीखने के उद्देश्य
- Create, apply, and process annotations
02Concurrency
This domain focuses on worker threads using Runnable and Callable, managing concurrency using ExecutorService and the java.util.concurrent API, and developing thread-safe code utilizing different locking mechanisms for high-performance applications.
विषय
- Create worker threads using Runnable and Callable, and manage concurrency using an ExecutorService and java.util.concurrent API
- Develop thread-safe code, using different locking mechanisms and java.util.concurrent API
सीखने के उद्देश्य
- Create worker threads using Runnable and Callable, and manage concurrency using an ExecutorService and java.util.concurrent API
- Develop thread-safe code, using different locking mechanisms and java.util.concurrent API
03Controlling Program Flow
This domain focuses on controlling program execution using loops, if/else conditional structures, and switch statements to direct logical flow within Java SE applications according to official Oracle requirements.
विषय
- Create and use loops, if/else, and switch statements
सीखने के उद्देश्य
- Create and use loops, if/else, and switch statements
04Database Applications with JDBC
This specific domain focuses heavily on connecting to databases, performing SQL operations, and processing query results using the JDBC API to build database-driven Java SE enterprise applications successfully without issues.
विषय
- Connect to and perform database SQL operations, process query results using JDBC API
सीखने के उद्देश्य
- Connect to and perform database SQL operations, process query results using JDBC API
05Exception Handling
This domain deals with error management via try/catch/finally blocks, try-with-resource statements, multi-catch clauses, and custom exceptions to ensure reliable exception handling across enterprise Java SE software deployment projects.
विषय
- Handle exceptions using try/catch/finally clauses, try-with-resource, and multi-catch statements
- Create and use custom exceptions
सीखने के उद्देश्य
- Handle exceptions using try/catch/finally clauses, try-with-resource, and multi-catch statements
- Create and use custom exceptions
06Java I/O API
This domain addresses reading and writing console and file data using I/O Streams, implementing serialization and deserialization techniques on Java objects, and handling file system objects using the java.nio.file API.
विषय
- Read and write console and file data using I/O Streams
- Implement serialization and deserialization techniques on Java objects
- Handle file system objects using java.nio.file API
सीखने के उद्देश्य
- Read and write console and file data using I/O Streams
- Implement serialization and deserialization techniques on Java objects
- Handle file system objects using java.nio.file API
07Java Object-Oriented Approach
This domain explores object lifecycles, nested classes, instance members, static members, overloaded methods, instance initializers, static initializer statements, and object initialization constructors required for developing proper object-oriented Java SE applications.
विषय
- Declare and instantiate Java objects including nested class objects, and explain objects' lifecycles (including creation, dereferencing by reassignment, and garbage collection)
- Define and use fields and methods, including instance, static and overloaded methods
- Initialize objects and their members using instance and static initialiser statements and constructors
- Understand variable scopes, apply encapsulation and make objects immutable
- Create and use subclasses and superclasses, including abstract classes
- Utilize polymorphism and casting to call methods, differentiate object type versus reference type
- Create and use interfaces, identify functional interfaces, and utilize private, static, and default methods
- Create and use enumerations
सीखने के उद्देश्य
- Declare and instantiate Java objects including nested class objects, and explain objects' lifecycles (including creation, dereferencing by reassignment, and garbage collection)
- Define and use fields and methods, including instance, static and overloaded methods
- Initialize objects and their members using instance and static initialiser statements and constructors
- Understand variable scopes, apply encapsulation and make objects immutable
- Create and use subclasses and superclasses, including abstract classes
- Utilize polymorphism and casting to call methods, differentiate object type versus reference type
- Create and use interfaces, identify functional interfaces, and utilize private, static, and default methods
- Create and use enumerations
08Java Platform Module System
This domain covers the Java Platform Module System, automatic modules, declaring modules, using modules, exposing modules, service usage, and modular application deployment and execution for modern Java platform architectures.
विषय
- Deploy and execute modular applications, including automatic modules
- Declare, use, and expose modules, including the use of services
सीखने के उद्देश्य
- Deploy and execute modular applications, including automatic modules
- Declare, use, and expose modules, including the use of services
09Localization
This specific domain explores localization through Locale objects, resource bundles, and Java APIs designed carefully to parse and format messages, dates, and numbers for international software deployment across global markets.
विषय
- Implement Localization using Locale, resource bundles, and Java APIs to parse and format messages, dates, and numbers
सीखने के उद्देश्य
- Implement Localization using Locale, resource bundles, and Java APIs to parse and format messages, dates, and numbers
10Secure Coding in Java SE Application
This domain covers mitigation of security threats like denial of service, code injection, input validation, data integrity assurance, secure resource access for filesystems, policy management, and execution of privileged code.
विषय
- Develop code that mitigates security threats such as denial of service, code injection, input validation and ensure data integrity
- Secure resource access including filesystems, manage policies and execute privileged code
सीखने के उद्देश्य
- Develop code that mitigates security threats such as denial of service, code injection, input validation and ensure data integrity
- Secure resource access including filesystems, manage policies and execute privileged code
11Working with Arrays and Collections
This domain addresses generics, wildcards, Java arrays, List collections, Set collections, Map collections, Deque collections, convenience methods, and sorting data using Comparator and Comparable interfaces for efficient data structures.
विषय
- Use generics, including wildcards
- Use a Java array and List, Set, Map and Deque collections, including convenience methods
- Sort collections and arrays using Comparator and Comparable interfaces
सीखने के उद्देश्य
- Use generics, including wildcards
- Use a Java array and List, Set, Map and Deque collections, including convenience methods
- Sort collections and arrays using Comparator and Comparable interfaces
12Working with Java data types
This domain covers primitives, wrapper classes, operators, parentheses, type promotion, type casting, text handling with String and StringBuilder classes, and local variable type inference including usage as lambda parameters within Java SE applications.
विषय
- Use primitives and wrapper classes, including, operators, parentheses, type promotion and casting
- Handle text using String and StringBuilder classes
- Use local variable type inference, including as lambda parameters
सीखने के उद्देश्य
- Use primitives and wrapper classes, including, operators, parentheses, type promotion and casting
- Handle text using String and StringBuilder classes
- Use local variable type inference, including as lambda parameters
13Working with Streams and Lambda expressions
This domain involves functional interfaces, lambda expressions from the java.util.function package, data processing with Java Streams, filtering, transformation, decomposition, reduction, grouping, and partitioning on sequential and parallel streams.
विषय
- Implement functional interfaces using lambda expressions, including interfaces from the java.util.function package
- Use Java Streams to filter, transform and process data
- Perform decomposition and reduction, including grouping and partitioning on sequential and parallel streams
सीखने के उद्देश्य
- Implement functional interfaces using lambda expressions, including interfaces from the java.util.function package
- Use Java Streams to filter, transform and process data
- Perform decomposition and reduction, including grouping and partitioning on sequential and parallel streams