- JAVA OVERVIEW
- History of Java
- Tools you will need for java
- Java Environment Setup
- Popular Java Editors
- Java Basic Syntax/First-Program
- Java Identifiers
- Java Modifiers
- Java Arrays
- Java Enums
- Java Keywords
- Comments in Java
- Java - Objects and Classes
- Objects in Java
- Classes in Java
- Constructors
- Creating an Object
- Accessing Instance Variables and Methods
- Source file declaration rules
- Java Package
- Simple Case Study
- Basic Data Types
- Primitive Data Types
- Reference Data Types
- Java Literals
- Variable Types
- Local variables
- Instance variables
- Class or static variables
- Java Access Modifiers
- What is OOPS
- Inheritance concept
- Encapsulation
- What is Polymorphism
- Method Overloading
- Method Overriding
- Abstraction in Java
- Abstract class
- Interface in Java
- Method overloading in Java:
- What is Annonymous object?
- Java 8
What is the polymorphism as Method Overloading in Java?
Deep Concept about Method Overloading Example of Method Overloading in Java:-
class Bank1
{
String getCustomerName(String s)
{
return s;
}
}
class sbi1 extends Bank1
{
String getCustomerName(String fn, String ln)
{
return fn+ln;
}
}
class icici1 extends Bank1
{
String getCustomerName(String fn, String mn, String ln)
{
return fn+mn+ln;
}
}
class polymorphism2
{
public static void main(String args[])
{
Bank1 b= new Bank1();
sbi1 s =new sbi1();
icici1 i =new icici1();
System.out.println(b.getCustomerName("Heera"));
//System.out.println(b.getCustomerName("Heera"));
System.out.println(s.getCustomerName("Heera", "Babu"));
System.out.println(i.getCustomerName("Babu", "Heera", "Singh"));
}
}