Answered step by step
Verified Expert Solution
Question
1 Approved Answer
written in java find the error 10 2a 30 40 S# 6+ 7# 8 9# 10+ 110 12 132 public class EXAM private char letter
written in java find the error 10 2a 30 40 S# 6+ 7# 8 9# 10+ 110 12 132 public class EXAM private char letter = 0; static String[] list = new String(5); public static int y = 0; public static void main(String[] args) { SOME ODJA = new SOME(); // valid? SOME ob3B = new SOME("B'); // value of y? System.out.println (Obj.letter); // valid? addStudent ("Heidi"); int y = 55; System.out.println(last); // valid? // value of y? // end main 142 15# 16+ 17: 182 19 207 static int numofstudents = 0; public static void addStudent (string name y + 10; // valid? list[numofstudents] = name; 11 any consideration? numofstudents ++; System.out.println(letter); // valid? // end addstudent 212 224 23 24 25 26 27 28 29 30= 31 32+ 333 34. public void printAll (stringarr) System.out.print (letter); // valid? System.out.print (arr.length); // valid? System.out.print(list.length); // valid? System.out.print (last); 17 valid? // end printani 35 36# 37+ 38 39 40+ 41+ 42 43+ 445 45= 46+ double last = 999.999; // end of class EXAM public class SOME public char letter; public SOME (char x) letter = x;) public void setLetter (char x) 1 letter = x;) // end of class SOME 38. Which line is valid? (check all that apply) Oline #7 line #10 Oline #13 line #21 line #24 O line #30 O line #31 line #32 line#33
written in java find the error
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started