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...

whats is mean by class.forName()
whats the return type of class

Answer Posted / jaspal

Class.forName() method is used to load the class in a memory
at runtime. Assume we have a class - aa.bb.DemoClass, then
the method looks like:
Class.forName("aa.bb.DemoClass");

Its return type is a Class object, i.e.
Class classObject = Class.forName("aa.bb.DemoClass");

Now, to create an instance of this class, use
Object object = classObject.newInstance();

Is This Answer Correct ?    26 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1843


What does module-relative mean?

1181


What are the design considerations while making a choice between using interface and abstract class?

1107


What are the services in RMI ?

2397


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2682


Can you give me a simple example of using the requiredif validator rule?

1140


Write a program to show synchronization?

1160


What is the difference between RMI registry and OS Agent?

1163


What is ioc concept?

1215


How are the elements of a borderlayout organized?

1129


What class is used to create Server side object ?

2263


What is a modular application?

1095


Can we sent objects using Sockets?

1156


What is a tasks priority and how is it used in scheduling?

1070


What is the difference between session and entity beans?

1129