I have a class which is abstract which contains only the
abstract methods. This is similar to an interface. Then, if
i have given a choice to choose one of them. Which one i
have to choose and why?
Answer Posted / ashoka
Better to choose Abstract class. Because it contains not
only the abstract methods but also implemented methods but
in interfaces only unimplemented methods will be there and
all final variables will be there.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is java 1.7 the same as java 7?
State the difference between creating string as new () and literal.
What are the two types of java?
What are structs in java?
What is the purpose of a parameter?
Can we use switch statement with strings?
Who is the owner of java?
What is oop in java?
what invokes a threads run() method? : Java thread
Using callable statement how can you pass out parameters, explain with example?
How can I debug the Java security exceptions and AccessControlExceptions?
How objects are stored in java?
What is immutable class in java?
What is byte [] in java?
What is difference between string and stringbuffer?