what is difference between abstract and interface?
can i give real time example for the two topics?
Answer Posted / richa
abstract class can have some concrete methods and abstract
methods too.abstract class can use accessibility modifier
in abstract class.
but in interface all the method are abstract.In interface
no accessibility modifier is allowed by default it takes
public access modifier.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can you read an integer value from the keyword when the application is runtime in java? example?
How do you check if a character in a string is a digit or letter?
Why is it called boolean?
How many bits is a string in java?
What are the two types of exceptions in java? Which are the differences between them?
Can we convert list to set in java?
What are java packages?
is it possible to instantiate the math class?
Can we have static methods in an interface?
What is module in project?
How do you define a set in java?
What is integers and example?
Is string passed by reference in java?
What is the difference between static binding and dynamic binding?
How does the java compiler work?