Q. What will `() -> System.out.println("Hi")` produce?

  • (A) A Predicate
  • (B) A Runnable
  • (C) A Supplier
  • (D) A Consumer
πŸ’¬ Discuss
βœ… Correct Answer: (B) A Runnable
Explanation: Runnable's `run()` takes no arguments and returns void.
Explanation by: Mr. Dubey
Runnable's `run()` takes no arguments and returns void.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
60
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate