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 many bytes is 255 characters?
Why singleton is not thread safe?
How do you create immutable object in java?
How do you use spaces in java?
What does percent mean in java?
Why is multiple inheritance not supported in java?
What is the ==?
What is the difference between reader/writer and inputstream/output stream?
For class CFoo { }; what default methods will the compiler generate for you>?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
What are the various access specifiers for java classes?
What are facelets templates?
What is the difference between super class & sub class?
Write a java program for binary search?
What is the structure of java?