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 to remove the trailing spaces from a string?
How do you sort in java?
What is a numeric format?
What is a numeric digit?
What is the purpose of static methods and static variables?
Why synchronization is important in java?
What is command line argument
What is encapsulation in java?
What does singleton mean in java?
What are the parts of a method?
What loop means?
What is the benefit of singleton pattern?
What is arraylist class in java?
How do you convert int to char in java?
Can a class be private or protected in java?