Top Posters
Since Sunday
e
5
e
4
4
d
4
o
3
p
3
t
3
3
m
3
p
3
m
3
f
3
New Topic  
Yeeeee89 Yeeeee89
wrote...
Posts: 483
4 years ago
Suppose s is a string with the value "java". What will be assigned to x if you execute the following code?

char x = s.charAt(4);


▸ 'v'

▸ 'a'

▸ Nothing will be assigned to x, because the execution causes the runtime error StringIndexOutofBoundsException.
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


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

Related Topics

Yeeeee89 Author
wrote...

4 years ago
You make an excellent tutor!
wrote...

Yesterday
Smart ... Thanks!
wrote...

2 hours ago
Brilliant
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  989 People Browsing
Related Images
  
 209
  
 287
  
 936
Your Opinion
Who's your favorite biologist?
Votes: 587