Object Oriented Programming in Java - Old Questions

10. a) What is difference between checked and unchecked exception? Write a java program that will read college name from keyboard and display it on screen. The program should throw an exception when length of college name is more than 50.


b) What are methods used for inter-thread communication? Write a java program to create two threads so that one thread prints even number and other thread prints odd number between 100 and 200.

10 marks | Asked in 2023