0

Java Programming Language Quiz - 1

Description: Java Programming Language Quiz - 1
Number of Questions: 7
Created by:
Tags: java
Attempted 0/7 Correct 0 Score 0
  1. @author

  2. {@link}

  3. @serialField

  4. @arg


Correct Option: D
  1. An identifier can include letters and the first character can be a letter.

  2. An identifier can include digits, but the first character cannot be a digit.

  3. An identifier's length can exceed the length of the current line.

  4. The symbol for PI (3.14159...) is a valid identifier.


Correct Option: C
  1. Double precision floating-point (double)

  2. Character (char)

  3. Byte integer (byte)

  4. Boolean (boolean)


Correct Option: B
  1. User-defined types are also known as reference types.

  2. User-defined types are only defined via classes and interfaces.

  3. An array type is signified by an identifier and one or more pairs of square brackets.

  4. The declaration int[] x; introduces an array type.


Correct Option: B
  1. The attributes of the class are all private

  2. The class refers to a small number of other objects

  3. The object contains only a small number of variables

  4. The object is referred to using an anonymous variable, not directly

  5. The reference variable is declared for an interface type, not a class. The interface provides a small number of methods


Correct Option: E

Applications in a J2EE architecture

  1. must be created via a Java IDE.

  2. can run on different machines, but only with the same Operating System.

  3. are typically based on Servlets, JSPs and Enterprise Java Beans.

  4. need no runtime environment.


Correct Option: C
- Hide questions