Can i have abstract class with no abstract methods?

Answer Posted / aravind

yes we can have abstract class with out a abstract methods
but when u have a single abstarct method u r class must and
should be declared as Abstarct.

Is This Answer Correct ?    27 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of nested class in java?

599


What are internal variables?

550


What are the different approaches to implement a function to generate a random number?

565


Why parameters should be passed by reference?

497


How do you sort in ascending order in java?

516






If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

700


why not override thread to make a runnable? : Java thread

553


State the difference between strings and arrays.

597


What are nested classes in java?

600


How does enum work in java?

542


How many types of variables are there?

666


Is an empty arraylist null?

591


How do you sort a string in alphabetical order in java?

527


Which methods cannot be overridden in java?

534


What access modifiers can be used for class ?

534