java Q/A
Showing 1 - 10 of 31 results
Processes Threads Process is related to execution of a program . Process consists of multiple threds. Processes communicate with each...
- Interview
- November 21, 2023
There are four types of Access modifiers:
- Interview
- November 21, 2023
Local variable Instance variable Local variable is declared inside a method or constructor. It can be declared within a block...
- Interview
- November 21, 2023
A transient variable would not be serialized even if the class to which it belongs is serialized. Sample class which...
- Interview
- November 21, 2023
Volatile variable values can be modified by different threads. They will never have the chance to block and hold a lock....
- Interview
- November 21, 2023
When an object is passed by value, this means that a copy of the object is passed. Thus, even if...
- Interview
- November 21, 2023
Java provides and supports the creation of both the abstract classes and interfaces. Both implementations share some common characteristics, but they differ...
- Interview
- November 21, 2023
Java does not support multiple inheritance. Each class is able to extend only on one class but is able to...
- Interview
- November 21, 2023
Java does support copy constructors like C++, but the difference lies in the fact that Java does not create a...
- Interview
- November 21, 2023
The constructor overloading is similar to method overloading in Java. Different constructors can be created for a single class. Each...
- Interview
- November 21, 2023