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
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
Thread
New Thread
Thread[New Thread,5,main]
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
What will happen if two thread of same priority are called to be processed simultaneously?
Any one will be executed first lexographically
Both of them will be executed simultaneously
None of them will be executed
It is dependent on the operating system.
classmultithreaded_programing{ publicstaticvoidmain(String args[]){ Thread t = Thread.currentThread(); System.out.println(t); } }
thread
system
What is the name of the method used to start a thread execution?
init()
start()
run()
resume()
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