what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / sandeep kumar duey
we can see difference between abstract and inteface class
when we donig thread programming and use Runnable inteface
and Thread class because in case of when we need use
more than one class so in case we use Runnable intface
because we can use more than than one inteface with single
class but can extends only one class .
We also know that java does not support multipal inheritance
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is scope & storage allocation of global and extern variables? Explain with an example
How can you set an applet’s height and width as a percentage?
What are constructors in java?
What is the relationship between class and object?
Where is stringbuffer stored?
What is a return in java?
Explain the importance of finally block in java?
What happens if main method is not static?
What is Java Annotations?
What is the final method?
Can we have this () and super () together?
Describe what a thread-local variable is in java?
Program to Find the second largest element in an array.
Why do we create threads in java?
Is a method a function?