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
when you will synchronize a piece of your code? : Java thread
Explain the difference between association, aggregation and inheritance relationships.
Define an applet in java?
Can we extend singleton class?
What's the purpose of using break in each case of switch statement?
What is the difference between Error, defect,fault, failure and mistake?
Explain restrictions on using enum?
Explain the advantages of packages in java?
What is meant by 'Class access modifiers'?
Is main an identifier?
Explain the public class modifier?
String class is defined under which package in java?
What is variable length arguments in java?
Differentiate between stringbuffer and stringbuilder in java.
In a container there are 5 components. I want to display all the component names, how will you do that?