when to use abstract class and when to use interface?
Answer Posted / surendra
Always prefer to interface until you are not sure the behavior
of operations.
chose the abstract class if you are sure for some common behaviors need to share of all objects.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is meant by method?
Why scanner is used in java?
What do you understand by weak reference?
Explain the JDB in depth & command line.
What is meant by string is immutable?
Which collection is thread safe in java?
What is a vararg?
What is advantage of java?
Will the jvm load the package twice at runtime?
What is string example?
What is a prefix function.write down a code to compute prefix function.
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is the purpose of using javap?
Can we have multiple classes in single file ?
Is it possible to use string in the switch case?