Home / MCQ Bank / Computer
Computer Exceptions Difficulty: Medium

In Java, can a method declare multiple exceptions using the "throws" keyword?

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C code? #include <stdio.h> void main() { char *s = "hello"; char *p = s * 3; printf("%c\t%c", *p, s[1]); } What is output of the program? class Test{ public void display(int x, double y){ System.out.println(x+y); } public double display(int p, double q){ return (p+q); } public static void main(String args[]){ Test test = new Test(); test.display(4, 5.0); System.out.println(test.display(4, 5.0)); } } The Internet Control Message Protocol (ICMP) Which operator is used to perform greater than or equal to comparison in C#? Which of these methods of class String is used to compare two String objects for their equality?