GoConqr has a new look! Let us know what you think.

Quiz

My Java Study Guide

Row Rowyer 29 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (29)

  1. 1___________ is attached to the class of the composing class to denote the aggregation relationship with the composed object.
    1. AAn empty diamond
    2. BA solid diamond
    3. CAn empty oval
    4. DA solid oval
  2. 2Write an expression that creates a Double object for the number 5.3
    [blank_start]_______________________________[blank_end]
    1. Anew Double(5.3)
  3. 3Write an expression that returns a decimal integer from a binary string 1011
    [blank_start]__________________________________[blank_end]
    1. AInteger.parseInt("1011", 2)
  4. 4Write an expression for the minimum int type value
    [blank_start]______________________________[blank_end]
    1. AInteger.MIN_VALUE
  5. 5The type of the first argument in Integer.parseInt() can only be of the String type
    1. ATrue
    2. BFalse
  6. 6s1 and s2 reference the same String object
    String s1 = new String("foo");
    String s2 = s1;
    s1 += "bar";
    1. ATrue
    2. BFalse
  7. 7Which of the following are real StringBuilder methods?
    1. Aclear
    2. Binsert
    3. Cadd
    4. Ddelete
    5. Ereverse
    6. FsetCharAt
    7. Gappend
  8. 8A subclass is a subset of its superclass
    1. ATrue
    2. BFalse
  9. 9If a parameter is an object the formal and actual parameters will reference the same object
    1. ATrue
    2. BFalse
  10. 10The output of the following code is: [blank_start]_________[blank_end]
    public class MainProgram {

    public static void main(String[] args) {
    C shore = new C();
    }
    }

    class A {
    public A() {
    System.out.print("A");
    }
    }

    class B extends A {
    public B() {
    System.out.print("B");
    }
    }

    class C extends B {

    }
    1. AAB

Information

Description
Quiz on My Java Study Guide, created by Row Rowyer on 05/12/2018.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?