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

How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

579


What is a website container?

509


Can we synchronize static methods in java?

600


What is the relationship difference the canvas class and the graphics class?

560


Why do we need hashmap in java?

559






Give some features of interface?

586


What java is used for?

660


What is nan inf?

507


What is array command?

561


How arrays are stored in memory in java?

513


How do you sort a string in alphabetical order in java?

536


Can you run java program without main method?

545


Explain when we should make an instance variable private.

610


What is fundamental datatype?

531


What is logical variable?

514