Microsoft Word - IT405 - Mod
Microsoft Word - IT405 - Mod
c) super a) java.lang
d) none of these b) java.util
(iv) JAVA doesn’t support multiple inheritance due to 1 1
c) java.io
a) dynamic method dispatch problem d) java.system
b) Diamond Problem (xi) When does exceptions in java arises in code 1 1
Even semester theory examination 2023 under autonomy, 12.06.2023 Even semester theory examination 2023 under autonomy, 12.06.2023
Page 1 of 4 Page 2 of 4
NARULA INSTITUTE OF TECHNOLOGY NARULA INSTITUTE OF TECHNOLOGY
An Autonomous Institute under MAKAUT An Autonomous Institute under MAKAUT
GROUP – B * java. 10
(Short Answer Type Questions)
Answer any three from the following: 3×5=15 (b) 2
Explain the life cycle of a thread with a diagram.
SL. NO. CO Marks 5
No.
2. 1 11. Write down the differences between :- (any three) 2
What is byte code? How is it created? 2+3
3. JAVA supports encapsulation, inheritance and 3 a) Method overloading and Method overriding
polymorphism- explain your views in support or 5 b) Throw and throws
5*3
against of the above mentioned line. c) Abstract class and Interface
4. (a) What is encapsulation? 2
3 d) Error and Exception
(b) Why Java is called compiled interpreted language. 3 e) String and stringbuffer class
2
5. (a) What is exception? 2
2
(b) How java handles the procedure if an exception occurs 2
3
in a program.
6. What is diamond problem in JAVA. Explain with a 2
5
program.
GROUP – C*
(Long Answer Type Questions)
Answer any three from the following: 3×15=45
i) factorial of a number.
ii) palindrome number checking. 5+5
iii) Armstrong number checking.
Even semester theory examination 2023 under autonomy, 12.06.2023 Even semester theory examination 2023 under autonomy, 12.06.2023
Page 3 of 4 Page 4 of 4