Skip to main content

Object Creation

Learn Object Creation (Object Memory, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

6. Basic Concepts What Happens When You Write new ? Every time you use the new keyword in Java, the JVM does a small sequence of work behind the scenes to build you a brand-new object in memory. Think of a class as a blueprint (like a house plan) and an object as the actual house built from that plan. The new keyword is the construction crew that turns the plan into a real house sitting on a real plot of land (memory).

More lessons in Object Memory