Given:
and the code fragment:
What is the result?
Correct Answer:
B
Assume customers.txt is accessible and contains multiple lines. Which code fragment prints the contents of the customers.txt file?
Correct Answer:
A
Which two code blocks correctly initialize a Locale variable? (Choose two.)
Correct Answer:
DE
Given:
public class Canvas implements Drawable { public void draw () { }
}
public abstract class Board extends Canvas { }
public class Paper extends Canvas { protected void draw (int color) { }
}
public class Frame extends Canvas implements Drawable { public void resize () { }
}
public interface Drawable { public abstract void draw ();
}
Which statement is true?
Correct Answer:
E
Given the code fragment: Stream> iStr= Stream.of ( Arrays.asList (“1”, “John”),
Arrays.asList (“2”, null)0;
Stream<
What is the result?
Correct Answer:
D