Java Thread Thread term can be used in two ways An instance of class java.lang.Thread A Thread of Execution An Instance of Thread is an object like any other object in Java, it contains variables and methods which lives and Read more…

Java String The String class represents character strings. All string literals in Java programs, such as “abc”, are implemented as instances of this class. Strings are like constants, once created its value can not be changed. String objects are immutable Read more…

Serialization Serialization is a process in which current state of Object will be saved in stream of bytes. As byte stream create is platform neutral hence once objects created in one system can be deserialized in other platform. What is Read more…

Java String Builder class is used to create mutable (modifiable) string. The String Builder class is same as StringBuffer class except that it is non-synchronized. It is available since JDK1.5. Commonly used Constructors of String Builder: StringBuilder(): creates an empty string Read more…

Inheritance Java Inheritance defines an is-a relationship between a superclass and its subclasses. This means that an object of a subclass can be used wherever an object of the superclass can be used. Class Inheritance in java mechanism is used Read more…

Java Inner Class Inner classes are class within Class. Inner class instance has special relationship with Outer class. This special relationship gives inner class access to member of outer class as if they are the part of outer class. Note: Read more…

Collection in java Collection Framework has been added in JDK 1.2 and has been expanded in 1.4 -1.6 Interface & Classes of Collection Framework Collection  in java is a  API provides a group of interface to choose from, but it also Read more…

Exceptions Exception are used in Java to handle errors or any other exceptional event that occurs in the normal flow of program. There are several way Exception can occur in Java. Data provided is not in expected format(eg. int instead Read more…

Override Class inheriting the method from its super class has the option to override it. Benefit of overriding is the ability to define behaviour specific to particular class. Method Overriding Example

Method Override Rules Overriding method can not have Read more…

Java Overloading Overloaded method gives you an option to use the same method name in a class but with different argument. Method overloading is a controversial language feature, especially in the context of Object Oriented languages, where its interaction with Read more…

Facebook