ITM152 Object Oriented Programming With Java

Object Oriented Programming With JavaTU Board 2023

Define Exception. Why should we handled an Exception? Write a Java program to create a class Mobile (type, Phone no). Customize the exception such that if the user give phone no having less than or…

10

Define Exception. Why should we handled an Exception? Write a Java program to create a class Mobile (type, Phone_no). Customize the exception such that if the user give phone_no having less than or greater than 10 digit, then the program has to throw an exception with the message "Invalid Phone number".

A worked answer is on its wayMeanwhile, read the Object Oriented Programming With Java notes for this topic.

Discussion

Loading…

More Object Oriented Programming With Java questions

All Object Oriented Programming With Java old questions