Web
Analytics
Java tutorials Archives - Page 2 of 2 - Tutorial

For Consultation : +91 9887575540

Stay Connected :

Object Oriented Programming in JAVA – Inheritance

Object Oriented Programming in JAVA – Inheritance

Object Oriented Programming in JAVA – Inheritance  What is Inheritance? The main purpose of the inheritance is code extensibility whenever we are extending automatically the code is reused. In inheritance one class giving the properties and behavior and another...
Constructor Calling in Constructor function in JAVA

Constructor Calling in Constructor function in JAVA

Constructor Calling in Constructor function in JAVA Basic Idea of Constructor Constructor in java is a special type of method that is used to initialize the object. Java constructor is invoked at the time of object creation. Ex Test tobj=new Test(); Rules of Java...
Java Classes and Objects

Java Classes and Objects

Classes and Objects Class Definition —A class is  prescription for a particular kind of object. —Objects can be created using the class.Object can access all the member variables and methods(Depends on the acess modifiers) —A class have two things- 1.Fields :-...
Arrays in JAVA

Arrays in JAVA

What is Array Array is collection of similar primitive data types, object reference or collection of other array. All java array are treated as objects. We can construct java array using new keyword. All java array elements are initialized by their data type ‘s...
Static Variables in JAVA

Static Variables in JAVA

if you declare any variable as static, it is known static variable. The static variable can be used to refer the common property of all objects (that is not unique for each object) e.g. company name of employees,college name of students etc. The static variable gets...
Select your currency