Bissoy.com
Login
Doctors
Medicines
MCQs
Q&A
Ask
Merit Test
Questions
Courses
Which of the following statements invoke the exception class?
throws new Exception();
throw new Exception();
new Exception();
new throws Exception();
LohaHridoy
0
Edit
4
views
2025-01-04 04:42
1
Answers
AhmedNazir
Answer: Option 2
Let'
0
Thanks
4
views
Answered
2022-09-01 13:21
Report
Edit
Call
Related Questions
What will be the output class A{ static void method(){ System.out.println("Class A method"); } } class B extends A{ static void method(){ System.out.println("Class B method"); } } public class Test{ public static void main(String args[]){ A a = new B(); a.method(); } }?
1 Answers
5
Views
What will be the output interface A{ public void method(); } class One{ public void method(){ System.out.println("Class One method"); } } class Two extends One implements A{ public void method(){ System.out.println("Class Two method"); } } public class Test extends Two{ public static void main(String[] args){ A a = new Two(); a.method(); } }?
1 Answers
13
Views
What will be the result of compiling and executing the following program code class Vehicle{ public void printSound(){ System.out.print("vehicle"); } } class Car extends Vehicle{ public void printSound(){ System.out.print("car"); } } class Bike extends Vehicle{ public void printSound(){ System.out.print("bike"); } } public class Test{ public static void main(String[] args){ Vehicle v = new Car(); Bike b = (Bike) v; v.printSound(); b.printSound(); } }?
1 Answers
6
Views
What will be the output of the following piece of code: class Person{ public void talk() {} } public class Test{ public static void main(String args[]){ Person p = null; try{ p.talk(); } catch(NullPointerException e){ System.out.print("There is a NullPointerException. "); } catch(Exception e){ System.out.print("There is an Exception. "); } System.out.print("Everything went fine. "); } }?
1 Answers
5
Views
What will be the result after the class Test execution class A{ public void doA(){ B b = new B(); b.dobB(); System.out.print("doA"); } } class B{ public void dobB(){ C c = new C(); c.doC(); System.out.print("doB"); } } class C{ public void doC(){ if(true) throw new NullPointerException(); System.out.print("doC"); } } public class Test{ public static void main(String args[]){ try{ A a = new A(); a.doA(); }catch(Exception ex){ System.out.print("error"); } } }?
1 Answers
9
Views
Direction : Two statements I and II are given. These statement may be either independent causes or may be effects of independent causes or a common cause. One of these statements may be the effect of the other statements. Read both the statements and decide which of the following answer choice correctly depicts the relationship between these two statements. Mark answer : I.The performance of most of the students in final exam of class X in the schools run by the Government was excellent. II. Many teachers of the Government schools left the school and joined private schools.?
1 Answers
4
Views
Direction : Two statements I and II are given. These statement may be either independent causes or may be effects of independent causes or a common cause. One of these statements may be the effect of the other statements. Read both the statements and decide which of the following answer choice correctly depicts the relationship between these two statements. Mark answer : I. Standard of living among the middle class society is constantly going up since part of few years. II. Indian Economy is observing remarkable growth.?
1 Answers
8
Views
In which of the following package Exception class exist?
1 Answers
4
Views
Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?
1 Answers
4
Views
Which one of the following methods in the exception class, is used to get a nested exception object?
1 Answers
5
Views
কোরআন
হাদিস
চাকুরি প্রস্তুতি
বিশ্ববিদ্যালয় ভর্তি
মেডিকেল SBA
12
এইচএসসি
10
এসএসসি
8
জেএসসি
এক্সাম দিয়ে মেধা যাচাই করুন
Job Preparation (1125)
Admission (754)
এসএসসি (10)
এইচএসসি (5)
Login Required
You need to log in to continue.
Login
Cancel
Download Required
You need to download the app to make a call.
Download
Cancel