5 years ago in Introduction To Java

In java , if you do not give a value to a variable before using it ,______

[A] It will contain a garbage value
[B] It will initialized with zero
[C] Compiler will give an error
[D] None of above
Loading...
Next Question

Overall Stats

Attempted 1072
Correct 177
Incorrect 458
Viewed 437

Answers

Guest
Guest
Appalabattula Santhi - 2 years ago

If it is declared as global variable, then compiler will not give any error.

Shubhangi Misal - 2 years ago

plz give explaination for this ans

Shamsa hafeez
Shamsa hafeez - 2 days ago

Shamsa hafeez from Lahore, Pakistan is saying Compiler will give an error is correct answer

Techy Gamer
Techy Gamer - 1 week ago

Techy Gamer is saying It will initialized with zero is correct answer

Tsega Asresa Mengistu
Tsega Asresa Mengistu - 1 week ago

Tsega Asresa Mengistu from Dessie, Ethiopia is saying Compiler will give an error is correct answer

Related Questions

Tcp/Ip is

  • [A] Two way communication
  • [B] one way communication
  • [C] none

java script is

  • [A] object based language
  • [B] object oriented language