Java Associate — Easy
Explanation
The keyword "new" is used to create an object in Java. When you use the "new" keyword, memory is allocated for the object and the constructor is called to initialize the object.
Ready to go further?
Related questions
- Which of the following correctly describes the behavior of the `finally` block in Java?
- What is type erasure in Java generics?
- What is the `instanceof` operator used for in Java?
- What does the `volatile` keyword guarantee in Java multithreading?
- What does the `static` keyword mean when applied to a method?
- What is the main principle of OOP that Java is built on?
