MCQ Mojo
access_time
menu
Quiz
Web Stories
CBSE
arrow_drop_down
MCQ Questions for CBSE Class 12 with Answers
MCQ Questions for CBSE Class 11 with Answers
MCQ Questions for CBSE Class 10 with Answers
MCQ Questions for CBSE Class 9 with Answers
MCQ Questions for CBSE Class 8 with Answers
MCQ Questions for CBSE Class 7 with Answers
MCQ Questions for CBSE Class 6 with Answers
MCQ Questions for CBSE Class 5 with Answers
MCQ Questions for CBSE Class 4 with Answers
MCQ Questions for CBSE Class 3 with Answers
MCQ Questions for CBSE Class 2 with Answers
MCQ Questions for CBSE Class 1 with Answers
CBSE
arrow_drop_down
MCQ Questions for CBSE Class 12 with Answers
MCQ Questions for CBSE Class 11 with Answers
MCQ Questions for CBSE Class 10 with Answers
MCQ Questions for CBSE Class 9 with Answers
MCQ Questions for CBSE Class 8 with Answers
MCQ Questions for CBSE Class 7 with Answers
MCQ Questions for CBSE Class 6 with Answers
MCQ Questions for CBSE Class 5 with Answers
MCQ Questions for CBSE Class 4 with Answers
MCQ Questions for CBSE Class 3 with Answers
MCQ Questions for CBSE Class 2 with Answers
MCQ Questions for CBSE Class 1 with Answers
Quiz
Quiz
/
Java Gate & PSU MCQ Questions With Answers
1.
Q) Which will contain the body of the thread in Java?
Start()
Run()
Main()
Execute()
2.
The process by which objects of one class acquire the properties of objects of another class is known as
Polymorphism
Inheritance
Data Hiding
Association
3.
In Java WORA stands for
Write Once Recall Anywhere
Write Once Return Anywhere
Write Once Read Anywhere
Write Once Run Anywhere
4.
What will be the output?
Finally
Compilation fails
The code runs with no output
An exception is thrown at runtime
5.
Which from the following is a feature that allows us to perform a single action in different ways.
Abstraction
Polymorphism
Encapsulation
Inheritance
6.
Operator used to access the members of a class /package
(.) Dot
(,) Comma
7.
What will it print?
12330
1230
12311
1211
8.
Choose most appropriate purpose of trim() method in String?
to remove white spaces
to get a substring of the string
to cut String at desired index
to remove extra white spaces from start and end of String
9.
Q) Thread synchronization in a process will be required when
All threads sharing the same address space
All threads sharing the same global variables
All threads sharing the same files
All
10.
Which of the following statements outputs the fifth value in the quizzes array?
System.out.println(quizzes[5]);
quizzes[4];
quizzes[5];
System.out.println(quizzes[4]);
11.
Try block may or may not contains catch blocks
True
False
12.
Q) Min and Max priority of a thread in Java multithreading are
1, 10
0,10
0,255
1,256
13.
Java has goto statement
True
False
14.
Which method we implement from Runnable interface?
Run ()
Start ()
Execute ()
call ()
15.
The life cycle of a thread in java is controlled by
JRE
JDK
JVM
None
16.
Which is the correct way of writing main() function in Java?
public static void main(String args[ ])
public void main(String args[ ])
public static main(String args[ ])
public void static main(String args[ ])
Report Question
Previous
Next
warning
Submit
access_time
Time
Report Question
A bunch of text
Support mcqmojo.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page