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
What is thread safe java?
What is a void method java?
What is an example of a keyword?
Explain, java is compatible with all servers but not all browsers?
When do we use synchronized blocks and advantages of using synchronized blocks?
What are three advantages of using functions?
What state is a thread in when it is executing?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
Can a class be defined inside an interface?
What are the special characters?
What is called module?
Why do I need to declare the type of a variable in java?
Can an interface implement another interface?
what is static import in java? Explain
What is a flag value?