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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / shic kumar

class.forName() is used to load the class at run time that
is also called dynamic loading
this mehod is also used to load the driver for database
connectivity like
class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
here this method is used for loadig jdbcodbc driver

Is This Answer Correct ?    16 Yes 5 No

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

Answer / garima

Class.forName() is other way to create an object other
than new.This Returns class object assosiated with class or
interface with specified name.For example,
Class t=Class.forName("java.lang.Thread");return runtime
class descriptor for class named java.lang.Thread

Is This Answer Correct ?    5 Yes 1 No

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

Answer / siva

class.forName() is used to load the class at run time.

return type is Class object which represents the class
named by the argument.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / uday

Class.forName() is other way to initialize the object .and
it returns the java.lang.Class

Is This Answer Correct ?    4 Yes 6 No

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

Answer / q

eee

Is This Answer Correct ?    3 Yes 8 No

Post New Answer

More Advanced Java Interview Questions

How to send a request to garbage collector?

3 Answers  


How to determine SGA site?

0 Answers   Wipro,


Hello, I'm java developer. My skill is programming with java,jsp, struts, struts2+spring, hibernate, eclipse, tomcat, mysql,Oracle,Middlegen and other open source technology. I'm interest work any web base project that use my ability above. The thing is that I have never got any chance to work in this field though i am very much comfort with my skills. So if any body want me then i will happily join you. Also I have also some of my friends if you. If you interest to outsource any project to me then also you are welcome. you can reach me by email at me4bangalore@yahoo.in

4 Answers  


What is the purpose of the notify() method?

0 Answers  


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

0 Answers  


What is JNI?

1 Answers   Google, TCS,


What are the various thread priorities?

1 Answers  


What do you know about seam?

0 Answers  


whats is statement and procedure

0 Answers   TCS,


Which javutil classes and interfaces support event handling?

0 Answers  


What is deadlock?

2 Answers  


What must a class do to implement an interface?

0 Answers  


Categories