JAVA MCQ Questions and Answers in Hindi, Advanced Java MCQ Questions with Answers pdf, Java Interview Questions and Answers

JAVA MCQ Questions and Answers in Hindi

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

JAVA MCQ Questions for placement, Java questions and answers mcq, Java questions and answers, JAVA Programming MCQ Questions and Answers, JAVA Interview MCQ Questions, JAVA MCQ Questions and Answers in Hindi pdf download

JAVA MCQ Questions and Answers in Hindi
JAVA MCQ Questions and Answers in Hindi

Java MCQ Questions with Answers pdf

Java Interview Questions and Answers pdf, Core JAVA MCQ Questions and Answers in Hindi, JAVA MCQ pdf download

1. JDK stands for _______.

JDK का मतलब________ है।

A) JavaScript deployment kit

B) Java deployment kit

C) Java development kit

D) None of these

 

2. Which of the follwing below live on the heap in java?

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

A) Method

B) Instance variable

C) Class

D) Object

 

3. JRE stands for________.

JRE का मतलब _______ है।

A) Java Runtime Environment

B) JDK runtime Environment

C) Java run ecosystem

D) None of these

 

4. Which of the following interface is used to declare core methods in java?

जावा में कोर मेथड घोषित करने के लिए निम्नलिखित में से किस इंटरफ़ेस का उपयोग किया जाता है?

A) Collection

B) EventListner

C) Set

D) Comparator

 

5. What makes the Java platform independent?

जावा प्लेटफॉर्म को क्या स्वतंत्र बनाता है?

A) Class compilation

B) It uses bytecode for execution

C) Advanced programming language

D) All of these

 

6. Which of these interface handle sequences?

इनमें से कौन सा इंटरफ़ेस अनुक्रमों को संभालता है?

A) Comparator

B) List

C) Set

D) Collection

 

7. What are the types of memory allocated in memory in java?

जावा में मेमोरी में आवंटित मेमोरी के प्रकार क्या हैं?

A) Stack memory

B) Heap memory

C) Both A and B

D) None of these

 

8. Which of this interface must contain a unique element?

इनमें से किस इंटरफ़ेस में एक अद्वितीय तत्व होना चाहिए?

A) Array

B) List

C) Set

D) Collection

 

9. Multiline comment is created using ________.

मल्टीलाइन कमेंट ________ का उपयोग करके बनाया जाता है।

A) <!– — >

B) /* */

C) //

D) All of these

 

10. Which of the following declarations does not compile?

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

A) int num1, num2 = 0;

B) int num1, num2;

C) double num1, int num2 = 0;

D) int num1 = 0, num2 = 0;

 

JAVA MCQ Questions and Answers in Hindi pdf

11. What is the entry point of a program in Java?

जावा में प्रोग्राम का प्रवेश बिंदु क्या है?

A) Last line of code

B) The first line of code

C) main() method

D) main class

 

12. Which keyword in java is used for exception handling?

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

A) throw

B) excepHand

C) exep

D) All of these

 

13. Which statement about a valid .java file is true?

A) It must define at least one public class

B) It can contain one public class declaration and one public interface definition

C) It can only contain one class declaration

D) It may define at most one public class

 

14. Which class in Java is used to take input from the user?

जावा में किस वर्ग का प्रयोग यूजर से इनपुट लेने के लिए किया जाता है?

A) Applier

B) Input

C) Scanner

D) None of these

 

15. Which is correct about an instance variable of type String?

स्ट्रिंग प्रकार के आवृत्ति चर के बारे में कौन सा सही है?

A) It does not have a default value

B) It defaults to null

C) It defaults to an empty string

D) It will not compile without initializing on the declaration line

 

16. Method used to take a string as input in Java?

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

A) nextLine()

B) next()

C) Both A) and B)

D) None of these

 

17. Which of the following does not compile?

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

A) int num = _9_99;

B) int num = 9_9_9;

C) int num = 999;

D) None of the above;

 

18. Which of the following is the correct syntax to create a variable in Java?

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

A) var name int;

B) int name;

C) var name;

D) All of these

 

19. Which of these is a type of variable in Java?

इनमें से कौन जावा में एक प्रकार का वेरिएबल है?

A) Static Variable

B) Local Variable

C) Instance Variable

D) All of these

 

20. What is type casting in Java?

जावा में टाइप कास्टिंग क्या है?

A) Creating a new variable

B) Casting variable to the class

C) It is converting type of a variable from one type to another

D) All of these

 

Java MCQ Questions with Answers pdf

21. What is true of the finalize() method?

finalize() विधि के बारे में क्या सच है?

A) It will be called exactly once

B) It may be called zero or more times

C) It may be called zero or one times

D) It may be called one or more times

 

22. Which type of casting is lossy in Java?

जावा में किस प्रकार की कास्टिंग हानिपूर्ण है?

A) Manual typecasting

B) Narrowing typecasting

C) Widening typecasting

D) All of the above

 

23. Which of the following is true about primitives?

primitives के बारे में निम्नलिखित में से कौन सा सत्य है?

A) You can convert a wrapper class object to a primitive by calling valueOf()

B) You can convert a primitive to a wrapper class object simply by assigning it

C) You can call methods on a primitive

D) You can store a primitive directly into an ArrayList

 

24. Which of the following can be declared as final in java?

निम्नलिखित में से किसे जावा में फाइनल घोषित किया जा सकता है?

A) Variable

B) Method

C) Class

D) All of these

 

25. How do you force garbage collection to occur at a certain point?

आप एक निश्चित बिंदु पर कचरा संग्रहण कैसे करते हैं?

A) Call System.forceGc()

B) Call System.gc()

C) Call System.requireGc()

D) None of the above

 

26. Finally block is attached to?

अंत में ब्लॉक किससे जुड़ा है?

A) Method block

B) Class block

C) Try-catch block

D) All of these

 

27. Which Java keyword is used to access features of a package?

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

A) extends

B) import

C) get

D) All of these

 

28. The break statement in Java is used to _________.

जावा में ब्रेक स्टेटमेंट का उपयोग ___ के लिए किया जाता है।

A) Skips the current iteration

B) Terminates from the program immediately

C) Terminates from the loop immediately

D) All of these

 

29. Can the Java program accept input from the command line?

क्या जावा प्रोग्राम कमांड लाइन से इनपुट स्वीकार कर सकता है?

A) Yes, by access command prompt

B) Yes, using command-line arguments

C) No

D) None of these

 

30. Which of these is the correct method to create an array in java?

जावा में ऐरे बनाने की सही विधि इनमें से कौन सी है?

A) int arr[] = {1, 4, 6};

B) arr = new int[] {3, 1, 8};

C) int[] arr = {1, 3, 5};

D) All of these

 

Java Interview Questions and Answers pdf

31. Which method in java is used to get the name of running java VM?

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

A) Sytem.getVmName

B) System.vmName

C) System.getProperties(“java.vm.name”)

D) System.getProperties(“vm.name”)

 

32. Object in java are _________.

जावा में ऑब्जेक्ट _________ होते हैं।

A) Iterators

B) References

C) Classes

D) None of these

 

33. Static variables in java are declared as ______.

जावा में स्टेटिक वेरिएबल्स को ___ घोषित किया जाता है।

A) Constants

B) new variables

C) final variables

D) All of these

 

34. Which Java method is used to add all of the specified elements to the specified collection?

निर्दिष्ट संग्रह में सभी निर्दिष्ट तत्वों को जोड़ने के लिए किस जावा विधि का उपयोग किया जाता है?

A) cpy()

B) copy()

C) addValue()

D) addAll()

 

35. BigInteger Class is used to _______.

BigInteger Class का उपयोग _______ के लिए किया जाता है।

A) A class that stores large range of integer

B) Store integer values

C) Store very long range of number

D) All of these

 

36. The ‘super’ keyword is used to _______.

‘सुपर’ कीवर्ड का उपयोग _______ के लिए किया जाता है।

A) Access instance of child class

B) Access instance of the same class

C) Access instance of the parent class

D) Access instance of friend class

 

37. What is a map in Java?

जावा में नक्शा क्या है?

A) Represented using key-value pairs

B) Defined in java.util package

C) Data structure

D) All of the above

 

38. The super() method is used to _______.

सुपर () विधि का उपयोग _____ के लिए किया जाता है।

A) Call constructor of the parent class

B) Is a declared method

C) Call constructor of friend class

D) Call constructor

 

39. Boxing is _______.

बॉक्सिंग _______ है।

A) Converting primitive type of object instance

B) Creating object

C) Creating new box

D) All of the above

 

40. Which of the following methods is used to extract the length of a string in Java?

जावा में एक स्ट्रिंग की लंबाई निकालने के लिए निम्नलिखित में से किस विधि का उपयोग किया जाता है?

A) sizeof()

B) len()

C) length()

D) size()

 

JAVA MCQ Questions and Answers in Hindi pdf

41. Abstract class is _______.

Abstract वर्ग _______ है।

A) Needs to be inherited to be used

B) Contains only abstract method

C) Created using abstract keyword

D) All of the above

 

42. How can we access methods for file handling in java?

जावा में फाइल हैंडलिंग के लिए हम विधियों का उपयोग कैसे कर सकते हैं?

A) Java.io.File

B) Java.io

C) Java.files

D) Java.FileHandling

 

43. Which of these is a property of threads in Java?

इनमें से कौन जावा में थ्रेड्स का गुण है?

A) Has its own priority

B) Multiple threads can be executed concurrently

C) Both A) and B)

D) None of these

 

44. Which is the correct absolute path of a file in Java?

जावा में फ़ाइल का सही पूर्ण पथ कौन सा है?

A) C:\Program Files\Java\jdk1.8.0_131\file_name.txt

B) C:\Program Files\Java\file_name.txt

C) C:\Program Files\Java\jdk1.8.0_131\bin\file_name.txt

D) C:\Program Files\Java\jdk1.8.0_131\bin\File Handling\file_name.txt

 

45. Which method deletes a file in Java?

जावा में कौन सी विधि फ़ाइल को हटाती है?

A) file.garbage()

B) file.remove()

C) file.delete()

D) file.dump()

 

46. What is boolean in Java?

जावा में बूलियन क्या है?

A) Truthy value in java

B) A value consisting of 8 values

C) A value consisting of only true and false value

D) All of the above

 

47. Which method in java is used to read lines from file?

जावा में फाइल से लाइन पढ़ने के लिए किस विधि का उपयोग किया जाता है?

A) file.getLine()

B) file.nextLine()

C) file.read()

D) All of these

 

48. Which is/are valid method(s) of math library in java?

जावा में math library की वैध विधि कौन सी है/हैं?

A) log10()

B) cbrt()

C) max()

D) All of these

 

49. In java, recursion is _______.

जावा में, रिकर्सन _______ है।

A) The process to call methods

B) A process allowing methods to call itself

C) Method

D) None of these

 

50. The ‘implements’ keyword is used to _______.

‘इम्प्लीमेंट्स’ कीवर्ड का उपयोग _____ के लिए किया जाता है।

A) Inherit a class in java

B) Inherit an interface in Java

C) Implement the function of a class

D) All of the above

Also Read: Java Interview Questions and Answers pdf

51. What is stringBuffer in java?

जावा में स्ट्रिंगबफर क्या है?

A) Class to create a string from i/o buffer

B) Class to create a mutable string in java

C) Class to create a string array

D) All of the above

 

52. Which syntax is valid to create a vector in java?

जावा में वेक्टर बनाने के लिए कौन सा सिंटैक्स मान्य है?

A) int name = new vector ()

B) Vector name = new string;

C) Vector < string > names = new Vector < String > ();

D) All of the above

 

53. Which of these is true for interfaces in java?

इनमें से कौन जावा में इंटरफेस के लिए सही है?

A) It does not contain constructors

B) All the methods of an interface are abstract

C) The keyword interface is used to create a method

D) All of the above

 

54. Which statement is correct for private member in Java?

जावा में प्राइवेट मेंबर के लिए कौन सा स्टेटमेंट सही है?

A) Declared using private keyword

B) Any class can access

C) Access outside the class is allowed

D) All of the above

 

55. Encapsulation is _______.

एनकैप्सुलेशन _______ है।

A) Creating special data structure

B) Creating special methods

C) Wrapping up of data and related functions into a single entity

D) All of the above

 

56. What is a comparator in Java?

जावा में एक तुलनित्र क्या है?

A) Interface to compare two objects in java

B) Comparison method for lists

C) Interface to compare integer

D) All of the above

 

57. Batch processing in java is ______.

जावा में बैच प्रोसेसिंग _______ है।

A) Used to increase program’s performance

B) Used to processing multiple queries can be executed at once

C) Used to execute a group of queries or a batch as executing a single query, again and again, is time taking and reduce the performance

D) All of the above

 

58. Which of the following methods are present in comparator interface?

निम्नलिखित में से कौन सी विधि तुलनित्र इंटरफ़ेस में मौजूद है?

A) isEqual()

B) equate()

C) compare()

D) All of these

 

59. What is a deadlock in Java?

जावा में गतिरोध क्या है?

A) State when threads are not ready

B) State when threads are in hold state forever

C) State when all processes have complete working and are dead

D) All of the above

 

60. Which of the following statements is not correct for vectors in Java?

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

A) It is asynchronous

B) It can store an object of different classes

C) It was created using vector keyword

D) None of the above

 

Java MCQ Questions with Answers pdf

61. Which graph is used to check for deadlock in Java?

जावा में गतिरोध की जांच के लिए किस ग्राफ का उपयोग किया जाता है?

A) Wait-for-graph

B) Time graph

C) Deadlock graph

D) None of these

 

62. Null in Java is _______.

जावा में Null _______ है।

A) Used in exception handling

B) Literal value

C) Reserved keyword

D) All of these

 

63. Which Java method is used to convert an object to string?

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

A) object.string()

B) toString()

C) createString()

D) newString()

 

64. Enumeration in Java is ______.

जावा में एन्यूमरेशन ______ है।

A) Class

B) Method

C) Data type which contains fixed set of constants

D) None of these

 

65. Which of the following ways is the correct way to create an object in Java?

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

A) clone() method

B) Using newInstance() method

C) Using the new keyword

D) All of these

 

66. Which keyword is used to inherit classes in Java?

जावा में कक्षाओं को इनहेरिट करने के लिए किस कीवर्ड का उपयोग किया जाता है?

A) isChild

B) inheritance

C) extends

D) None of these

 

67. Which of the following is a valid data structure in java?

निम्नलिखित में से कौन जावा में एक वैध डेटा संरचना है?

A) Vector

B) List

C) Array

D) All of these

 

68. Which of the following inheritance of class is invalid in Java?

जावा में निम्न में से कौन-सा वर्ग का वंशानुक्रम अमान्य है?

A) Multi-level

B) Multiple

C) Single

D) Hierarchical

 

69. What is polymorphism in Java?

जावा में बहुरूपता क्या है?

A) Creating a new class for each task

B) Performing multiple tasks using multiple methods

C) Performing a single task in multiple ways

D) All of the above

 

70. Which method in java is used to generate random numbers in Java?

जावा में यादृच्छिक संख्या उत्पन्न करने के लिए जावा में किस विधि का उपयोग किया जाता है?

A) rand()

B) random()

C) random.nextInt()

D) All of these

 

Java Interview Questions and Answers pdf

71. What are packages in Java?

जावा में पैकेज क्या हैं?

A) Way to encapsulate a group of classes, sub-packages, and interface

B) Methods of the main class

C) Methods of a friend class

D) All of the above

 

72. Which of these is a non-access modifier?

इनमें से कौन एक नॉन-एक्सेस मॉडिफायर है?

A) native

B) private

C) public

D) All of these

 

73. The correct syntax to import the math library in java is ______.

जावा में गणित पुस्तकालय आयात करने का सही सिंटैक्स ______ है।

A) import java.math

B) import math

C) import java.lang.math

D) All of these

 

74. When a finally block executed in Java?

जावा में अंत में ब्लॉक कब निष्पादित किया गया?

A) Executed at last

B) Exception has occurred

C) Try block is executed without any exception

D) None of these

 

75. Which of these is not a valid Boolean method in Java?

इनमें से कौन जावा में मान्य बूलियन विधि नहीं है?

A) toString() method

B) hashCode() method

C) equals() method

D) All of these

 

76. Which method is used to add a new line to file in Java?

जावा में फाइल में नई लाइन जोड़ने के लिए किस विधि का उपयोग किया जाता है?

A) file.write()

B) file.nextLine()

C) file.addLine()

D) file.line()

 

77. Which method in Java is used to check for NaN values?

जावा में किस विधि का उपयोग NaN मानों की जांच के लिए किया जाता है?

A) isNotNan()

B) checkNan()

C) isNan()

D) All of these

 

78. Which thread is executed in the background?

पृष्ठभूमि में कौन सा थ्रेड निष्पादित किया जाता है?

A) Daemon thread

B) User-created thread

C) New thread

D) All of these

 

79. What is file handling in java?

जावा में फाइल हैंडलिंग क्या है?

A) Filing method to different file to extract them better

B) Creating new method

C) It is creating, deleting, and modifying files using a java program

D) All of the above

 

80. Multithreading in java is _______.

जावा में मल्टीथ्रेडिंग _______ है।

A) Blocking threads

B) Creating more threads at a time

C) Executing multiple processes simultaneously

D) All of the above

 

JAVA MCQ Questions and Answers in Hindi pdf

81. Which method is used to convert radians to degree in Java?

जावा में रेडियन को डिग्री में बदलने के लिए किस विधि का उपयोग किया जाता है?

A) degree()

B) toDegrees()

C) convertRadtoDeg()

D) All of these

 

82. The trim() method in Java used to ______.

जावा में ट्रिम () विधि का उपयोग _____ के लिए किया जाता है।

A) Remove leading and trailing spaces

B) Remove the values after the given index

C) Remove the given character

D) None of these

 

83. Wrapper class in java is ______.

जावा में Wrapper वर्ग _________ है।

A) Create a new instance of the class

B) Declare new classes called wrapper

C) Used to encapsulate primitive data types

D) None of these

 

84. What are regexes in Java?

जावा में रेगेक्स क्या हैं?

A) Array to create a new integer

B) String

C) API to define a pattern for searching strings

D) Wrapper class

 

85. What is a set in Java?

जावा में एक सेट क्या है?

A) Primary structures

B) Used to store key-value pairs

C) Represented in the form of values

D) All of the above

 

86. Which of the following sorts the elements were inserted?

निम्नलिखित में से किस प्रकार के तत्वों को सम्मिलित किया गया था?

A) Array

B) Map

C) Hashtable

D) None of these

 

87. ‘this’ keyword in java is ________.

जावा में ‘this’ कीवर्ड ___ है।

A) Used to create a new instance

B) Holds object value

C) Used to hold the reference of the current object

D) All of the above

 

88. Which Java method is used to clear element of ArrayList?

ArrayList के एलीमेंट को क्लियर करने के लिए किस जावा विधि का उपयोग किया जाता है?

A) clearAll()

B) delete()

C) deleteAll()

D) clear()

 

89. Which Java method is used to detect the OS in which Java program is being run?

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

A) system.getProperties(“os.name”)

B) system.get(os.name)

C) system.getOSdetails()

D) system.getProperties(“os”)

 

90. What is garbage collection in java?

जावा में कचरा संग्रहण क्या है?

A) Delete all values

B) Create new garbage values

C) Method to manage memory in java

D) All of the above

 

Java MCQ Questions with Answers pdf

91. What is the default encoding of OutstreamWriter?

OutstreamWriter का डिफ़ॉल्ट एन्कोडिंग क्या है?

A) UTF-12

B) UTF-16

C) UTF-32

D) Based on the host platform

 

92. Which Java method is used to get the version of running java VM?

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

A) System.getProperties(“java.vm.version”)

B) System.getProperties(“vm.version”)

C) System.vm.version

D) System.getVmVersion

 

93. Array in java is _________.

जावा में ऐरे _______ है।

A) The data type of consisting of characters

B) Collection of elements of different types

C) Collection of similar elements

D) None of these

 

94. What is the full form of AWT?

AWT का फुल फॉर्म क्या है?

A) Absolute wear kit

B) Abstract window toolKit

C) Absolute window toolKit

D) Abstract window tools

 

95. Jar in java stands for ______.

जावा में जार का अर्थ ______ है।

A) Java application runner

B) Java application runtime

C) Java ARchive

D) None of these

 

96. The result of dividing by 0 in Java is ______.

जावा में 0 से भाग देने का परिणाम ______ होता है।

A) Infinite

B) Expectation

C) Error

D) None of these

 

97. Can we pass objects to method arguments in Java?

क्या हम जावा में विधि तर्कों के लिए ऑब्जेक्ट पास कर सकते हैं?

A) Yes

B) No

 

98. Can we write a program without a main method in Java?

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

A) Yes

B) No

 

99. Can we keep a different name for the java class name and java file name?

क्या हम जावा वर्ग के नाम और जावा फ़ाइल नाम के लिए एक अलग नाम रख सकते हैं?

A) Yes

B) No

 

100. Can the main() method be overloaded in Java?

जावा में मुख्य () विधि को ओवरलोड किया जा सकता है?

A) Yes

B) No

 

So friends I hope you enjoy this article related to Advanced Java MCQ Questions with Answers pdf, Advanced JAVA MCQ Questions and Answers in Hindi, Java Interview Questions and Answers pdf, JAVA MCQ pdf download, Core Java MCQ Questions and Answers pdf

Java Interview Questions and Answers pdf

File Name Java MCQ Questions and Answers in Hindi
File Size 698 KB
No. of Pages 14
Language Hindi & English
Download Click Here

 

Related Searches: Java questions and answers mcq, JAVA MCQ Questions for placement, JAVA Interview MCQ Questions, JAVA Programming MCQ Questions and Answers, Java Interview Questions and Answers pdf, Core JAVA MCQ Questions and Answers in Hindi pdf download, JAVA MCQ pdf download

Leave a Reply

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