Top Posters
Since Sunday
5
k
4
c
4
4
M
3
t
3
i
3
B
3
k
3
m
3
c
3
o
3
New Topic  
suiren suiren
wrote...
Posts: 496
4 years ago
What exception type does the following program throw?

public class Test {
public static void main(String[] args) {
String s = "abc";
System.out.println(s.charAt(3));
}
}


▸ ArithmeticException

▸ ArrayIndexOutOfBoundsException

▸ StringIndexOutOfBoundsException

▸ ClassCastException

▸ No exception
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 30 times
1 Reply
Replies
Answer verified by a subject expert
Mtoney9Mtoney9
wrote...
Posts: 384
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

suiren Author
wrote...

4 years ago
Thanks
ky
wrote...

Yesterday
Just got PERFECT on my quiz
wrote...

2 hours ago
Good timing, thanks!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  730 People Browsing
Related Images
  
 212
  
 433
  
 419
Your Opinion