Variants
Figure 531. Scanner implementing 
 
               AutoCloseable public class Scanner implements AutoCloseable ❶, ... { ... public void close() {...} ❷ }  | 
                           
                                     
                            | 
                                   
                        
| 
                               Promise to implement all methods being declared in   | 
                        |
| 
                               Actually implementing a   | 
                        
try (final String s = new String()) { // Error: Required type: AutoCloseable; Provided: String
   ...
}