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
Explain the difference between throw and throws in java?
How do you add an arraylist to an array in java?
Which collection is ordered in java?
What is Java Reflection API? Why it’s so important to have?
What are variable arguments or varargs?
What is json parser in java?
What is hashset in java?
What is meant by class?
Is vector synchronized in java?
What is close method? How it's different from Finalize & Dispose?
What is a singleton class? Give a practical example of its usage.
Why parameters should be passed by reference?
Explain differences between collection api and stream api?
What does the append?
Differentiate between stringbuffer and string?