Computer Science, asked by Anonymous, 9 months ago

any one knows java programming? if yes plz tell me how to write Variable discription Plz don't spam. Variable Discription table​

Answers

Answered by hazelblue9
1

Explanation:

Standards to name a Variable, Variable name must not begin with a digit. A variable name can comprise of letters in order, digits and exceptional images like (underscore _). Clear or spaces are not permitted in factor name. Watchwords are not permitted as factor name.

Answered by koushikvns
2

Answer:

Variable description is used to tell the reader of the program that which variable is used for what and it's type ...

Explanation:

Like, if I write a simple Java program to add two numbers..

class addition

{

public static void main (String args[])

{

int a,b,c;

a=3;

b=2;

c=a+b;

System.out.println("Sum of a and b ="+c);

}

}

In this program variables used here are a , b and c

and their type is integer (int) .

a and b is used to store the value 3 and 2 respectively.

so at last you can write.

Variable name variable type description (of vari.)

args String [] " to accept command line argument"

a int "to first hold value"

b int "to hold secondvalue"

c int "to hold the calculated value"

Hope you Understand....

Similar questions