Java Reference
In-Depth Information
♦ As the type of an exception that can be thrown by a method or constructor
♦ As the type of an exception parameter in a
catch
clause of a
try
statement
♦ As the type in a class literal (§
15.8.2
)
♦ As the class type which is to be instantiated in an unqualified class instance
♦ As the direct superclass or direct superinterface of an anonymous class
♦ As the element type of an array to be created in an array creation expression
♦ As the qualifying type of a method invocation using the keyword
super
♦ As the type mentioned in the cast operator of a cast expression (§
15.16
)
A name is syntactically classified as an
ExpressionName
in these contexts:
• As the qualifying expression in a qualified superclass constructor invocation
• As the qualifying expression in a qualified class instance creation expression
• As the array reference expression in an array access expression (§
15.13
)
A name is syntactically classified as a
MethodName
in these contexts: