Java Interview Questions and Answers pdf, Java MCQ Questions with Answers pdf, Core Java MCQ Questions and Answers pdf

Java Interview Questions and Answers pdf

Hello friends in this article you can find your query related to Java Interview Questions and Answers pdf, Java MCQ Questions with Answers pdf, Core Java MCQ Questions and Answers pdf, JAVA MCQ pdf download, JAVA Coding Questions and Answers pdf, JAVA Programming Questions pdf

JAVA Viva Questions and Answers pdf, Polymorphism in Java MCQ, Array in JAVA MCQ, JAVA Array MCQ, MCQ on data types in JAVA, JAVA Programming Language MCQ, JAVA MCQ Practice Test, JAVA Practice Questions pdf

Java MCQ Questions with Answers pdf

JAVA Programming Question Paper pdf, JAVA Interview MCQ Questions, JAVA Questions and Answers pdf, JAVA Programming MCQ Questions and Answers, Java Interview Questions and Answers pdf

Java interview questions and answers pdf
Java Interview Questions and Answers pdf

Core Java MCQ Questions and Answers pdf

Java Interview Questions and Answers pdf, Core Java MCQ Questions and Answers pdf, Java MCQ Questions with Answers pdf

1. Which of the following option leads to the portability and security of Java?

निम्नलिखित में से कौन सा विकल्प जावा की पोर्टेबिलिटी और सुरक्षा की ओर ले जाता है?

A) Bytecode is executed by JVM

B) Dynamic binding between objects

C) Use of exception handling

D) The applet makes the Java code secure and portable

 

2. When an array is passed to a method, what does the method receive?

जब किसी method को एक array पास की जाती है, तो method को क्या प्राप्त होता है?

A) Length of the array

B) Copy of first element

C) The reference of the array

D) A copy of the array

 

3. Which of the following is not a Java features?

निम्नलिखित में से कौन जावा फीचर नहीं है?

A) Dynamic

B) Object-oriented

C) Use of pointers

D) Architecture Neutral

 

4. ________ is used to find and fix bugs in the Java programs.

_____ का प्रयोग जावा प्रोग्राम में बग को खोजने और ठीक करने के लिए किया जाता है।

A) JDK

B) JRE

C) JVM

D) JDB

 

5. Identify the corrected definition of a package.

पैकेज की सही परिभाषा को पहचानें।

A) A package is a collection of classes and interfaces

B) A package is a collection of interfaces

C) A package is a collection of editing tools

D) A package is a collection of classes

 

6. Which of the following is a valid declaration of a char?

निम्नलिखित में से कौन char की वैध घोषणा है?

A) char cr = \u0223;

B) char ca = ‘tea’;

C) char ch = ‘\utea’;

D) char cc = ‘\itea’;

 

7. To which of the following does the class string belong to.

Class स्ट्रिंग निम्न में से किससे संबंधित है।

A) java.awt

B) java.applet

C) java.lang

D) java.string

 

8. What is the return type of the hashCode() method in the Object class?

ऑब्जेक्ट क्लास में हैशकोड () विधि का रिटर्न प्रकार क्या है?

A) long

B) int

C) Object

D) void

 

9. What does the expression float a = 35 / 0 return?

अभिव्यक्ति float a = 35 / 0 क्या लौटाती है?

A) 0

B) Run time exception

C) Infinity

D) Not a Number

 

10. Identify the modifier which cannot be used for constructor.

उस modifier की पहचान करें जिसका उपयोग कंस्ट्रक्टर के लिए नहीं किया जा सकता है।

A) public

B) protected

C) private

D) static

 

Java Interview Questions and Answers pdf

11. Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?

निम्नलिखित में से कौन सा टूल सोर्स कोड में doc कमेंट से HTML फॉर्मेट में API डॉक्यूमेंट जेनरेट करने के लिए उपयोग किया जाता है?

A) Javadoc tool

B) javaw command

C) javap tool

D) javah command

 

12. What is the variables declared in a class for the use of all methods of the class called?

Class के सभी तरीकों के उपयोग के लिए class में घोषित variables क्या कहलाते हैं?

A) Object

B) Instance variables

C) Reference variable

D) None of these

 

13. Which of the following creates a List of 3 visible items and multiple selections abled?

निम्नलिखित में से कौन 3 दृश्यमान वस्तुओं की सूची बनाता है और एकाधिक चयन सक्षम हैं?

A) new List(true, 3)

B) new List(3, true)

C) new List(false, 3)

D) new List(3, false)

 

14. Which of the following exception is thrown when divided by zero statement is executed?

निम्नलिखित में से कौन सा exception तब फेंका जाता है जब divided by zero कथन execute किया जाता है?

A) ArithmeticException

B) NullPointerException

C) NumberFormatException

D) None of these

 

15. Which method of the Class.class is used to determine the name of a class represented by the class object as a String?

क्लास ऑब्जेक्ट द्वारा स्ट्रिंग के रूप में दर्शाए गए क्लास का नाम निर्धारित करने के लिए Class.class की कौन सी विधि का उपयोग किया जाता है?

A) getClass()

B) toString()

C) getName()

D) intern()

 

16. What is it called when the child object also gets killed when the parent object is killed in the program?

प्रोग्राम में पैरेंट ऑब्जेक्ट के मारे जाने पर चाइल्ड ऑब्जेक्ट भी मारे जाने पर इसे क्या कहा जाता है?

A) Encapsulation

B) Association

C) Aggregation

D) Composition

 

17. In which process, a local variable has the same name as one of the instance variables?

किस प्रक्रिया में, एक स्थानीय चर का वही नाम होता है जो एक आवृत्ति चर का होता है?

A) Abstraction

B) Variable Shadowing

C) Serialization

D) Multi-threading

 

18. How does one identify if a compilation unit is an interface or class from a .class file?

एक .class फ़ाइल से एक संकलन इकाई एक इंटरफ़ेस या वर्ग है या नहीं, इसकी पहचान कैसे की जाती है?

A) The class and interface cannot be differentiated

B) Java source file header

C) Extension of the compilation unit

D) The unit type must be used to postfix interface or class name

 

19. Which of the following is true about the anonymous inner class?

अनाम आंतरिक वर्ग के बारे में निम्नलिखित में से कौन सा सत्य है?

A) It has a fixed class name

B) Objects can’t be created

C) It has only methods

D) It has no class name

 

20. Out of these methods of the Object class, which one can clone an object?

ऑब्जेक्ट क्लास के इन तरीकों में से कौन किसी ऑब्जेक्ट को क्लोन कर सकता है?

A) Object copy()

B) copy()

C) Object clone()

D) clone()

 

Java Interview Questions and Answers pdf

21. Which package contains the Random class?

किस पैकेज में रैंडम क्लास होता है?

A) java.util package

B) java.io package

C) java.awt package

D) java.lang package

 

22. The remover() method throws which of these exceptions:

रिमूवर () विधि इनमें से कौन सा अपवाद फेंकता है:

A) ObjectNotFoundException

B) IllegalStateException

C) IOException

D) SystemException

 

23. What do you mean by nameless objects?

Nameless objects से आप क्या समझते हैं?

A) An object without having any name but having a reference.

B) An object of a superclass created in the subclass.

C) An object created by using the new keyword.

D) An object that has no reference.

 

24. Out of these classes, which one is used for reading strings and characters in Java from the console?

इन classes में से किसका उपयोग जावा में कंसोल से स्ट्रिंग्स और कैरेक्टर पढ़ने के लिए किया जाता है?

A) StringReader

B) BufferedReader

C) InputStreamReader

D) BufferedStreamReader

 

25. An interface with no fields or methods is known as a ______.

बिना फ़ील्ड या विधियों वाले इंटरफ़ेस को ______ के रूप में जाना जाता है।

A) Abstract Interface

B) Marker Interface

C) Runnable Interface

D) CharSequence Interface

Also Read: Java Programming Questions and Answers pdf

26. Which one is a superclass of the ContainerEvent class out of the following?

निम्नलिखित में से कौन सा कंटेनरएवेंट क्लास का सुपरक्लास है?

A) InputEvent

B) ItemEvent

C) ComponentEvent

D) WindowEvent

 

27. Which of the following is an immediate subclass of the Panel class?

निम्नलिखित में से कौन पैनल वर्ग का तत्काल उपवर्ग है?

A) Applet class

B) Dialog class

C) Frame class

D) Window class

 

28. Which method is used for notifying the observer about the change in the observed object?

प्रेक्षित वस्तु में परिवर्तन के बारे में प्रेक्षक को सूचित करने के लिए किस विधि का उपयोग किया जाता है?

A) notify()

B) update()

C) observed()

D) check()

 

29. Which option is false about the finalkeyword?

final कीवर्ड के बारे में कौन सा विकल्प गलत है?

A) A final method cannot be overridden in its subclasses.

B) A final method can be inherited.

C) A final class cannot extend other classes.

D) A final class cannot be extended.

 

30. Which mechanism helps in the process of naming as well as visibility control of the classes and their content?

कक्षाओं और उनकी सामग्री के नामकरण के साथ-साथ दृश्यता नियंत्रण की प्रक्रिया में कौन सा तंत्र मदद करता है?

A) Interfaces

B) Object

C) Packages

D) None of these

 

Java Interview Questions and Answers pdf

31. Which of these classes are the direct subclasses of the Throwableclass?

इनमें से कौन-सा वर्ग थ्रोएबल वर्ग का प्रत्यक्ष उपवर्ग है?

A) Error and Exception class

B) Exception and VirtualMachineError class

C) RuntimeException and Error class

D) IOException and VirtualMachineError class

 

32. Automatic type conversion is possible in which of the possible cases?

संभावित मामलों में से किसमें स्वचालित प्रकार का रूपांतरण संभव है?

A) Long to int

B) Int to long

C) Byte to int

D) Short to int

 

33. What do you mean by chained exceptionsin Java?

जावा में chained exceptions से आपका क्या अभिप्राय है?

A) Exceptions occur in chains with discarding the debugging information

B) An exception caused by other exceptions

C) Exceptions occurred by the VirtualMachineError

D) None of the above

 

34. In character stream I/O, a single read/write operation performs _____.

कैरेक्टर स्ट्रीम I/O में, एक सिंगल रीड/राइट ऑपरेशन _____ करता है।

A) Two bytes read/write at a time.

B) Five bytes read/ write at a time.

C) One byte read/write at a time.

D) Eight bytes read/write at a time.

 

35. In which memory a String is stored, when we create a string using newoperator?

जब हम नए ऑपरेटर का उपयोग करके एक स्ट्रिंग बनाते हैं, तो एक स्ट्रिंग को किस मेमोरी में संग्रहीत किया जाता है?

A) Stack

B) Random storage space

C) Heap memory

D) String memory

 

36. If a thread goes to sleep __________.

यदि कोई थ्रेड सो जाता है __________।

A) It releases half of its locks.

B) It does not release any locks.

C) It releases all the locks it has.

D) It releases all of its lock except one.

 

37. What is the use of the intern() method?

इंटर्न () पद्धति का उपयोग क्या है?

A) It modifies the existing string in the database

B) It creates a new string in the database

C) It returns the existing string from memory

D) None of the above

 

38. How many threads can be executed at a time?

एक बार में कितने थ्रेड निष्पादित किए जा सकते हैं?

A) Only main (main() method) thread

B) Multiple threads

C) Only one thread

D) Two threads

 

39. Which of the following is a marker interface?

निम्नलिखित में से कौन एक मार्कर इंटरफ़ेस है?

A) Readable interface

B) Remote interface

C) Runnable interface

D) Result interface

 

40. Which of the following is a mutable class in java?

निम्नलिखित में से कौन जावा में एक परिवर्तनशील वर्ग है?

A) java.lang.Short

B) java.lang.Byte

C) java.lang.String

D) java.lang.StringBuilder

 

Java Interview Questions and Answers pdf

41. Which of the following is a reserved keyword in Java?

निम्नलिखित में से कौन जावा में एक आरक्षित कीवर्ड है?

A) main

B) strictfp

C) object

D) system

 

42. Which of the given methods are of Object class?

दिए गए तरीकों में से कौन-सा ऑब्जेक्ट क्लास का है?

A) notify(), wait( long msecs ), and synchronized()

B) sleep( long msecs ), wait(), and notify()

C) notify(), notifyAll(), and wait()

D) wait( long msecs ), interrupt(), and notifyAll()

 

43. Which keyword is used for accessing the features of a package?

पैकेज की विशेषताओं तक पहुँचने के लिए किस कीवर्ड का उपयोग किया जाता है?

A) extends

B) import

C) package

D) export

 

44. What is the use of \w in regex?

रेगेक्स में \w का उपयोग क्या है?

A) Used for a whitespace character

B) Used for a non-word character

C) Used for a word character

D) Used for a non-whitespace character

 

45. Which of the following is a valid syntax to synchronize the HashMap?

निम्नलिखित में से कौन हैश मैप को सिंक्रोनाइज़ करने के लिए एक मान्य सिंटैक्स है?

A) Map m1 = Collections.synchronizedMap(hashMap);

B) HashMap map =hashMap.synchronizeMap();

C) Map m = hashMap.synchronizeMap();

D) Map m2 = Collection.synchronizeMap(hashMap);

 

46. What is meant by the classes and objects that dependents on each other?

उन वर्गों और वस्तुओं से क्या तात्पर्य है जो एक दूसरे पर निर्भर हैं?

A) Loose Coupling

B) Cohesion

C) Tight Coupling

D) None of the above

 

47. If three threads trying to share a single object at the same time, which condition will arise in this scenario?

यदि तीन थ्रेड एक ही समय में एक ही वस्तु को साझा करने का प्रयास कर रहे हैं, तो इस परिदृश्य में कौन सी स्थिति उत्पन्न होगी?

A) Race condition

B) Critical situation

C) Time-Lapse

D) Recursion

 

48. Which of the following modifiers can be used for a variable so that it can be accessed by any thread or a part of a program?

निम्नलिखित में से कौन सा संशोधक एक चर के लिए उपयोग किया जा सकता है ताकि इसे किसी भी थ्रेड या प्रोग्राम के किसी भाग द्वारा एक्सेस किया जा सके?

A) global

B) default

C) volatile

D) transient

 

49. What is the default encoding for an Output Stream Writer?

आउटपुट स्ट्रीम राइटर के लिए डिफ़ॉल्ट एन्कोडिंग क्या है?

A) UTF- 8

B) Default encoding of the host platform

C) UTF-12

D) None of these

 

50. In java, jar stands for________.

जावा में, “jar” का अर्थ _________ है।

A) Java Application Runner

B) Java Application Resource

C) Java Archive Runner

D) None of the above

 

So friends I hope you enjoy this article related to Java MCQ Questions with Answers pdf, Java Interview Questions and Answers pdf, Core Java MCQ Questions and Answers pdf, JAVA MCQ PDF Download, JAVA Coding Questions and Answers pdf, JAVA Programming Questions pdf

Java MCQ Questions and Answers pdf

File Name Java Interview Questions and Answers pdf
File Size 870 KB
No. of Pages 8
Language Hindi and English
Download Click Here

 

Related Searches: JAVA MCQ PDF Download, JAVA MCQ Questions and Answers PDF, JAVA MCQ Questions with Answers pdf, JAVA Interview Questions and Answers pdf, JAVA Coding Questions and Answers pdf, JAVA Programming Questions pdf, JAVA Viva Questions and Answers pdf, MCQ on data types in JAVA

JAVA Programming Language MCQ, JAVA MCQ Practice Test, JAVA Practice Questions pdf, JAVA Programming Question Paper pdf, JAVA Interview MCQ Questions, JAVA Questions and Answers pdf, JAVA Programming MCQ Questions and Answers

Leave a Reply

Your email address will not be published. Required fields are marked *