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

Why is boolean important?

586


java program with complete 4 oops concepts implemented example

2726


What are static initalizers in java ?

577


Can we serialize singleton class?

524


How does compareto method work?

522






What is the difference between checked exception and unchecked exception?

521


What are the data types supported by java? What is autoboxing and unboxing?

542


What is supplier in java?

550


What restrictions are placed on method overloading?

601


What is the synchronized method modifier?

584


Explain different types of thread priorities ?

618


How are the elements of a gridbaglayout organized in java programming?

516


Difference between java and javascript

580


What is a subsequence of a string?

541


Is it necessary for the port addresses to be unique? Explain with reason.

570