We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

Suppose you have to write a small Java program that catches exceptions with super classes. You are required to use inheritance to create an exception superclass (called ExceptionA) and exception subclasses ExceptionB and ExceptionC; where ExceptionB inherits from ExceptionA and ExceptionC inherits from ExceptionB. Your program must demonstrate that the catch block for type ExceptionA catches exceptions of types ExceptionB and ExceptionC.


Hint: You can use Arithmetic exception like divide by 0 or any similar one.
NOTE: You are required to use Graphical User Input (GUI) to show output on the screen.

Views: 18214

Attachments:

Replies to This Discussion

catch is not working.

msg displayed illegal start of exception

is code sy ye error a raha hai

please take at least first lectures so that you come to know how to write java code and how to compile it.

if you dont have time to watch VU lecture then at least see this 6 min videos about what you need to run and compiler java code

public class ka nam EceptionA hai is liye is code ko ExeptionA.java k nam sy save kiya hai but ye error a raha hai

software link send kr dy jis p assignment bnani hey

g saima jse zain bhai ne kaha he wsa hi kren or me ne 2 videos k link b share kiye hen agr ap usko dekh len g to apki problem solve  ho jai g 

saima waheed ye attachments check karain cs506 k downloads k section mae hain ye sb cheezain agar ye satisfy nhe karti to phier 2nd lecture son lain us mae tafseel hai k kon sa software karna hai or kysy

Attachments:

zain ul haq mujhy ni pta k mera operating systm kitny bit ka hyto phir my kaisy select krun java file.

bhai agr ko nai b pata to phr ap apne pc ki manage option pe ja k dekh len or wse b 32 bit ki file hi install ker len apni assani k liye

Attachments:

system properties mae list ay ki system ki us mae aik point ho ga system type or agy us k bits likhi ho gi k ye kitni bits ki hai 64 or 32

https://youtu.be/r8Qiz9Bn1Ag

https://youtu.be/oeswfZz4IW0

 ap sab ye links dekho or us k hisab se kro or baqi b check ker lo agr ap ne eclipse jdk install kiya he to phr koi mushkil nai ho g ...............ap ki help ho jai g or smjh b aa jai g k kerna kiya he 

Stay blessed 

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service