2025

Java Introduction

Java Introduction Java is a high-level,computer-based programming language that functions to develop computer-based applications.Java was developed by Sun Microsystems in 1995.Java is an object oriented, case sensitive, class based programming language that is portable and platform-independent, meaning that Java code can run on any device with a Java Virtual Machine (JVM) installed. Java is also […]

Java Introduction Read More »

Constructor

Java Constructor Constructor in Java is a special block of code used to create the instance of class which is invoked automatically when an object of the class is created. It has the same name as the class name and has no return type. Syntax : The first line of a constructor is a call

Constructor Read More »

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