Computer Applications
Name the type of error ( syntax, runtime or logical error) in each case given below:
- Math.sqrt (36 – 45)
- int a;b;c;
Input in Java
ICSE 2016
14 Likes
Answer
- Runtime Error
- Syntax Error
Answered By
6 Likes
Related Questions
Write a program to accept three angles of a triangle and check whether the triangle is possible or not and display the message accordingly.
What is meant by a package? Give an example.
Correct the errors of the given program:
class Sample { public static void main(String args[]) { int n,p; float k,r; n=25;p=12; if(n=25) { k=pow(p,2) System.out.println("The value of"+p+ "= "+k); } else { r=Math.square root(n); System.out.println("The value of"+n+ "= "+r); } } }
What are the different ways to input the values in a Java Programming? Name them