Home / DeveloperSection / Tag
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
The interface is a mechanism to achieve fully abstraction. There can be only abstract methods in interface, not method body. An Interface is also used to achieve multiple inheritance in Java.
If you are declared with abstract keyword of a class is called abstract class. It can have abstract and non-abstract method (method with body).
In java Inner class or nested class is declared inside the class or interface. We use inner class because it increases more readable & maintainable of code.
If you are using more than one synchronized method in the program and want to access both synchronized method in a program on single thread.
In java, Damon thread is a low priority thread .It is used for providing background support to any user thread to same process as the daemon thread.
if you have to read and write the textual information Then Java has suggested not to use the FileInputStream and FileOutputStream classes .
If we want to read data from multiple stream in java input/output operation then SequenceInputStream class is very useful for that.
In Java, Their are several ways to taken an input from the keyboard.such like InputStreamReader Class,Scanner class,Console class etc.