Jump to content

  • twitter
  • youtube

Welcome to UPES - Tech Community | Dehradun


Sign In 

Create Account
Welcome to UPES - Tech Community | Dehradun, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of UPES - Tech Community | Dehradun by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
  • Online chat support - 24/7 for your queries,engage with others.
 

About US

UPES - Tech Community helps the students to find study materials for different engineering specialties like mechanical, civil, electrical, computer science and electronics etc.The community is also sharing the year wise question papers of UPES, Dehradun and even comprised up with latest technology aspects, news, events, tutorials and various types of digital gadget reviews.

Submitter

File Information

  • Submitted: Mar 22 2017 12:20 AM
  • Last Updated: Mar 22 2017 12:20 AM
  • File Size: 4.66KB
  • Views: 3021
  • Downloads: 2,970

Download Exception Handling - Java Lab - Experiment 7th Solution

* * * * * 1 Votes
upestech upes programs java 2017



TITLE: Exception

1) Write a program in Java to display the names and roll numbers of students. Initialize respective array variables for 10 students. Handle ArrayIndexOutOfBoundsExeption, so that any such problem doesn’t cause illegal termination of program.

2) Write a Java program to enable the user to handle any chance of divide by zero exception.

3) Create an exception class, which throws an exception if operand is nonnumeric in calculating modules. (Use command line arguments).

4) On a single track two vehicles are running. As vehicles are going in same direction there is no problem. If the vehicles are running in different direction there is a chance of collision. To avoid collisions write a Java program using exception handling. You are free to make necessary assumptions.

5) Write a java program to throw a exception (checked) for an employee details.
 If an employee name is a number, a name exception must be thrown.
 If an employee age is greater than 50, an age exception must be thrown.
 Or else an object must be created for the entered employee details




Other files you may be interested in ..





63 user(s) are online (in the past 15 minutes)

0 members, 62 guests, 0 anonymous users


Facebook (1)



Discussion | Topics
Community Guidance
Useful Resources
Connect With Us

Copyright © 2018 UPES - Tech Community | Dehradun. All Rights Reserved.