×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
1 .
Which of the follow. method to clear all the data present in output buffers only?
A.
clear()
B.
flush()
C.
flushall()
D.
None
View Answer
Ans: flush()
2 .
Which of the following collection maintain its elements in Natural Sorted order ?
A.
LinkedMap
B.
LinkedHashMap
C.
TreeMap
D.
HashMap
View Answer
Ans: TreeMap
3 .
Which class or interface defines the wait(), notify(),and notifyAll() methods?
A.
Object
B.
Thread
C.
Runnable
D.
Class
View Answer
Ans: Object
4 .
which of these method is used to find out that a thread is still running or not?
A.
run ( )
B.
Alive ( )
C.
isAlive( )
D.
checkRun ( )
View Answer
Ans: isAlive( )
5 .
When a class extends the Thread class ,it should override ............ method of Thread class to start that thread.
A.
start()
B.
run()
C.
init()
D.
go()
View Answer
Ans: run()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17