whats is mean by class.forName()
whats the return type of class
Answer Posted / garima
Class.forName() is other way to create an object other
than new.This Returns class object assosiated with class or
interface with specified name.For example,
Class t=Class.forName("java.lang.Thread");return runtime
class descriptor for class named java.lang.Thread
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What restrictions are placed on the values of each case of a switch statement?
How are commas used in the intialization and iteration parts of a for statement?
What are the purpose of introspection?
What is the difference between the string and stringbuffer classes?
Why are component architectures useful?
How many times may an objects finalize() method be invoked by the garbage collector?
Explain the different types of memory used by jvm?
Explain what is synchronization?
Do we need to override service() method
What is the difference between system.out ,system.err and system.in?
Can I use multiple html form elements with the same name?
How to pass parameters in RMI?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What happens when a thread cannot acquire a lock on an object?
Why use a datasource when you can directly specify a connection details?