⟩ Name the methods available in the Thread class?
isAlive(),
join(),
resume(),
suspend(),
stop(),
start(),
sleep(),
destroy()
isAlive(),
join(),
resume(),
suspend(),
stop(),
start(),
sleep(),
destroy()
Tell us how can you swap the values of two numeric variables without using any other variables?
Tell us what do you mean by aggregation?
Tell me can an enum be extended?
Do you know what is the advantage of generic collection?
Explain me why doesn’t the following code generate a NullPointerException even when the instance is null?
Explain me what is a good usecase of calling System.gc()?
Do you know how threadsafe is enum in Java?
int a = 1L; won’t compile and int b = 0; b += 1L; compiles fine. Explain me why?
Explain me what is method overloading and method overriding?
Explain me what is the volatile keyword? How and why would you use it?