| Five interview questions asked on Java held on 30 Jan 2021?
(1)How can we restart our dead thread in core Java
No we cannot restart when a thread is dead not possible
(2)Give example of some primitive Java Types?
There are 8 primitive types are
(i)byte
(ii)char
(iii)short
(iv)int
(v)long
(vi)float
(vii)double
(viii)float
(3)Basic definition of transient variable?
Transient variables cannot be serialized during serialization and which is initialized by its default value during deserialization.
(4)What do you think top level class be private or protected?
Here answer is no top level class can not be private or protected. It can either public or no modifier.
(5)Define basic of Class Loader?
It is an object that is mainly responsible for loading classess and this classloader class is an abstract class. | | |