Practice Questions

Which module directive allows reflection access at runtime?

What is the result of this stream operation? Stream.of(1,2,3).map(i -> i * 2).filter(i -> i > 2).count();

Which interface represents a function that takes one argument and returns a result?

What happens if a thread calls wait() without owning the monitor?

Which class is used to read a file line by line efficiently?

Which collection does not allow duplicates?