Java   View all facts   Glossary   Help
syntactic unit > expression > object creation expression > new expression
Next object creation expressionstring creation expression    Upobject creation expression    Previous object creation expressionarray literal   

new expression comparison table
Subject have example occur be part of have purpose have type have syntax rule is a subtopic of have value is a kind of return perform
array creation expressionnew int[10] (array is created at run time)in a context where a value is requiredan expressionto create a new objectthat is the type of its result
bold = mandatory
italic = non-terminal
normal font = optional
Arrayscalled its result, or its return valuenew expressiona value from its computationa computation specified by 0 or more operators

Next object creation expressionstring creation expression    Upobject creation expression    Previous object creation expressionarray literal