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
What is the difference between the paint() and repaint() methods?
When would you use a static class?
Can a top level class be private or protected?
How do you compare values in java?
What is the difference between class & object?
What is the file extension for java?
What is heterogeneous in java?
What is an immutable object? How do you create one in java?
What is java lang object?
What are the drawbacks of singleton class?
What do you understand by the term singleton?
what is the difference between preemptive scheduling and time slicing? : Java thread
When is the arraystoreexception thrown?
Explain the difference between string, stringbuffer and stringbuilder in java?
Explain abstract class in java?