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

Answer Posted / namita

In abstract class concrete methods are also there. concrete
methods are the one which has implementation. so in future
if any programmer wants to give concrete methods can use
abstract class not interface.
In abstract class for methods and variables
public,private,protected modifier can be use. but in
interface public and abstract are permitted.

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java basic concept?

521


What is an iterator interface in java programming?

528


how to write a server program and sending the mails to the server using smtp protocol please help me

1546


Write a program to print fibonacci series

609


What is the dot operator?

563






What is application system?

500


what is optional in java 8?

549


What is the use of put method?

514


Can we make constructors static?

721


What is the public field modifier?

542


Add a value x to array from index l to r where 0 <= l <= r <= n-1

621


How can we create an immutable class in java?

579


What is the use of singleton?

506


What are extraneous variables examples?

521


Why hashcode is used in java?

497