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 == and === in javascript?
How will you invoke any external process in java?
What do you mean by of string::valueof expression in java 8?
What is a parameter in matrices?
How many threads can java run?
Write an algorithm for quick sort?
How does list work in java?
What is final method?
What are methods of a class?
Why is core java important?
What is percentage in java?
What is java virtual machine? Explain
What is the purpose of using the java bean?
What is string :: npos?
why not override thread to make a runnable? : Java thread