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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What restrictions are placed on the values of each case of a switch statement?

535


How are commas used in the intialization and iteration parts of a for statement?

583


What are the purpose of introspection?

680


What is the difference between the string and stringbuffer classes?

545


Why are component architectures useful?

575






How many times may an objects finalize() method be invoked by the garbage collector?

672


Explain the different types of memory used by jvm?

614


Explain what is synchronization?

575


Do we need to override service() method

1145


What is the difference between system.out ,system.err and system.in?

598


Can I use multiple html form elements with the same name?

581


How to pass parameters in RMI?

1690


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1638


What happens when a thread cannot acquire a lock on an object?

541


Why use a datasource when you can directly specify a connection details?

534