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
What happens when I use / and % with a negative numerator?
What type of language is java?
Where are local variables stored?
can I implement my own start() method? : Java thread
Can we access instance variables within static methods ?
Why do we use string?
Difference between object instantiation and construction ?
Why spring singleton is not thread safe?
Is logger a singleton?
what is nested class in java?
Why java strings are immutable in nature?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What’s the difference between the methods sleep() and wait()?
What is assembly condition codes?
What are constants?