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

why Interface used?

526


Explain about public and private access specifiers?

526


Variables used in a switch statement can be used with which datatypes?

505


Why we use multi threading instead of multiprocessing?

567


What is the difference between stream and buffer?

507






What is string substring?

554


Explain the polymorphism principle?

567


What do you understand by final value?

580


What is meant by distributed application? Why are we using that in our application?

541


What are the string methods in java?

574


What do you mean by byte code?

501


Can we extend singleton class?

525


what are the methods in object?

623


How to compare strings in java?

494


What is meant by polymorphism?

529