Advanced Java Programming208210 marksCustom exception throwing
List some features of Java. What are the types of exception? Write a program to take input an integer from the user and if the given integer is negative throw the exception.
List some features of Java. What are the types of exception? Write a program to take input an integer from the user and if the given integer is negative throw the exception.[10]
Key features of Java include: 1. Object-Oriented: Java is purely object-oriented, based on classes and objects. Everything is an object except primitive data types. 2. Platform Independent: Java follows "Write Once, Run Anywhere" (WORA) principle. Code compiled to bytecode runs on any platform wi...