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

Is logger a singleton?

515


Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?

651


What is the difference between size and length in java?

506


Can a static member function access member variable of an object?

554


Is null function in java?

562






How do you escape in java?

572


Add a value x to array from index l to r where 0 <= l <= r <= n-1

620


How do you clear a list in java?

595


Which method cannot be overridden in java?

589


What flag up means?

593


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

611


Can we declare a static variable inside a method?

524


What are static blocks and static initalizers in java ?

580


What is ascii format?

545


Is void a type?

580