Databricks interview question

Diff btn terminal and intermediate operators in java 8