Answer Posted / mihirdash
first take an example of c/c++,here the decaration and initialization is the programmer responsibility if not it gives the garbage value.but in java every thing is taken by jvm.we can declare any number of variable but it should be initialized.otherwise if we are going to use the uninitialized varibles the java compiler gives error.so there is no garbage value in java.
and if youu are created a object the keyword new is assigned default value during crreation of object
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what is enumset?
What is java console application?
What does || || mean in math?
What is args length in java?
What is java util collection?
How many classes can any class inherit java?
What is the use of parseint in java?
What is the function of compareto in java?
What lambda means?
Why deletion in linkedlist is fast than arraylist?
Give me example of derived data types.
who can i handle multiple client in RMI
Why strings in java are called as immutable?
What is a module function?
What is called module?