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 the multi-catch block in java?
What are multiple inheritances?
Explain about anonymous inner classes ?
Why java is used everywhere?
What is the char data type?
What is difference between static class and singleton pattern?
What is static keyword in java?
Where is singleton pattern used?
What is void data type?
What is functional interface in javatpoint?
Is there a case when finally will not execute?
Is binary a low level language?
Which package has light weight components?
How do you sort an array in java?
What are the advantages of autoboxing?