Best Answer

You are talking about the implementation point view of Abstract class and the interface. Let's go. 1. Interface helps Multiple inheritance:- In java you can't have a class inherited from more than one class, i.e. the multiple inheritance. Interface helps us in implementing the multiple inheritance(virtually), because their is no such restriction in implementing more than one interface. But the Abstract class can't help you doing so. 2. Interface helps global declaration:- In C/C++, a header file holds the declaration of the functions and the symbolic constants. Similarly we can have a interface which is having only the symbolic constants which is same for all classes which implements it. And also the method have only the signature and the class which implements it is free to write the body at his own wish. Abstract class can't help in doing this. 3. Abstract class is more secure:- Because in Interface we have all the things public. But in Abstract class we can have private and also friendly members. 4. Interface is overhead:- Because in Interface we are bound to implement all the methods though some of them we actually need. But in case of the Abstract class we can override the methods which we want.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you mean when you say that Java has two concepts?
Write your answer...
Still have questions?
magnify glass
Related questions

What is the Java Math class and what are some of its methods?

There is no java.math class. There are two related concepts, through. The Java.Math package, and the Java.Lang.Math class. See the actual Java API documentation on the links below for a full description of these two.

Does java have goto?

Because goto statements usually result in hard to read code. This was a feature of C++ which the creators of Java decided they didn't want to allow.

What does the plus in java mean?

It is used for addition - to add two numbers. Also, to concatenate two Strings (texts) - that is, to make a longer text from two shorter ones.

What are the kinds of java programs?

the two types of java programs are Applet and application programs

Can a java program has two different variable?

Yes. You can have as many variables as you want in Java

What are the two types of java?

Java is a programming language that has two main types: Java SE (Standard Edition): This is the core Java language that provides all the basic features and functionalities of Java. It includes the Java Virtual Machine (JVM), which is responsible for running Java programs, and the Java Development Kit (JDK), which is used for developing Java applications. Java EE (Enterprise Edition): This is a set of Java APIs (Application Programming Interfaces) and technologies that are used for developing large-scale, distributed, and enterprise-level applications. Java EE includes a variety of APIs such as Servlets, JSPs, EJBs, JPA, JMS, and many others. These APIs provide a rich set of features for developing complex and robust enterprise applications. For more information, please visit: 1stepGrow

What are two world heritage sites in Java?

Borobudur Temple and Ujung Kulon National Park are in Java.

What are the names of the two most populated islands of Indonesia?

Irian Java (Papua), andSumatra,

Name the Republic where Java and the Celebes are situated?

Java and Celebes (Sulawesi) are two of the islands of Indonesia. Sulawesi is world's 11th and Java is 13th largest Islands.

When you say two dozen you mean 24 When you say two moles how many do you mean?

2 Avogadro's Number. This is a very big number.

How do you display two right triangles in java?

two right triangles

What does the phrase mean apple to apple?

It refers to the comparison of two similar objects or concepts. Conversely, the phone "apples to oranges" descibes the comparison of two different and unequal things.