What is an abstract class and abstract method?

Answer Posted / nikhlesh gupta datia(m.p.)

Abstract Method:- The method which is define in the class without bodies that is without implementation is call as Abstract Method. & all the Abstract Method must be define with abstract keywords.

Abstract Class:- The class which is define with some abstract method is called as Abstract Class. & all the Abstract Method must be define with abstract keywords. We cannot created the object of abstract class.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an error in java?

635


What methods are used to get and set the text label displayed by a button object?

550


What are internal and external variables?

540


Why is java so popular?

627


How to add menushortcut to menu item?

557






What is a generic type?

556


What do you mean by ternary operator in java?

554


Why generics are used in java?

545


why java uses class level type casting ?

2251


What is the use of put method?

514


What is keyset in java?

652


Can a static block throw exception?

649


What is arrays aslist in java?

513


Write a program to check for a prime number in java?

555


Can final class have constructor?

493