Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can there be an abstract class with no abstract methods in it?



Can there be an abstract class with no abstract methods in it?..

Answer / pankaj kumar

Yes,If A class have an abstract method the class must be declared as abstract, but if a class is declared as abstract
then,this is not mandatory that class hold any abstract method.

exa :
1. public Abstract class a{

// instance method;
}
///Above declaration is right

2. public class a{

// instance method;
// abstract method; //then you must declare this class as abstract.
}
///Above declaration is right

Is This Answer Correct ?    13 Yes 2 No

Post New Answer

More Core Java Interview Questions

What is Java Annotations?

0 Answers  


Do you know thread pools?

0 Answers   BMC,


What is the difference between delete and delete[]

3 Answers   Amazon,


What is the same as procedures?

0 Answers  


what is thread? What are the high-level thread states? : Java thread

0 Answers  


Why we can not force Garbage Collection?

7 Answers  


How do you use nextline in java?

0 Answers  


Why unicode is important?

0 Answers  


What are the skills required for core java?

0 Answers  


Does java return by reference?

0 Answers  


What is polymorphism and what are the types of it?

0 Answers  


What is the % operator?

2 Answers  


Categories