1z0-808 Exam Question 91

Given the code fragment:

Which option can replace xxx to enable the code to print 135?
  • 1z0-808 Exam Question 92

    Given the code fragment:

    And given the requirements: If the value of the qty variable is greater than or equal to 90, discount = 0.5 If the value of the qty variable is between 80 and 90, discount = 0.2
    Which two code fragments can be independently placed at line n1 to meet the requirements?
  • 1z0-808 Exam Question 93

    Given:

    What is the result?
  • 1z0-808 Exam Question 94

    Given:
    import java.util.*;
    public class Ref {
    public static void main(String[] args) {
    StringBuilder s1 = new StringBuilder("Hello Java!");
    String s2 = s1.toString();
    List<String> lst = new ArrayList<String>();
    lst.add(s2);
    System.out.println(s1.getClass());
    System.out.println(s2.getClass());
    System.out.println(lst.getClass());
    }
    }
    What is the result?
  • 1z0-808 Exam Question 96

    Given the following code:

    What are the values of each element in intArr after this code has executed?