Featured
-
How to split a String
Below I have written a code to split a string.
by shahbaz.ahmmod -
Send Push Notification with Custom Data to iPhone device from Java Server Side
This blog will help you to send Push Notifications
by babita.dhami -
Tomcat and Eclipse Integration Error : “Unknown version of Tomcat was specified”
If you are adding Server in Eclipse for Tomcat, an
by chandan.ahluwalia -
Spring MVC and MongoDB
Repository Class Using MongoDB : Spring has th
by sumit.vyas -
How to create DLL file from java?
Hello Guy's This Blog will guide how to create D
by bhagwan.khichar
Tags
Multiple Inheritance in Java with Example
Hello!!
As we know that java does not support the multiple inheritance but java 8 provides a way by which we can use multiple inheritance. It provides a default method to do this job.
In java 7, interface are used to declare the contra...
Interface vs Abstract Class
Interface
Interface can extend many interface.
Interface can extend from a interface only.
Interface have only abstract method by default.
Interface can have public method only it it.
Abstract
Abstract can attend only on class at a time.
...
Interface
Interface is the way to get the multiple inheritance.
This means that a class can inherit two or more class.
As java, we can not extend more than one class but we can extend more than one interface.
So Interface is used to have inheritance
Bu...
Inheritance
Inheritance in java is concept by which one class can have the method of the other class.
The class that is being inherited is called Base or Parent class and the one which derive is called the Derive or child class.
Inheritance can be of the t...