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


Please Help Members By Posting Answers For Below Questions

Explain how hashmap works?

828


What is tree in java?

684


Can a final variable be manipulated in java?

769


How to connect to a remote database using Applet?

2269


What is the numeric promotion?

732


What is int lol?

889


How is a variable stored in memory?

769


What is the difference between array list and vector in java?

752


What is the static import?

849


What is difference between throw and throws ?

883


What modifiers may be used with a top-level class?

805


How do you declare an empty string?

873


What is the use of a copy constructor?

798


When would you use a static class?

774


What is this keyword used for?

894