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 do you mean by garbage collection used in java?
Can an object be null?
What is the purpose of assert keyword used in jdk1.4.x?
What is the history of java?
Explain the difference between string, stringbuffer and stringbuilder in java?
Is break statement can be used as labels in java?
What will be the default values of all the elements of an array defined as an instance variable?
What is time complexity java?
What is return type in java?
What is anagram in java?
State some advantages of java?
what state does a thread enter when it terminates its processing? : Java thread
Differentiate between vector and array list.
Is it safe to install java on my computer?
How do you find the maximum number from an array without comparing and sorting?