2025

Exception Handling

An Exception is an unwanted or unexpected event that occurs during the execution of a program and disrupts the normal flow of the program that lead to abnormal termination. It occurs when unexpected events take place, like accessing an invalid index, dividing by zero, or trying to open a file that does not exist. To handle such […]

Exception Handling Read More »

Java Inner Class

In Java, Inner Class also called as Nested Class is the class declared inside class or interface used to logically group classes and interfaces in one place to be more readable and maintainable. Syntax of Inner class Advantage of Java Inner Class Difference between nested class and inner class in Java An inner class is

Java Inner Class Read More »

Call by Value and Call by Reference

Call by Value and Call by Reference in Java Call by Value : In Java, call by value refers to calling a method by passing the value in the parameter in which no changes are reflected in the main method because call by value passes a copy of the variable to the method. When we

Call by Value and Call by Reference Read More »

Scroll to Top