If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?

Answer Posted / sumit jain

i am not agree with the answer provided by prasad bhagwat
as already mention inthe question that all the method of
abtract class are declared as abstract and as per rules of
abstract class impletation you need to provide
implemenation of all abstract methods present in abstract
class unitl & unlesss you declared child class also as an
abstract class.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data object example?

525


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

549


Can constructor be protected in java?

498


Difference between class#getinstance() and new operator ?

638


What class allows you to read objects directly from a stream?

856






Why call by value prevents parameter value change?

577


What are green threads in java?

549


extending thread class or implementing runnable interface. Which is better? : Java thread

559


What is abstraction in java?

611


What are different types of states exist for a thread?

543


Can we have try block without catch block?

578


What is meant by local variable and instance variable?

592


What is a class instance variable?

612


What methodology can be employed to locate substrings inside a string?

517


What is passing by reference in java?

533