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 ?

Top 10 Java Interview Questions On main() Method

main+method+interview

1.Can we define a class without main method? No, you can’t run java class without main method.  Before Java 7, you can run java class by using static... 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 ?

Select Menu