Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

suggest me pls...

  Asked By: Bibhuti    Date: Aug 03    Category: Java    Views: 702
  

1.can a uninitialized variable in java get memory?if yes,then why can't we use it before initialization.

Share: 

 

1 Answer Found

 
Answer #1    Answered On: Aug 09    

Yes uninitialized variable in JAVA is assigned memory. By default uninitialized variable contains garbage values which is of no use to you in your program and that is the reason their is no meaning of using it before initialization.

 
Didn't find what you were looking for? Find more on suggest me pls... Or get search suggestion and latest updates.




Tagged: