In java , if you do not give a value to a variable before using it ,______
If it is declared as global variable, then compiler will not give any error.
plz give explaination for this ans
Youssef Aserrar from Casablanca, Morocco is saying Compiler will give an error is correct answer
MOUAD BOUKNITER from Casablanca, Morocco is saying Compiler will give an error is correct answer
rita elradi from Casablanca, Morocco is saying It will contain a garbage value is correct answer
- [A] Java virtual machine
- [B] Java compiler
- [C] Java debugger
- [D] Java API
- [A] Objects that can be reached from a live thread will never be garbage collected.
- [B] Programs will not run out of memory.
- [C] Objects that will never again be used are eligible for garbage collection.
- [D] Objects that are referred to by other objects will never be garbage collected.
- [A] Shallow Cloning
- [B] Deep cloning
- [C] Both
- [D] none