How is object created in java?

Answer Posted / ishaque

There are many ways to create an object in java. They are:

By new keyword
By newInstance() method
By clone() method
By factory method etc.

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of packages in java?

569


What is the purpose of the runtime class in java programming?

562


How do you escape json?

538


Define how destructors are defined in java?

586


What is the reflection?

561






What are the advantages of autoboxing?

535


What is the meaning of flag day?

537


How do you check if an arraylist is not empty?

573


Which method returns the length of a string?

564


From the two, which would be easier to write: synchronization code for ten threads or two threads?

613


What is the vector class in java programming?

561


What is charat java?

538


What is the difference between object oriented programming language and object based programming language?

552


Can we have multiple classes in single file ?

599


What is the main purpose of serialization in java?

525