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

Explain about fail safe iterators in java?

664


What is purpose of applet programming?

749


How to declare objects of a class ?

692


Explain the importance of throwable class and its methods?

658


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

739






What do you mean by inner class in java? Explain

698


What are void methods?

656


Explain throw keyword in java?

689


Can private members of a base class are inheritable justify?

578


What about interrupt() method of thread class ?

680


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

695


List the features of java programming language.

653


what is meant by HQL?

728


What is skeleton and stub?

677


Is it possible to compare various strings with the help of == operator? What are the risks involved?

720