Difference between error and exception in java

Error+vs+Exception

Exception and Error both are sub classes of java.lang.Throwable class. We can handle Exceptions at runtime but Errors we can not handle. (adsbygoogle = window.adsbygoogle || []).push({}); Exceptions... read more ?

Why StringBuffer Class not overriding equals and hashCode methods

YES StringBuffer and StringBuilder classes not overriding equals()method and haschcode() method. Before discussing about why these classes are not overriding equas() and hashcde() methods lets see the usage... read more ?

Life cycle of thread in java

Thread+life+cycle

Its recommended to learn about life cycle of Thread before you start programming on Thread. Threads exists in different type of states. (adsbygoogle = window.adsbygoogle || []).push({}); Thread... read more ?

Difference between throw and throws in java

throw keyword: throw keyword used to throw user defined exceptions.(we can throw predefined exception too) If we are having our own validations in our code we can use... read more ?

User Defined Exceptions in java

Apart from java we have Existing Exceptions. and we can also create our own Exceptions nothing but User defined Exceptions. User defined exceptions in java are also known... read more ?

try catch finally in java

try block: The functionality of try keyword is to identify an exception object. And catch that exception object and transfer the control along with the identified exception object... read more ?

Different Ways to Create Thread in Java

In  java we can create user defined threads in two ways  Implementing Runnable interface extending Thread class. (adsbygoogle = window.adsbygoogle || []).push({}); These are the two different ways... read more ?

Top 20 Basic Java Interview Programs on Increment Decrement operators

In most of the interviews questions on increment and decrement operators will come in face to face or in written test. Every Java Interview written test will have... read more ?

Top 13 Java Interview Questions on Static keyword

1.what is static in java? Static is a keyword in java. One of the Important keyword in java. Clear understanding of static keyword is required to build projects.... read more ?

Essential Classes of Java

Lets discuss about what are the common functionalities everyone needs when developing a application and what are the classes we require mostly to rectify common problems. (adsbygoogle =... read more ?

Static class in java

Yes we can create a class as static. But class should be inner class or nested class. We know how to create static methods, static variables and static... read more ?

Select Menu