Why java is free from garbage values??

Answer Posted / mihirdash

Because in java all declare variables are known to programmer.other wise it create some logical error.let us take an example of c++/c language if declare 100 variable it is so difficult to remember which will i initialise and it will effect my output result .so,that there is no garbage values
in java.

Is This Answer Correct ?    10 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you take care of mutual exclusion using java threads? : Java thread

605


What environment variables do I need to set on my machine in order to be able to run java programs?

601


What is the technique adopted to create an immutable class?

522


What is the difference between throw and throws keywords?

573


What string is utf8?

543






how many types of Inheritance?

645


Can we serialize arraylist in java?

538


Can java program run without jre?

565


Why is the main method static?

595


Is there is any difference between a scrollbar and a scrollpane?

558


What is meant by JVM? Is JVM platform independent or not?

569


What is a instance variable?

579


Is it possible to specify multiple jndi names when deploying an ejb?

555


What is arrays fill in java?

541


What is the purpose of the runtime class in java programming?

562