An exception can be defined as “anything which interrupts the normal program flow”. The program processing will be stopped immediately, whenever there is an exception. Exception occurred during run-time are called as runtime exceptions and exception occurred during compile time are called as compile time exceptions. Exception and Errors- Difference Errors are complicated and crucial […]
What is Downcasting in Java?
The process of typecasting the object of base class type into derived class type is called as downcasting in Java. The process of Java downcasting is simple. All you have to do is to derive a class from base class by direct or indirect process. An object from base class type is automatically typecasted into […]
Types of Binding in Java
The process of connecting a method definition to a method call is called binding. Binding processes are classified into two types namely: Static Binding Dynamic Binding Static Binding Static Binding is also known as Early Binding. If a compiler can resolve the binding process during compile time it is called as static binding. Instance methods […]
What are the Thread States in Java?
Thread state in Java is also known as the life cycle of a thread. There are seven life stages for a thread in Java. Any thread used in Java will fall under any of one of those seven categories. The life cycle of a thread is controlled by JVM (Java Virtual Machine). The following are […]
Explain Multiple Inheritance in Java?
Multiple inheritance can be defined as the single class inherited from multiple classes but there is no multiple inheritance in Java. The goal of Java designers is to create a simple programming language; the designers felt that using multiple inheritance in Java will make it too complex. The use of multiple inheritance in Java may […]
What is Java Serialization ?
Serialization is a process where a present state of object will be saved in a bytes stream. The byte stream is neutral so objects created in other platform can be deserialized in other platforms. De-serialization is exactly the reverse option of serialization. Serialization process are mainly used during EJB, JMS, JPA and RMI. java.io.serializable interface […]
Java Access Modifiers - Interview question
Access Modifiers in Java will help you to structure your program for suitable scoping. This article will assist you in learning the difference between private, public and protected access modifiers. Some examples are also explained about how to use these access modifiers. Public Public access modifier is the most popular keyword used in Java. Public […]
- « Previous Page
- 1
- …
- 6
- 7
- 8
- 9
- 10
- …
- 13
- Next Page »