A is wrong because a class can extend nly one class .B is wrong because a class can implement any number of interfaces.C is wronb because both can can be done simulteneously.So, D is correct
It is a compilation error it should be X extends Y implements Z
Reserved words are words that cannot be used as object or variable names in a Java program because they're already used by the syntax of the Java programming language.
Java reserved words are keywords that are reserved by Java functions or other uses that cannot be used as identifiers (e.g., variable names, function names, class names).
If a reserved word was used as a variable you would get an error or unexpected result.
Examples : Int, Long, Abstract, Class, Break, Catch, Case, Public, Static, Void,...
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.