Home » Interview » Technology

What is the syntax to create the object?

Correct Answer: new ClassName(); This expression creates object in heap area and returns that obj address Here JVM creates object but JVM does not returns object original address JVM returns duplicate address, duplicate address is also called as hashcode

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion