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

What will happen to the exception object after exception handling?

797


How are variables stored in memory?

809


Why java is not 100% object-oriented?

1193


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

753


Write a program based on Java script program.

855


How can we create an immutable class in java?

811


What is a platform?

738


What is private static in java?

802


What one should take care of, while serializing the object?

675


Can java cast null?

789


How to reverse a string in java?

770


What are alternatives to java serialization?

812


How can we make copy of a java object?

779


What is the program compilation process?

789


What is the size of string?

771