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 purpose of declaring a variable as final?
In Java list the methods that can be overridden?
What is a java string?
What are measurable parameters?
When does an object becomes eligible for garbage collection in java?
What is the synonym of string?
What is unicode datatype?
How do you stop a thread in java?
Can we have try block without catch block?
What is the super void?
What is difference overloading and overriding?
Why main method is called first in java?
What are different types of arrays?
What are internal and external variables?
How do I find and replace in word?