Business Studies, asked by archanamondal9328, 11 months ago

What are the different ways to create an object in Java ?

Answers

Answered by BROKENKID
0

☑ There are FIVE different ways to create objects in Java:

➡ Using `new` keyword: This is the most common way to create an object in Java. ...

➡ By Using Factory Method: ClassName ObgRef=ClassName. ...

➡ By Using Cloning Concept: ...

➡ Using `Class.forName()`: ...

➡ Using object deserialization:

Similar questions