Can variables be used in Java without initialization?

By ayush goel in 22 Sep 2023 | 11:34 am
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

Can variables be used in Java without initialization?

22 Sep 2023 | 11:34 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

  - In Java, local variables must be initialized before they are used. However, instance variables (class fields) are assigned default values if not explicitly initialized.


23 Sep 2023 | 04:15 pm
0 Likes

Report

Please describe about the report short and clearly.