Question 176

Given the code fragment:

What is the result?
  • Question 177

    Given:
    public class Test<T> {
    private T t;
    public T get () {
    return t;
    }
    public void set (T t) {
    this.t = t;
    }
    public static void main (String args [ ] ) {
    Test<String> type = new Test<>();
    Test type 1 = new Test ();//line n1
    type.set("Java");
    type1.set(100);//line n2
    System.out.print(type.get() + " " + type1.get());
    }
    }
    What is the result?
  • Question 178

    Given:

    What is the result?
    -catch-
  • Question 179

    Given:

    Which two interfaces can you use to create lambda expressions? (Choose two.)
  • Question 180

    Given the Greetings.propertiesfile, containing:

    and given:

    What is the result?