Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

exception

 
shan gadhavi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
is devided by zero a exception?
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Welcome to JavaRanch

You posted your question in the wrong forum. Anyway, to answer your question, if you divide something by zero, you'll get a RuntimeException (java.lang.ArithmeticException).
 
    Bookmark Topic Watch Topic
  • New Topic