Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - JAVA multiple choice questions
JAVA multiple choice questions
1.C //protected indicates that the member variable modified by it is a protected type.

In the same package, it is of the same type as public and can be accessed.

2.A // sort(int[] a) means sorting the specified int array in ascending numerical order.

3. The only difference between the 3.C///overloaded method is the type and quantity of parameters in the formal parameters.

4. Subclasses of 4.d///cannot inherit the constructor of the parent class, and can only be called.

5.D // can only inherit one class and can implement multiple interfaces.

6.b// A string is a string.

7. By default, the b// array starts from a[0] and ends at a[9].

The method of 8. Most of the b//applets come from java.awt.Applet

9.// Every main class must contain the main () method.

10.A //JAVA identifier cannot use the specified keyword, and

Identifiers can only start with letters, $ or underscores.

I hope this answer satisfies you. . . .