Java and SAS Programming Concepts

Casual Mode - Take your time!

1 / 20
Correct
0
Incorrect
0
Score
0%
Multiple Choice

Given: class Feline { public static void main(String[] args) { Long x = 42L; Long y = 44L; System.out.print(" " + 7 + 2 + " "); System.out.print(foo() + x + 5 + " "); System.out.println(x + y + foo()); } static String foo() { return "foo"; } } What is the result?

  1. 9 foo47 86foo
  2. 9 foo47 4244foo
  3. 9 foo425 86foo
  4. 9 foo425 4244foo
  5. 72 foo47 86foo
  6. 72 foo425 86foo
Change Mode