When we r go to abstract class and when we go to Interface?
i have confusion this question while in interview plz clarify
Answer Posted / arjun
In interface we can writer interface keyword and abstract we can write abstract class
In interface we can write constructor but abstract no
In interface we can forcely implement all methods but abstract no
In interface all variables public static final we can not change but abstract not
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
How we can make copy of a java object?
What is sleep method?
How do you convert an int to a string in java?
What is the difference between logical data independence and physical data independence?
What are instance variables?
Define max and min heap, also the search time of heap.
please send me hr interview questions in it industry
Explain the importance of join() method in thread class?
Explain method local inner classes ?
Which containers use a flowlayout as their default layout in java programming?
What do you understand by the term polymorphism?
What is the difference between hashmap and hashtable? What is an interface?
Give us the name of the list layoutmanagers in java?
Can you explain the usages of class.forname()?
What is the difference between numeric and integer?