Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Write expression in java for2 +2 =
Home
Education
Write expression in java for2 +2 =
asked
Dec 19, 2021
in
Education
by
JackTerrance
Write expression in java for 2 + 2 = 2 Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 19, 2021
by
JackTerrance
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
Q: 4. write the java expression for the following.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write the following expression in Java:* a3+b⁴* (a+b)²* 2a²s
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program in java to display the given pattern.11 21 2 31 2 3 41 2 3 4 5Please answer it correctlyI will mark you as brainlist
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Plz write a program for the following pattern in Java class 10 ICSE2 6 12 20 30 424 6 8 10 122 2 2 20 0 0000
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: 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)
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: What is the value of m after evaluating the following expression:m -= 9%++n + ++n/2; when int m=10,n=6.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a java program to print areaof an equilateral triangle . (without using scanner)
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a Java program to accept a full name and display the initials along with the surname.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and print all palindrome words in the sentence present. Java class 10
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: How to write a program in JAVA to print the sum of ASCII values of a particular word input ?
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write the output statement in java ??
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write the output statement in java ??
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a java program pls solve it fast
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program in Java to input any age and determine whether the age is valid or invalid. If age is greater than or equal to 18 then it is valid otherwise invalid.
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
computer-science-interview-questions
computer-science-questions
...