What is the use of Class.forName

Answer Posted / ramaiah raj

Class.forName(String ClassName); Here Class is Predefined
class.forName(String className) is method used to create the
object which declared as abstract. In JDBC the Driver class
is an abstract class. So in order to create a instance
forName method is used.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which component handles cluster communication in jboss?

833


Is a class a subclass of itself?

812


Why are component architectures useful?

784


What is the difference between the ‘font’ and ‘fontmetrics’ class?

846


What is RMI and what are the services in RMI?

833


What is the relationship between the canvas class and the graphics class?

754


Should synchronization primitives be used on bean methods?

770


the same information whether it will connect to the database or it will be used previous information?

789


What is the purpose of the notifyall() method?

793


To what value is a variable of the string type automatically initialized?

865


Is “abc” a primitive value?

805


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1953


Is infobus easy to use?

787


What is the RMI and Socket?

808


What is permgen or permanent generation?

762