Category Archives

Main thread in Java

Java provides built-in support for multithreaded programming. A multi-threaded program contains two or more parts that can run concurrently....

Main thread in Java

Java provides built-in support for multithreaded programming. A multi-threaded program contains two or more parts that can run concurrently....

Lifecycle and States of a Thread in Java

A thread in Java at any point of time exists in any one of the following states. A thread...

Lifecycle and States of a Thread in Java

A thread in Java at any point of time exists in any one of the following states. A thread...

Multithreading in Java

Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum...

Multithreading in Java

Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum...

new operator vs newInstance() method in Java

In general, new operator is used to create objects, but if we want to decide type of object to...

new operator vs newInstance() method in Java

In general, new operator is used to create objects, but if we want to decide type of object to...

instanceof operator vs isInstance() method in Java

instanceof operator and isInstance() method both are used for checking the class of the object. But main difference comes...

instanceof operator vs isInstance() method in Java

instanceof operator and isInstance() method both are used for checking the class of the object. But main difference comes...

Reflection in Java

Reflection is an API which is used to examine or modify the behavior of methods, classes, interfaces at runtime....

Reflection in Java

Reflection is an API which is used to examine or modify the behavior of methods, classes, interfaces at runtime....

Autoboxing and Unboxing in Java

Autoboxing: Converting a primitive value into an object of the corresponding wrapper class is called autoboxing. For example, converting...

Autoboxing and Unboxing in Java

Autoboxing: Converting a primitive value into an object of the corresponding wrapper class is called autoboxing. For example, converting...

Java.lang.Character Class in Java

Java provides a wrapper class Character in java.lang package. An object of type Character contains a single field, whose...

Java.lang.Character Class in Java

Java provides a wrapper class Character in java.lang package. An object of type Character contains a single field, whose...

Java.lang.Boolean Class in Java

Java provides a wrapper class Boolean in java.lang package. The Boolean class wraps a value of the primitive type...

Java.lang.Boolean Class in Java

Java provides a wrapper class Boolean in java.lang package. The Boolean class wraps a value of the primitive type...