Hi,
Hope you are all doing great. Let's learn together.
Note:
Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995. James Gosling is known as the father of Java. Before Java, its name was Oak. Since Oak was already a registered company, James Gosling and his team changed the name from Oak to Java.
Like, Comment, Share, Subscribe.
Thank you again.
Video Links --
Access Modifier. Private, Public, Default, Protected -- • Access Modifier. Private, Public, Default,...
Encapsulation, Data Hiding, Setter-Getter method, JavaBean Class -- • Encapsulation, Data Hiding, Setter-Getter ...
Polymorphism, Method and Constructors Overloading, Method Overriding -- • Polymorphism, Method & Constructors Overlo...
Inheritance, Is-A relationship, the problem with multiple inheritances -- • Inheritance, 'IS-A' relationship, multiple...
Abstraction, Interface -- • What is Abstraction? Interface Implementat...
Abstraction, Abstract Class - • What is Abstraction? Abstract Class Implem...
What is Class, Object, Method, Constructors- • What is Class, Object, Method, Constructo...
Environment Setup and why we need to set path in environment variable -- • Environment Setup. Why do you set a Java p...
First Java Program - "Hello World" -- • First Java Programming "Hello World" Print...
Document Link -
https://docs.google.com/document/d/14...
Like, Comment, Share, Subscribe.
Thank you again.
STS Link:
https://spring.io/tools
JDK Link:
https://www.oracle.com/java/technolog...
1.No contractor.
2. An interface can be empty, with no methods or variables in it. - Marker Interface
3. Interface variables are public, static, and final by definition.
4. An interface contains only constants, method signatures, default methods, and static methods.
5.Java 9 introduced the possibility of defining private methods in interfaces
6. Method body exists only for default methods and static methods, private methods.
7. We can’t create an instance of the interface but we can make the reference.
8. A class can implement more than one interface. It is used to achieve multiple inheritances.
9. An interface can extend to another interface or more than one interface. (extends)
10. A class that implements the interface must implement all the methods(Abstract Methods) in the interface.
11. All the methods are public and abstract (Abstract Methods). And all the fields are public, static, and final.
12. An interface can not contain the final and protected methods.
13. Functional Interface – Contain only one abstract method.
Note: If you define a reference variable whose type is an interface, any object you assign to it must be an instance of a class that implements the interface.