Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java division int by 0

assertThrows(ArithmeticException.class, () -> {
    int result = 12 / 0;
});
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #java #division #int
ADD COMMENT
Topic
Name
1+6 =