1z0-808 Exam Question 6

Given the code fragment:

Which modification enables the code to print 54321?
  • 1z0-808 Exam Question 7

    Given the definitions of the Birdclass and the Peacock class:

    and the code fragment:

    Which code snippet can be inserted to print Fly.Dance. ?
  • 1z0-808 Exam Question 8

    Given:
    public class Test1 {
    static void doubling (Integer ref, int pv) {
    ref =20;
    pv = 20;
    }
    public static void main(String[] args) {
    Integer iObj = new Integer(10);
    int iVar = 10;
    doubling(iObj++, iVar++);
    System.out.println(iObj+ ", "+iVar);
    What is the result?
  • 1z0-808 Exam Question 9

    Given the following array:

    Which two code fragments, independently, print each element in this array? (Choose two.)
  • 1z0-808 Exam Question 10

    Given:

    What is the result?