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
Differentiate between postfix and prefix operators in java.
How do you reverse a string in java?
When is finally block not called?
Describe 2 different ways to concatenate two strings.
What is a memory leak in java?
What are 4 pillers of object orinted programming?
What is the main method java?
Explain the protected field modifier?
How do you read and print a string in java?
what are Hostile Applets?
What is the importance of finally block in exception handling?
What are the differences between forwarding () method and sendredirect() methods?
What is a text string?
What are local variables?
Why is multithreading important?