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 the root class for all Java classes?

8 Answers   IBM, Infosys,


Why put method is used?

0 Answers  


What is difference between char array and string?

0 Answers  


What is the console in java?

0 Answers  


Why java is call by value?

0 Answers  


What is the difference between dom and sax parser in java?

0 Answers  


when you will synchronize a piece of your code? : Java thread

0 Answers  


What is the definition of tree ?

0 Answers   Amazon,


What Is Pointer?

4 Answers  


What is null statement?

0 Answers  


Explain different ways of creating a thread. Which one would you prefer and why?

0 Answers  


why applet doesn't have main? isn't possible a program with out main?

9 Answers   TCS,


Categories