Databricks Interview Question

Diff btn terminal and intermediate operators in java 8