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
How are variables stored?
Can we have multiple public classes in a java source file?
why an outer class cannot be declared as private?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
Is the empty set a singleton?
Does java have a compiler?
How many bytes is a url?
What is the difference between hashmap and hashtable? What is an interface?
Can we have more than one package statement in source file ?
What is the same as procedures?
How do you test a method for an exception using junit?
What is the difference between iterator and enumeration ?
What is overloading and overriding in java?
What is command line argument
Does java isempty check for null?