0
   

What is difference between keywords throws and throw in java?

 
 
Reply Sat 19 May, 2012 12:30 pm
What is difference between keywords throws and throw in java?
I know that throw is used when you notice error of some kind and then put that right after the introduction of class( eq. public class Class throws NullPointerException), but not sure when to use throw.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 740 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » What is difference between keywords throws and throw in java?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/23/2024 at 02:36:53