Exception handling in java

What is exception handling? Whenever java programme or application runs, java runtime environment make sure it runs smoothly. Runtime environment run java application or programme correctly without any problem. But some abnormal cases the java programmes or application can get into trouble. In such type of abnormal conditions java programme can stop the execution. In […]

Continue reading


Serialization example in java

Serialization is the process of reading the state of object from the memory and putting into persistence media like file, hard disk, database, network etc. To achieve the Serialization mechanism for object, your class must implement the Serialization or Externalizable interface. Example of Serialization: import java.io.Serializable; public class Person implements Serializable{ String name; int age; […]

Continue reading


String class in java

String is sequence of characters. In java String is class which used widely in java programming. Java organizes the string in its own way. Java provides the java.lang.String class to deal with string. • The String is immutable class, once created and initialized, it cannot be change. • The + operator can be used for […]

Continue reading