Inner classes :To define one class into another, this process is called as inner classes.
There are four type of inner classes
1) Member inner class.
2) Static inner...
Abstract classA partially implemented and partially unimplemented class, is called as abstract class.
Definition : A class which have at least one abstract method,...
We can create the reference of super class and assign the sub class object to it. The execution behavior of this reference variable is depends upon the super class....
InterfaceA special type of class, which is used to declare only abstract methods is called as interface.
Keyword "interface" is used to define this class.
Keyword...
Inheritance:The concept of reutilazation is called as inheritance.
Inheritance is used to eliminate the reduandancy of program.
Note : Keyword "extends" is used to...
Primitive data types:
There are four primitive data types in JAVA.
Interger - byte, short, int, long
Real Number - float, double
Character - char
Boolean -...
A special type of method, which is used to construct memory for class elements, is called as constructor.
Example :
class A
{
A()
{
}
}
It's specialties are...
To define the same name method for more than one time in one class with same signature and different arguments this concept is called as method overloading.
Signature...
Access specifiersJava have four access specifiers.
public :
The keyword which is used a access specifier whose data can be accessible in same class, other class, other...
The classes which are used to convert the string value (Actually numeric) into it's respective data type, are called as wrapper classes.
Classes
Integer
Float
Character
Long
Short
Byte
Boolean
Double
And...
The arguments which are passed through command line at run-time and which are stored in the array of string class in main method are called as command line arguments.
...
String : A built in class, whose object is used to store the set of characters, is called as string.
Example :
String S1=new String("Hello");
or
String S1="Hello";
String...
Array : A homogeous set of finit elements which is stored in a continues memory location under certain name, is called array.
Example:int a[]=new int[5];
a[0] =4;
a[1]...
Static keyword is used to load the class data into primary memory first to the object. As it is directly loaded into memory, it can be accessible directly.
Note :...
Structure oriented language 'C' when implemented with new object oriented concepts, it becomes 'C++'.
These new language doesn't support/follow the concepts so C++...