Java exception handling mechanism in details

In Java, checked exceptions play a significant role in defining the contract and behavior of methods during inheritance. we will explore some key rules for using checked exceptions during inheritance, along with code examples in this article. Method Overriding is possible only if certain conditions are satisfied. These are a few of them. The argument … Read more

Java final keyword

One of the features of Java that is particularly important for programmers to understand is the “final” keyword. In Java, the final keyword is used to denote constants. It can be used with variables, methods, and classes. we’ll take a look at what the final keyword means for classes, methods, and variables. The “final” keyword … Read more

Java Volatile keyword

The Java volatile keyword is used to mark a Java variable as “being stored in main memory”, means that every read of a volatile variable will be read from the computer’s main memory, and not from the CPU registers, and that every write to a volatile variable will be written to main memory, and not … Read more

Java Transient Keyword

In the world of Java programming, developers often come across terms like “transient” when dealing with variables. These modifiers play a crucial role in determining the behavior and characteristics of variables in different scenarios. In this article, we will look into the concepts of transient, explore it for better understanding. Transient Keyword in Java In … Read more

Java Immutable Class

In this article, we will look how to create custom immutable class in Java. Immutable objects are those objects whose states cannot be changed. For example, you can change the state of an object by changing its attribute’s or field’s value. String is an example of an immutable class in Java. Other examples of immutable … Read more

What is exception handling in java

Exception handling is an essential part of any robust software application. In Java, an exception is an event that interrupts the normal flow of a program and can occur at runtime. It could be due to various reasons, such as incorrect input, lack of resources, or programming errors. Exception handling helps a program handle such … Read more

Java Static Initializer Block

In Java, a static initializer block is a block of code that is executed when a class is loaded into memory. It is typically used to perform some initialization tasks that need to be done before the class can be used, such as initializing static variables, registering JDBC drivers, or building complex data structures. In … Read more

Understanding Java Virtual Machine in details

The Java Virtual Machine (JVM) is an integral part of the Java platform and is responsible for executing Java code. It provides a platform-independent environment for running Java applications, allowing developers to write code once and run it anywhere. Understanding how the JVM works is essential for Java developers to optimize performance and ensure the … Read more

What is Java

Java is a programming language and a computing platform. Java is a high level, robust, object-oriented and secure programming language. Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995.  Before Java, its name was Oak. James Gosling is known as the father of Java. Over time, several … Read more

Java features version wise

JDK 1.0 This is the first version of JDK introduced in way back in year 1996 In the initial years, Java was actually referred as OAK, after an OAK tree that stood outside the office of developer/inventor James Gosling Through minor release, a stable version of JDK 1.0.2 is introduced by a new name called … Read more