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 access scope of a protected method?
What is a generic type?
What is a method in programming?
What is the syntax and characteristics of a lambda expression?
What is difference between static class and normal class?
what is thread? What are the high-level thread states? : Java thread
Give example to differentiate between call by value and call by reference.
Can vector have duplicates in java?
What is the meaning of variables in research?
What are drawbacks of singleton class?
Is a method a procedure?
What are the four versions of java?
What modifiers may be used with a top-level class?
What is a pattern what is an anti pattern?
What do you mean by formatting?