Multilevel inheritance – JAVA

When a class is derived from another derived class is called multilevel inheritance. It is implemented by defining at least three classes. In multilevel inheritance, there is one base class …

Single Inheritance – JAVA

When an only one class is derived from an existing base class is called single inheritance. Single inheritance is only possible if there are two classes which are inherit with …

for-each loop – JAVA

for-each loop provides the facility to trace the element of array starting from 0 and those up to size of array. It always takes one step increment (i++/i=i+1). e.g. for(int …

Methods in JAVA

A method consists of related set of statements to perform a specific task. Method may or may not return some value. Methods provides us the facility to use the same …

Types of variables in java

Types of variables in java Local Instance Class Reference   Local: The variables which are declared and defined inside a block are called local variables as their scope is local …

Description of main() method in java

public static void main(string args[]) public: This method is declared public so that it is accessible by JVM. static: static members do not need instance of the class. So JVM …

Evolution of java

Java is an object oriented programming language which derived most of its features from C++. This project was initiated in 1991 by James Gosling who had in his mind to …

Evolution of C++

C++ programming language was developed by Bjarne Stroustrup in 1983. He started with project around 1980 and launched in 1983. He had a concept in his mind to develop such …

Evolution of C programming

In 1969 a person named Dennies Ritchie started working on a project which is initially developed for UNIX operating system. Dennies had in his mind to make UNIX operating system …