Top Posters
Since Sunday
H
1
1
O
1
New Topic  
asprague24 asprague24
wrote...
Posts: 486
Rep: 9 0
4 years ago
What exception type does the following program throw?

public class Test {
public static void main(String[] args) {
Object o = null;
System.out.println(o.toString());
}
}


▸ ArithmeticException

▸ ArrayIndexOutOfBoundsException

▸ StringIndexOutOfBoundsException

▸ ClassCastException

▸ NullPointerException
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 39 times
1 Reply
Replies
Answer verified by a subject expert
BtllllllBtllllll
wrote...
Posts: 429
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

asprague24 Author
wrote...

4 years ago
Correct Slight Smile TY
wrote...

Yesterday
I appreciate what you did here, answered it right Smiling Face with Open Mouth
wrote...

2 hours ago
This calls for a celebration Person Raising Both Hands in Celebration
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  503 People Browsing
Related Images
  
 379
  
 2710
  
 1317
Your Opinion
Who's your favorite biologist?
Votes: 587