Java Version History
Java is a programming language and computing platform first released by Sun Microsystems in 1995
Java freshers interview questions, java interview questions, top 50 interview questions, freshers java interview questions,core java interview questions
Java is a programming language and computing platform first released by Sun Microsystems in 1995
1. What are nested classes in java? Class declared with in another class is defined as nested class.There are two types of nested classes in java.1) Static nested class :…
What is the difference between an interface and an abstract class in Java? In Java, an interface and an abstract class are both used to define a contract for classes…
In Java, a String is an immutable object that represents a sequence of characters. It means once a String is created, its value cannot be changed, any operation that appears…
In Java 8, streams use a technique called “lazy evaluation” to process data. Lazy evaluation means that a stream operation is not executed until it is absolutely necessary. This can…
In this post, we will see questions asked on String during java interview 1. Explain String pool in java? String Pool is java string literals pool that JVM maintains a…
Example Custom serialization in Java: import java.io.*; class Person implements Serializable { private static final long serialVersionUID = 1L; private String name; private int age; public Person(String name, int age)…
In Java, serialization works with inheritance in the following way: If a class implements Serializable, its subclasses will also be serializable, regardless of whether the subclasses implement Serializable or not.…
In this tutorial, we will learn more and in detail on Java Serialization and Deserialization. Java serialization is very import topic and every developer should know this topic. Serialization: Java…
In this post, we will see more details on SerialVersionUID and also issues with default serial version id. SerialVersionUID: Java uses serialVersionUID field for versionsing. It’s a static and final…