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 we create instance for Abstract class?

Answer Posted / manjit

abstract class aa {
public abstract void main(String[] args);


}

class aaa {
public static void main(String[] args)throws Exception{
Object x = Class.forName("aaa").newInstance();
System.out.println(x);
}
}

Try the above program and be amazed and shocked!

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning of int parse in c#?

949


What is desktop application testing?

924


What is a partial class. Give an example?

977


What are indexers in c# .net?

969


What tool we have to use to install assembli in gac folder.

902


What is uint64?

946


Why singleton pattern is used in c#?

960


Explain about CTS?

962


Is it possible to have a static indexer in c#? Allowed in c#.

951


What is c# used for?

1043


What's the implicit name of the parameter that gets passed into the set method/property of a class?

1001


What is polymorphism in c sharp?

994


Is stringbuilder better than string?

904


Is it good to use var in c#?

871


What is dbcontext c#?

1001