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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is encapsulation?

1094


Can variables be used in java without initialization?

1094


Is main an identifier?

1020


What is a values collection view ?

1101


Which language is java?

991


What are the ways in which a thread can enter the waiting state?

944


Can we able to pass objects as an arguments in java?

1030


How do you declare a destructor in java?

1010


What is the purpose of skeleton and stub?

1252


What is the unit of plancks constant?

1051


What is difference between stringbuffer and string?

968


Can we override static methods in java?

1079


What is meant by tab pans?

1252


Which containers use a flowlayout as their default layout in java programming?

1018


Which is dependent variable?

906