There can be a abstract class without abstract methods, but
what is the need to declare a class abstract if it doesn't
contain abstract methods?

Answer Posted / zartab

An abstract class when declared, any method declared inside it becomes implicitly abstract and hence any class extending it have to provide deferred implementation.

Is This Answer Correct ?    2 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What restrictions are placed on method overloading?

598


What is JVM and is it platform independent?

554


What is a predicate method?

558


How can you set an applet’s height and width as a percentage?

504


What is use of map in java?

503






hr interview how many minutes asking question

1558


How do I compare two strings in word in java?

530


What is meant by tab pans?

643


What is java objectoutputstream?

537


How to perform bubble sort in java?

583


How do you declare a variable?

617


Difference between string s= new string (); and string s = "abv";?

736


Can we declare the static variables and methods in an abstract class?

541


What is the default access specifier for variables and methods of a class?

559


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

604