Answer Posted / abc
interface is used when we want all the methods implement
the methods differnetly in different situations.
Abstract class
We also use abstract classes to override the
abstract methods that it contains.Otherwise the child class
will mentioned as abstract.
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
Why do I need to declare the type of a variable in java?
what is singleton in java?
How do you achieve singleton?
Why static functions are used?
What is a get method?
What is the purpose of void?
What is a line break?
Can we have more than one package statement in the source file?
What is a line break example?
What are the uses of synchronized keyword?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
Differentiate between postfix and prefix operators in java.
what is thread? What are the high-level thread states? : Java thread
Explain about main thread in java?
Is null an object java?