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 does list work in java?
What are the two types of exceptions in java? Which are the differences between them?
What is parsing in java?
What causes memory leaks in java?
what is heap memory?
What does method mean?
What is bean? Where it can be used?
Can we use string in switch case in java?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What is difference between classpath and path variables in java?
How do you implement tree mirroring in java?
What is meant by structural programming?
when you will synchronize a piece of your code? : Java thread
What is static keyword?
What is the difference between preemptive scheduling and time slicing in java programming?