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
A) Inheritance
B) Encapsulation
C) Polymorphism
D) Compilation
ANSWER= (D) Compilation
Check Answer
Q.82 Which of these keywords is used to make a class
A) Class
B) Struct
C) Int
D) None of the mentioned
ANSWER= (A) Class
Check Answer
Q.83 What is the return type of a method that does not return any value
A) Int
B) Float
C) Void
D) Double
ANSWER= (C) Void
Check Answer
Q.84 Method having same name as its class name is
A) Int
B) Enum
C) Constructor
D) Argument
ANSWER= (C) Constructor
Check Answer
Q.85 Which method can be defined only once in a program
A) Main method
B) Finalize method
C) Static method
D) Private method
ANSWER= (A) Main method
Check Answer
Q.86 Size of an integer can bem
A) -2^31 to 2^31-1
B) 0 to -2^16
C) -2^8 to 2^8 -1
D) -2^15 to 2^15 -1
ANSWER= (D) -2^15 to 2^15 -1
Check Answer
Q.87 Which of the following assignment operator doesn’t exist in java
ANSWER= (C) >>>
Check Answer
Q.88 Which loop is always executed once
A) For
B) For each
C) Do-while
D) While
ANSWER= (C) Do-while
Check Answer
Q.89 Which of the following is not valid flow control statement
A) Break;
B) Continue outer;
C) Return;
D) Exit();
ANSWER= (D) Exit();
Check Answer
Q.90 A top level class may have which one of the following access modifiers
A) Package
B) Private
C) protected
D) public
ANSWER= (D) public
Check Answer
Q.91 A subclass in also called as
A) Inner class
B) Nested class
C) Derived class
D) Hidden class
ANSWER= (C) Derived class
Check Answer
Q.92 Which of the following is not a wrapper class
A) Vector
B) Character
C) Boolean
D) Integer
ANSWER= (A) Vector
Check Answer
Q.93 A default constructor has
A) No arguments
B) Has no return type
C) Has one argument but no return type
D) Has two arguments
ANSWER= (A) No arguments
Check Answer
Q.94 Math class belongs to the package
A) Java.math
B) Java.lang
C) Java.util
D) None of these
ANSWER= (B) Java.lang
Check Answer
Q.95 A package is a collection of
A) Classes
B) Interfaces
C) Editing tools
D) Class and interfaces
ANSWER= (D) Class and interfaces
Check Answer
Q.96 Primary purpose of inheritance is
A) Code reuse
B) Overloading
C) Overriding
D) None of the above
ANSWER= (A) Code reuse
Check Answer
Q.97 Which method/methods cannot be overridden
A) Static
B) Final
C) Only (a)
D) Both (a) and (b)
ANSWER= (D) Both (a) and (b)
Check Answer
Q.98 Which of the following does not deal with exceptions
A) Throws
B) Throw
C) Finalize
D) Finally
ANSWER= (C) Finalize
Check Answer
Q.99 What is the default priority of a thread in java
ANSWER= (B) 5
Check Answer
Q.100 The class at the top of the AWT hierarchy is
A) Component
B) Window
C) Container
D) Frame
ANSWER= (A) Component
Check Answer