what are the uses of Class class and what it returns?
explain it with the example code.
Answer Posted / santhosh kv
we can use class "Class" for dynamic class loading.
ie Class.forName("classname");
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why packages are used?
What is the statements?
What is replacefirst in java?
Why is string class considered immutable?
How to check if linked list contains loop in java?
What is the difference between && and & in java?
what is thread? What are the high-level thread states? : Java thread
How can you make a class serializable in java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What occurs when an object is constructed?
What is the difference between variable & constant?
When does an object becomes eligible for garbage collection in java?
How do you add an element to an arraylist in java?
In Java list the methods that can be overridden?
What is the difference between processes and threads?