class Person{ private String name; public Person(){ } public Person(String name){ this.name=name; }
On the heap. Any time you use new to create an object, it is allocated on the heap.
new