How to create an instance of a class without using "new"
operator? Plz help me out properly.Thank u.

Answer Posted / prakash sah

This is happening using reflection. Read reflection in java

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by javabeans?

620


Can we execute java program without main method?

526


What do you understand by classes in java?

574


What are the access modifiers in java?

597


What is the difference between arraylist and hashset in java?

527






What is meant by anonymous class?

605


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

605


Can a class be defined inside an interface?

568


What is collections framework?

588


Write the algorithm to check the number non-leaf nodes in a tree.

611


Why webdriver is an interface?

589


What is the final keyword?

563


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2247


What is a method header?

554


Why is stringbuffer faster than string?

497