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 the difference between an array and an array list?
How do you do absolute value in java?
What is the difference between stringbuffer and stringbuilder class?
Is java a digit method?
How do you clear a method in java?
What are the major advantages of internal iteration over external iteration?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
What is array length?
What is use of inner class in java?
What are the procedures?
What is a function in java?
What do you mean by jjs in java8?
What do you understand by casting in java language?
what is synchronization? : Java thread
What does sprintf return?