what is difference between abstraction and interface?
Answer Posted / chandra rekha
A class becomes an abstract class when it has atleast one
abstract method(a method with no definition).The major
difference between abstract classes and interfaces is that
an abstract class can contain both methods with zero
definition as well as methods with definition.But an
interface is one in which all the methods are with no
definition.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is difference between printf and scanf?
Which package has light weight components in java programming?
What is class forname used for?
What is the use of beaninfo?
Why do we use return statement?
What are register variables what are the advantages?
What is a arraylist in java?
What is arrays fill in java?
How do you format in java?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
What is difference between path and classpath in java?
What is a stringbuilder?
Name few "optional" classes introduced with java 8 ?
What is the integer of 16?
What are the types of inner classes (non-static nested class) used in java?