1creating first grapper
2
3float simpleInterest; //Declaring float variable
4int time = 10, speed = 20; //Declaring and Initializing integer variable
5char var = 'h'; // Declaring and Initializing character variable
1java decleartion
2
3int a, b, c; // Declares three ints, a, b, and c.
4int a = 10, b = 10; // Example of initialization
5byte B = 22; // initializes a byte type variable B.
6double pi = 3.14159; // declares and assigns a value of PI.
7char a = 'a'; // the char variable a iis initialized with value 'a'