in Education by
Write expression in java for 2 + 2 = 2 Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
public class Main { public static void main(String[] args) { int x = 2; int y = 2; int sum = x + y; System.out.println(sum); // Print the sum of x + y } }

Related questions

0 votes
    4. write the java expression for the following. 3/4 a³-2/7b⁴ Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Write the following expression in Java: * a3+b⁴ * (a+b)² * 2a²s * 6x²+ 7x⁴ Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Write a program in java to display the given pattern. 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Please ... as brainlist Please answer it very fast Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Plz write a program for the following pattern in Java class 10 ICSE 2 6 12 20 30 42 4 6 8 10 12 2 2 2 ... spam. Answer only if you know Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    do you think the following two expression are the same if yes write the output if not justify your answer X=int(22/7) X=(22.0/7) Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    What is the value of m after evaluating the following expression:m -= 9%++n + ++n/2; when int m=10,n=6. Pls Answer Now.. Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    write a java program to print areaof an equilateral triangle . (without using scanner) Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    write a Java program to accept a full name and display the initials along with the surname. URGENT! give the full program please Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and ... present. Java class 10 Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers. URGENT! Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    How to write a program in JAVA to print the sum of ASCII values of a particular word input ? Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    write the output statement in java ?? answer also in very long and also not in very short Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    write the output statement in java ?? answer also in very long and also not in very short Select the correct answer from above options...
asked Dec 26, 2021 in Education by JackTerrance
0 votes
    write a java program pls solve it fast 1 11 111 1111 11111 Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Write a program in Java to input any age and determine whether the age is valid or  invalid. If age is ... is valid otherwise invalid. Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
...