Java Question 1: Question 2:

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

Java Question 1: Question 2:

Post by answerhappygod »

Java
Question 1:
Java Question 1 Question 2 1
Java Question 1 Question 2 1 (13.7 KiB) Viewed 19 times
Question 2:
Java Question 1 Question 2 2
Java Question 1 Question 2 2 (14.49 KiB) Viewed 19 times
Assume list is type ArrayList<Integer>. What is true about the following code: for (int num list) { } System.out.println(num); O the code will run but crash with a runtime error there is no error there is a compiler error
Assume list is type ArrayList<Integer>. What is true about the following code: for(int i=0; i<-list.size(); i++) { System.out.println(list.get(i)); } the code will run but crash with a runtime error O there is no error O there is a compiler error
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply