new keyword: Allocates memory for a new object and invokes the constructor.
How to apply it: Recognize that without new, a reference variable is null and calling a method on it causes NullPointerException.
Course: AP Computer Science A · Unit: Using Objects
Practice questions about new keyword on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.