Is Scala an Expression-Based Language or Statement-Based Language? Is Java an Expression-Based Language or Statement-Based Language?
Answer Posted / Sachin Kumar Mourya
Scala is both an expression-based and statement-based language. It allows for expressions to be used where statements are expected, making it more concise. Java, on the other hand, is primarily a statement-based language, although some constructs can be expressed as expressions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers