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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 18 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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply