what is difference between abstract and interface?
can i give real time example for the two topics?

Answer Posted / richa

abstract class can have some concrete methods and abstract
methods too.abstract class can use accessibility modifier
in abstract class.
but in interface all the method are abstract.In interface
no accessibility modifier is allowed by default it takes
public access modifier.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you read an integer value from the keyword when the application is runtime in java? example?

890


How do you check if a character in a string is a digit or letter?

834


Why is it called boolean?

789


How many bits is a string in java?

819


What are the two types of exceptions in java? Which are the differences between them?

817


Can we convert list to set in java?

761


What are java packages?

840


is it possible to instantiate the math class?

767


Can we have static methods in an interface?

831


What is module in project?

764


How do you define a set in java?

778


What is integers and example?

734


Is string passed by reference in java?

797


What is the difference between static binding and dynamic binding?

846


How does the java compiler work?

762