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's the purpose of static methods and static variables?
Which is better singleton or static class?
How many decimal places is a double?
Is arraylist dynamic in java?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
Write a program to reverse a number in java?
Can we have multiple public classes in a java source file?
What is native method in java?
What is the default value of local and global variables?
Is java still necessary?
What are white spaces in java?
What is the static block?
What do you understand by access specifiers in Java?
What is immutable class in java?
What are the different types of data structures in java?