1z1-808 Exam Question 41

Given the code fragment:

What is the result?
  • 1z1-808 Exam Question 42

    You are developing a banking module. You have developed a class named ccMask that has a maskcc method.
    Given the code fragment:

    You must ensure that the maskcc method returns a string that hides all digits of the credit card number except the four last digits (and the hyphens that separate each group of four digits).
    Which two code fragments should you use at line n1, independently, to achieve this requirement? (Choose two.)
  • 1z1-808 Exam Question 43

    Given the code snippet from a compiled Java source file:

    and this output:

    Which command should you run to obtain this output?
  • 1z1-808 Exam Question 44

    boolean log3 = ( 5.0 != 6.0) && ( 4 != 5);
    boolean log4 = (4 != 4) || (4 == 4);
    System.out.println("log3:"+ log3 + \nlog4" + log4);
    What is the result?
  • 1z1-808 Exam Question 45

    Given:

    What is the result?