How is object created in java?

Answer Posted / javamasque

Object is created in four different ways
1. Using new operator
2. Class.forName(..)
3. Cloning
4. Serializing and De-serializing

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default size of load factor in hashing based collection?

558


What is java and why do we need it? Explain

581


Is there any tag in htm to upload and download files?

604


What is gui programming?

514


Is alive in java?

502






what happens when a thread cannot acquire a lock on an object? : Java thread

536


Why lambda expression is used in java?

568


What is the use of static class?

539


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

516


What is an abstract class and what is it’s purpose?

537


I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in

1593


What are the default and parameterized constructors?

549


Difference between error and exception

5005


What is stringreader?

523


What are namespaces in java?

522