Java Interview Questions


Q1) What is a Thread?
Q2) What is difference between a thread and a process?
Q3) What are the advantages or usage of threads?
Q4) What are the two ways of creating thread?
Q5) What are the different states of a thread's lifecycle?
Q6) What is use of synchronized keyword?
Q7) What is the difference when the synchronized keyword is applied to a static method or to a non static method?
Q8) What is a volatile keyword?
Q9) What is the difference between yield() and sleep()?
Q10) What is the difference between wait() and sleep()?

Comments

Popular posts from this blog

रेडियोले फर्कायो काठमाडौं : ‘सुर्के थैली खै’ गायक सिवाकोटी

Suman Sanga (17 Nov) - Kanchan Sharma Regmi

Nepali Movie Quiz