We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 04 Semester: Fall 2013 Modern Programming Languages (CS508) Total Marks: 10 Due Date: 03/02/2014

You will write a simple JAVA program that will take input from user, After taking input in try block it will check it if it is your VU id. If it is your VU-ID it will display message “Yes it is my VU-ID” else it will raise an exception MyException, in catch block you will catch the myException.

 

Note you will not write anything in the catch block.

 

 

You will write a simple class MyException, this class will extend the exception class and it will display the message, You will write the method public MyException (), to

display the following message.

 

This is not my VU-ID

My VU-ID is bc123456789  (Note you will display your VU-ID here )

 

In case if you will write your correct VU-ID

 

 

 

Note :

 

1) In order to understand how to take input in java go through this tutorial

http://www.programmingsimplified.com/java/source-code/java-program-...

 

2) You will provide code and screenshot of your run to get full marks.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1534

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

tm chup kro spoooonnn mai ne requirment k mutabik kia hay apne se na mara kro :p

sorry to all cs508 ka solution main ju upload kia tha wo theak nhi haa please assignment theak sa parh kar submit karwana custom exception class banani haa apni ek iss link sa help luhttp://www.seasite.niu.edu/cs580java/testexception.htm

guys what does it means 

 

in our assignment file it is

  1. in catch block you will catch the myException.
  2. Note you will not write anything in the catch block. 

is it like 

  • 1st option

try
{

     if(){

     }

     else

     {

           // Exception throw here

      }

}//end of try

.

catch(MyException myException)

{

      //empty body
}

------------------------

  • 2nd option

try
{

     if(){

     }

    

}//end of try

.

catch(MyException myException)

{

      Exception code goes here
}

 

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

is main varibales k name aur classes k name change krny hn wo kr lena dhiyan sy aur compile run kr k screen shots ly lena

please koi yahan with snapshot kay sath code paste kar day ...matlab code be ho aur osay run karnay ka procedure be ....

code not working

Aslam-O-Alikum. try it and please must change

Attachments:

Code not working

kia problem kia error aa raha?

RSS

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

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

.