Java Programming MCQs SET-5

Hello students welcome to CSE Study247 , Today I am provide you Java Programming MCQs SET-5

This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview, TCS , Railway & another Government Sector)

❤️ TOP 500+ C Programming Question and Answer

 

Q.81 Which of the following is not OOPS concept in java





ANSWER= (D) Compilation

 

Q.82 Which of these keywords is used to make a class





ANSWER= (A) Class

 

Q.83 What is the return type of a method that does not return any value





ANSWER= (C) Void

 

Q.84 Method having same name as its class name is





ANSWER= (C) Constructor

 

Q.85 Which method can be defined only once in a program





ANSWER= (A) Main method

 

Q.86 Size of an integer can bem





ANSWER= (D) -2^15 to 2^15 -1

 

Q.87 Which of the following assignment operator doesn’t exist in java





ANSWER= (C) >>>

 

Q.88 Which loop is always executed once





ANSWER= (C) Do-while

 

Q.89 Which of the following is not valid flow control statement





ANSWER= (D) Exit();

 

Q.90 A top level class may have which one of the following access modifiers





ANSWER= (D) public

 

Q.91 A subclass in also called as





ANSWER= (C) Derived class

 

Q.92 Which of the following is not a wrapper class





ANSWER= (A) Vector

 

Q.93 A default constructor has





ANSWER= (A) No arguments

 

Q.94 Math class belongs to the package





ANSWER= (B) Java.lang

 

Q.95 A package is a collection of





ANSWER= (D) Class and interfaces

 

Q.96 Primary purpose of inheritance is





ANSWER= (A) Code reuse

 

Q.97 Which method/methods cannot be overridden





ANSWER= (D) Both (a) and (b)

 

Q.98 Which of the following does not deal with exceptions





ANSWER= (C) Finalize

 

Q.99 What is the default priority of a thread in java





ANSWER= (B) 5

 

Q.100 The class at the top of the AWT hierarchy is





ANSWER= (A) Component

Scroll to Top