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
What is a class variable?
What is internal variable?
What is the gregoriancalendar class in java programming?
What is the syntax and characteristics of a lambda expression? Explain
Define how objects are stored in java?
What is the difference between a scrollbar and a scrollpane?
Explain the available thread states in a high-level?
What is local declaration?
What does i ++ mean in Java?
Which collections are thread safe in java?
What is the difference between static and global variables and also define what are volatile variables?
How do you write a conditional statement?
Is minecraft java edition free?
do I need to use synchronized on setvalue(int)? : Java thread
How hashmap increases its size in java?