Category: Archieve
Boolean Class in JAVA with Example
Boolean Class is a wrapper class that wraps the primitive type boolean. This class provides mechanism to convert primitive type “boolean” to object type “Boolean” or vice versa.…
Difference Between String And StringBuffer in JAVA With Example
Difference between String Class and String buffer class String class is Immutable whereas String Buffer class is Mutable. String class consumes more memory whenever we append too many…
String Tokenizer in JAVA with example
String Tokenizer class is for breaking a string into tokens. This class is basically a legacy class although it is used only because of its compatible reasons, but…
Life Cycle of a Thread In JAVA
In Multithreading, Thread can be in one of the five states which forms life cycle of the Thread. This life cycle of a thread is controlled by java…
Creating a Thread in Java with Example
Threads as we have discussed are light- weight smallest part of process that can perform tasks simultaneously with other threads of the same process. In this article we…
Method Overloading vs Method Overriding In JAVA
In this section we are going to discuss the difference between method overloading and method overriding. Firstly understand the definition of both terms in brief: Method overloading refers…
Interface vs Abstract Class In JAVA
An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface.…
Static Keyword In Java With Examples
Static keyword in java is mainly used to save memory as with the help of static we can declare data one time and access it in a whole…
Exception Handling In Method Overriding
Exceptions are the customary way in java to a calling method that an abnormal condition has occurred. When a method encounters an abnormal condition that it can’t handle…
Hashset Methods In Java With Example
Hashset is a type of Java Collection that uses Hash table for storing the data, which internally uses a phenomena known as hashing. HashSet do not allow duplicate values,…