AmbitionBox
Discover Best Places to work in India
Discover best places to work
Compare & find best workplace
Bring your workplace to life
Highlight your company's perks
Read reviews for 6L+ companies
Rate your former or current company
Discover salaries for 8L+ companies
Calculate your take home salary
Check your market value
Help other jobseekers
Read interviews for 90K+ companies
Interviews questions for 1K+ colleges
Contribute your interview questions
Java Programming
Which of these class is used to make a thread?
String
System
Thread
Runnable
Which of these interface is implemented by Thread class?
Set
Connections
Mapconnections
Which function of pre defined class Thread is used to check weather current thread being checked is still running?
isAlive()
Alive()
isRunning()
Join()
What is the output of this program?
classmultithreaded_programing{ publicstaticvoidmain(String args[]){ Thread t = Thread.currentThread(); t.setName("New Thread"); System.out.println(t); } }
Thread[5,main]
Thread[New Thread,5]
Thread[main,5,main]
Thread[New Thread,5,main]
What is the priority of the thread in output of this program?
classmultithreaded_programing{ publicstaticvoidmain(String args[]){ Thread t = Thread.currentThread(); t.setName("New Thread"); System.out.println(t.getName()); } }
main
New Thread
What is the name of the thread in output of this program?
classmultithreaded_programing{ publicstaticvoidmain(String args[]){ Thread t = Thread.currentThread(); System.out.println(t.getPriority()); } }
0
1
4
5
Which methods are utilized to control the access to an object in multi threaded programming
Asynchronized methods
synchronized methods
Serialized methods
None of these
Which of the following is used to force each thread to reconcile its working copy of a variable with the master copy in main memory?
Synchronized
transient
volatile
native
What is multithreaded programming?
It’s a process in which two different processes run simultaneously.
It’s a process in which two or more parts of same process run simultaneously.
Its a process in which many different process are able to access same information.
Its a process in which a single process can access information from many sources.
Thread priority in Java is?
Integer
Float
double
long
Join India’s largest community to research company culture
Are you a student or working professional?
Student/Never worked
I am a student/I have never worked
Working Professional
I am working/I have worked before
What are your preferred job locations?
Popular Cities
Other Cities
Follow your preferred designations/job profiles
Suggestions based on your job profile
vs
Similar Companies