Answer Posted / ravikiran(aptech mumbai)
Interface is purely abstract.all the methods declared inside
the interfaqce are by default abstract and public.
where as an abstract class can have abstarct as well as non
abstact methods.
And an abstract class may heve no abstract methods at all.
we will do like this to restrict the creation of instance
ofthat particular class.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of sizeof operator?
Can we print null in java?
Is it possible for a yielded thread to get chance for its execution again?
What is java lang object?
How to calculate the length of a singly linked list in java?
What are different data types?
Is null or empty java?
what is singleton in java?
What is the difference between variable declaration and variable initialization?
How do I get 64 bit java?
What is method overloading in JAVA? Why is it not present in C ?
What all methods are used to prevent thread execution ?
Why java applets are more useful for intranets as compared to internet?
What is the final keyword in java?
In which language java is written?