Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What are the Different Ways to Create an Object in Java??
A class provides the blueprint for objects

We can create an object from a class. There are five different ways to create objects in java.

Using new keyword
Using Class.forName()
Using clone()
Using newInstance()
Using Object Deserialization