in Education by
What would be the output of the following program segments? Give reasons to justify your answer. i) System.out.print(“Sum =”+6 + 2); ii) System.out.print(“Sum = ”+ ‘B’+ ‘2’); iii) System.out.print(“Sum = ”+ 6 + ‘B’); iv) System.out.print(“Sum = ”+ (‘B’ + ‘a’)); v) System.out.print(“Sum = ”+ “B” + “a”); Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Answer: 2system.out.print(sum=+B+2)

Related questions

0 votes
0 votes
    Java Output and Reason System.out.print(“Sum = ”+ ‘B’+ ‘2’); Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    (c) Which of the following specifies that the table has no border? (i) border = 2 (ii) border = 1 (iii ... none (iv) border= 0″ 00 Select the correct answer from above options...
asked Nov 29, 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
    Which evaluation metric would be crucial in the following cases? Justify your answer. a. Mail Spamming b. Gold Mining c. Viral Outbreak Select the correct answer from above options...
asked Nov 12, 2021 in Education by JackTerrance
0 votes
    Compare and contrast the following technologies (i) SRAM and DRAM (ii) USB and Serial Port (iii)Joystick and ... and LED display Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    $ (a) Which of the following is used to change the color of hyperlink from blue to any other color? (i) Link ... (iv) none of these 00 Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    (d) Which of the following is used to turn off the word wrapping? (i) valign (ii) wrap (iii) align (iv) nowrap g 00 Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    (a) The grey area surrounding the white area is called: (i) Work Area (ii) Stage (iii) Area (iv) Work Stage . Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
0 votes
    Two dice are thrown simultaneously. Find the probability of getting (i) a doublet (ii) an even number as the sum ... on the other die Select the correct answer from above options...
asked Nov 15, 2021 in Education by JackTerrance
...