What happens when a thread cannot acquire a lock on an object?
If a thread attempts to execute a synchronized method or synchronized statement and is unable to acquire an object's lock, it enters the waiting state until the lock becomes available.
What is typecasting?
Typecasting is the automatic conversion from one data type to another data type.
What is JVM?
An abstract computing machine, or virtual machine , JVM is a platform - independent execution environment that converts Java bytecode into machine language and executes it.
Java Virtual Machine is the one which change the source code in to the code that is executable through the system so that this helps in making the Java Platform independent as this coude is accessible in any of the operating system
What is JNI?
The JNI is used to write native methods to handle situations when an application cannot be written entirely in the Java programming language such as when the standard Java class library does not support the platform - dependent features or program library. It is also used to modify an existing application, written in another programming language, to be accessible to Java applications.
The JNI is for programmers who must take advantage of platform - specific functionality outside of the Java Virtual Machine. Because of this, it is recommended that only experienced programmers should attempt to write native methods or use the Invocation API
What is final method?
Final method: Final method is a method ,which cannot be overridden in the sub classes