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

Answer Posted / abhishek thakur

1. Four Ways of Object creation

i)Using "new" operator
ii)Using newInstance Method in Class.forName(class name)
iii)in case of deserialisation
iv)using clone

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When will you define a method as static?

551


java program with complete 4 oops concepts implemented example

2726


Explain the difference between protected and default access.

511


How many bits is size_t?

540


What is illegal identifier in java?

529






What is the covariant return type?

574


What is the difference between preemptive scheduling and time slicing?

582


What is an abstract method in java programming?

598


What are kinds of processors?

561


What is the byte range?

578


what is a working thread? : Java thread

548


What are daemon Threads in java?

606


What do you understand by the term polymorphism?

625


What is private protected in java?

543


What is the reflection?

561