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
Why do we need autoboxing in java?
Is stringwriter thread safe?
Is null false in java?
Can this keyword be used to refer static members?
Is alive in java?
What kind of variables a class can consist of?
what is object slice?
What are the types of java?
Discuss 2D arrays.
Which sort is best in java?
What is final?
What is a parameter in a function?
What are the two ways in which thread can be created?
What are the rules for naming an array?
What is a list in java?