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
Social Sciences,
6 months ago
English,
6 months ago
Business Studies,
11 months ago
Psychology,
11 months ago
Computer Science,
1 year ago
English,
1 year ago