Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

similarity between abstract class and interface java

1. We cannot create object using either.
2. All the abstract methods must be overridden by subclass.
3. Both of them don’t have default constructor.
4. By using both we can go for dynamic polymorphism.
5. Both can contain static and final variable.
6. Both inherited from common domain of itself using extends keyword.
7/ Both provide static method implementation.
Comment

PREVIOUS NEXT
Code Example
Java :: how to open activity in android studio 
Java :: java dictionary 
Java :: text before dot java 
Java :: void get method using collections 
Java :: collection vs collections 
Java :: android how to start a new activity on button click 
Java :: localdatetime now + hours 
Java :: java last element in array 
Java :: how to check if page in webview or not in android studio 
Java :: org.sonar.java.AnalysisException: Please provide compiled classes of your project with sonar.java.binaries property 
Java :: How to iterate over a list in Java? 
Java :: absolute method in jdbc 
Java :: java localdate zoneid example 
Java :: java swing jtable zebra stripes 
Java :: check last character of string java 
Java :: java print type of object 
Java :: java array copy 
Java :: android highlight part of textview 
Java :: java only close socket outputstream 
Java :: sum of array recursion java 
Java :: american heavy tanks of ww2 
Java :: java event enter key 
Java :: minecraft java arguments 
Java :: how to get float value in json java 
Java :: jdk path ubuntu 
Java :: java days between 
Java :: cloning of list in java 
Java :: byte data type in java example 
Java :: change button text when clicked android studio 
Java :: install java 8 on windows 10 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =