✏️ Explanatory Question

What happens if a method doesn’t return a value?

👁 3 Views
📘 Detailed Answer
🟢 Easy
3
Total Views
10
Related Qs
0%
Progress
💡

Answer with Explanation

    • If return type is void → OK

    • Otherwise → compile-time error