Subject: JAVA PROGRAMMING (Common to CSE & IT) Date: 09/06/2021 Session: FN Time: 90 Min Max.marks:20
Section –A (Short answer type questions)
Answer all questions: 5*1=5M
1. Is Java a robust language? Justify your answer. [CO1, L4]
2. Illustrate the use of static keyword. [ CO1, L2] 3. Differentiate between interface and abstract class. [CO1, L2] 4. Illustrate the use of final keyword with inheritance. [ CO2, L2] 5. Discuss the importance of StringTokenizer class [CO3, L2]
Section –B (Essay questions)
Answer any three questions 3*5=15M
6. Write a program to find area of a Rectangle using Constructor Overloading [CO1,
L4]. 7. Explain inner and nested classes with an example. [CO1, L5]. 8. Develop a program to find area of Sphere, cuboid and Circle. All these classes should put in a single package. (The package name should be “Area”). [CO2, L3] 9. Is java supports multiple inheritance? Justify the answer with an example [CO2, L4] 10. Write a program for user defined exception that checks the internal and external marks if the internal marks are greater than 40 it raises the exception "internal marks are exceed", if the external marks are greater than 60 exception is raised and display message the" External marks exceed" [CO3, L6]