Answer Posted / ravikiran(aptech mumbai)
Interface is purely abstract.all the methods declared inside
the interfaqce are by default abstract and public.
where as an abstract class can have abstarct as well as non
abstact methods.
And an abstract class may heve no abstract methods at all.
we will do like this to restrict the creation of instance
ofthat particular class.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is join () in java?
What is the primitive type byte?
What is the method overriding?
What lambda means?
Why vector class is used?
What is formatted output?
What is variable explain?
Why local variables are stored in stack?
What is a predicate method?
What is the this keyword?
Why is the main method declared static?
What are data types in oop?
Explain the difference between treeset and treemap in java?
What is square root in java?
What is the char data type?