Chained Exceptions were introduced in Java with JDK 1.4. In Chained exceptions, we can associate an exception with some other exception so that it can be inferred that occurrence of one exception is due to associated exception in reality.
|
|
access interface_name { return_type method_name1(parameter_list); return_type method_name2(parameter_list); type final_var_name = value; }When no access specifier is given, access is understood to be default. Default access restricts the use of interface to the current package only.
static void VarMethod(int...v)