What is variable declaration and definition?



What is variable declaration and definition?..

Answer / Devendra Kumar Singh

Variable Declaration refers to announcing or naming a variable with its data type, whereas Variable Definition involves specifying the variable's name, data type, and initial value (assignment) in Java.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is variable and its types?

1 Answers  


Can you tell me range of byte?

1 Answers  


Does java support function overloading, pointers, structures, unions or linked lists?

1 Answers  


Differentiate between vector and array list.

1 Answers  


What are the super most classes for all the streams?

6 Answers  


Why are the destructors for base class and derived class called in reverse order when the program exits

1 Answers   HCL,


what is the difference between String s="hello"; and String s=new String("hello");?

3 Answers  


What are the advantages of passing this into a method instead of the current class object itself?

1 Answers  


My interview asked what is dynamic variable in java and where we use them.

2 Answers   IBM,


How do you compare two strings? any predefined method for this?

3 Answers  


all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.

8 Answers   CFG,


what is servlet enginee?

0 Answers   Covansys,


Categories