Page 1 of 1

QUESTIONS: 1. For the program given below, which line generate errors after compile and run. Show your coding and output

Posted: Fri May 20, 2022 10:10 am
by answerhappygod
Questions 1 For The Program Given Below Which Line Generate Errors After Compile And Run Show Your Coding And Output 1
Questions 1 For The Program Given Below Which Line Generate Errors After Compile And Run Show Your Coding And Output 1 (44.12 KiB) Viewed 20 times
jave .Pelsse The coding and output answer must screenshot
from compiler.
And give the explanation for each output.
QUESTIONS: 1. For the program given below, which line generate errors after compile and run. Show your coding and output. Explain why error happen? public class Questionl { public static void main(String[] args) { byte bl = -128, // 1 byte b2 = 127; // 2 short s1 = -32769; // 3 short s2 = 32767; // 4 char cl = 0; // 5 } Coding (from compiler): Output (from compiler): Explanation: (5 marks)