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
When do I need to use reflection feature in java?
What kind of variables a class can consist of?
Explain how hashmap works?
Can we overload the main() method?
Explain jvm, jre, and jdk?
Write a code to show a static variable?
What are wrapped classes in java programming?
Are arrays static in java?
What is covariant return type?
what are the states associated in the thread? : Java thread
Which is better stringbuffer or stringbuilder?
Can you change array size in java?
What is incompatible types in java?
What are different types of encoding?
How to find the index of the largest number in an arraylist java?