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
what is singleton class in java?
What is the primitive type byte?
Is java pass by value or pass by reference?
What is constructor in java ?
Why is stringbuffer called mutable?
What is annotation in java?
What is a literal coding?
What are the differences between the constructors and methods?
How many bytes is a string?
What are the different types of collections in java?
What is constructor and its types?
What is double parsedouble in java?
What is "this" keyword in java? Explain
What class of exceptions are generated by the java run-time system?
What are the ways in which a thread can enter the waiting state?