Correct Question:
Public class N extends String, Integer { } When you compile, you get the following message: N.java:1: ‘{‘ expected public class N extends String, Integer ^ 1 error Explain what the problem is and how to fix it.
Note the capital letter P
Answer and Explanation:
Problem: This is a syntax error, the key word "public" should begin with a small letter and not capital letter.
How to fix: Replace the capital letter P by small letter p and recompile.
Answer:
B - array; hash
Explanation:
Arrays store elements of the same data type in a list. Every element in the array is assigned a unique integer (starting at 0). You are able to access/process an element by using its assigned integer. Hashes are similar in the fact that they also store data. The difference is that each element is assigned an object type (instead of an integer), making it a collection of key pairs, as such you would typically not use this to process elements efficiently.