Computer Applications
Given: int p=55/0;
Name the type of error in the given statement:
- Syntax
- Logical
- Runtime
- Executional
Input in Java
26 Likes
Answer
Runtime
Reason — Division by 0 will result in an infinite value, which is a runtime error.
Answered By
11 Likes
Related Questions
Which of the following is the right way to use a comment in Java program?
- /* comment */
- /* comment
- // comment //
- */ comment */
The …………… method will accept a character using stream class.
- in.read( )
- (char)(in.read( ))
- in.readline( )
- character.read( )
Which of the following method will accept a string by using scanner object?
- next( )
- next.read( )
- next.String( )
- next.char( )
Which of the following is a method of Java Scanner class?
- nextline( )
- nextLine( )
- Nextline( )
- NextLine( )