Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

what is class.forname() and how it will be useful ?

Answer Posted / amit singh

it is useful when you don't know about the class as compile
time you must to use it you pass the class name as a string
and
its a part of reflection api
but you used it when you connect through db
and many more you should do when you don't know the class
at compile time
and also above which mention by pradip right
amitsingh200@gmail.com
amit09mca(scjp 1.5 and manymore)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are final variable in java?

198


Can we catch more than one exception in a single catch block?

186


enlist some features of jdk.

190


How are observer and observable used in java programming?

199


Does unicode support all languages?

157






What is thread safe in java?

162


Why are data types important?

159


How many bits is a boolean?

168


What is a local class in java?

210


What is unicode used for?

157


What is difference between static and abstract class?

153


Difference between arraylist and vector.

199


What are the types of exceptions?

190


Does isempty check for null?

166


Explain the difference between intermediate and terminal operations in java8?

183