Unit 8 : Inheritance

Inheritance It is the process by which object of one class can acquire the properties of object of another class.  The class, from which properties are inherited, is known as super class.  The class, to which properties are inherited, is known as sub class. A sub class inherits all of the variables and methods defined by the […]

Continue Reading

unit 1 Java programming

Example;-WAP to print a message “Welcome to Java World”.

Output: Welcome to Java World Explanation of above program public static void main(String args[]) All Java applications begin execution from main ( ) function. (This is just like C/C++.) The public keyword is an access specifier, which allows the programmer to control the visibility of […]

Continue Reading