What are the different ways to create an object in Java ?
Answers
Answered by
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
Math,
7 months ago
Political Science,
7 months ago
Science,
7 months ago
Business Studies,
1 year ago
Psychology,
1 year ago
Computer Science,
1 year ago
English,
1 year ago