Operator:
Operators are special symbols that perform specific operations on one, two, or three operands, and then return a result. As we explore the operators of the Java programming language, it may be helpful for you to know ahead of time which operators have the highest precedence.
Operands:
Operands are the objects that are manipulated and operators are the symbols that represent specific actions. For example, in the expression. 5 + x. x and 5 are operands and + is an operator. All expressions have at least one operand.
Expressions :
A Expression is a formed by combining variables , literals , method return values and operators.
What is comment ?
Comments are ignored by computer and added to a program to help describe something . Comments are there for humans or prigrammer.
Program:
public class Operatoe_Operand {
public static void main(String[] args) {
int numer1 = 90;
int number2 = 88;
int sum = numer1 + number2;
System.out.println("Sum of first and 2nd number =" + sum);
int sub = numer1 - number2;
System.out.println("Substraction =" + sub);
int mul = numer1 * number2;
System.out.println("Multiplication = " + mul);
int div = numer1 / number2;
System.out.println("Didision =" + div);
}
}
Operators are special symbols that perform specific operations on one, two, or three operands, and then return a result. As we explore the operators of the Java programming language, it may be helpful for you to know ahead of time which operators have the highest precedence.
Operands:
Operands are the objects that are manipulated and operators are the symbols that represent specific actions. For example, in the expression. 5 + x. x and 5 are operands and + is an operator. All expressions have at least one operand.
Expressions :
A Expression is a formed by combining variables , literals , method return values and operators.
What is comment ?
Comments are ignored by computer and added to a program to help describe something . Comments are there for humans or prigrammer.
Program:
public class Operatoe_Operand {
public static void main(String[] args) {
int numer1 = 90;
int number2 = 88;
int sum = numer1 + number2;
System.out.println("Sum of first and 2nd number =" + sum);
int sub = numer1 - number2;
System.out.println("Substraction =" + sub);
int mul = numer1 * number2;
System.out.println("Multiplication = " + mul);
int div = numer1 / number2;
System.out.println("Didision =" + div);
}
}
No comments:
Post a Comment