{
public static void main(String[] args)
{ // write your code here
System.out.println("Helluo i am chetan bro word");
String name = null;
System.out.println(name);
int a = 45;
float b = 45.22f ;
boolean isadulat = false;
char grade = 'A';
System.out.println(grade);
System.out.println(a);
System.out.println(b);
System.out.println(isadulat);
/*rules for costructing variable in java;
can contain digit , underscore, dollar letter
names can beging with a letter
java is a case sative language which means that cheta and Cheta is another language
shoud not contain white spaces
you cannot use reversed name
u
shod beging letter dollar underscore
two types of data type
1 primitive short 4 bites double 8 types
2 unprimitive
*/byte u = 56;
double d= 45.9997777;
System.out.println(d);
System.out.println(56);
int num1 = 10 ,num2 =5;
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
System.out.println("value of num1-value of num2");
System.out.println(num1-num2);
System.out.println("value of num1*value of num2");
System.out.println(num1*num2);
System.out.println("value of num1÷value of num2");
System.out.println(num1+num2);
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
}
}
// can we run java program here
Answers
Answer:
{
public static void main(String[] args)
{ // write your code here
System.out.println("Helluo i am chetan bro word");
String name = null;
System.out.println(name);
int a = 45;
float b = 45.22f ;
boolean isadulat = false;
char grade = 'A';
System.out.println(grade);
System.out.println(a);
System.out.println(b);
System.out.println(isadulat);
/*rules for costructing variable in java;
can contain digit , underscore, dollar letter
names can beging with a letter
java is a case sative language which means that cheta and Cheta is another language
shoud not contain white spaces
you cannot use reversed name
u
shod beging letter dollar underscore
two types of data type
1 primitive short 4 bites double 8 types
2 unprimitive
*/byte u = 56;
double d= 45.9997777;
System.out.println(d);
System.out.println(56);
int num1 = 10 ,num2 =5;
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
System.out.println("value of num1-value of num2");
System.out.println(num1-num2);
System.out.println("value of num1*value of num2");
System.out.println(num1*num2);
System.out.println("value of num1÷value of num2");
System.out.println(num1+num2);
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
System.out.println("value of num1+ value of num2");
System.out.println(num1+num2);
}
}
// no we cannot run java program here
According to me :-
I didn't understand your Question !!