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 are the states of thread in java?
Can a hashset contain duplicates java?
What is meant by 'bit masking' in java?
What are the files generated after using IDL to java compiler?
Explain the inheritance?
What is the difference between normal report & matrix report?
What do you understand by the bean persistent property?
What is jagged array in java?
What restrictions are placed on method overriding?
What programs use java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
What does the “final” keyword mean in front of a variable? A method? A class?
Difference between collection, collection and collections in java?
What are the changes in java.io in java 8 ?
Difference between character constant and string constant in java ?