How To Exam?

a knowledge trading engine...


National Institute of Technology 2010 B.Tech Electronics and Communications Engineering 3rd Semester ECE second mid sem test ( JAVA) - -Jalandhar (Deemed University) - Question Paper

Sunday, 03 February 2013 09:00Web

Dr B R Ambedkar National Institute of Technology Jalandhar
B Tech. (CSE & ECE)- third Semester
CS-207 (Object Oriented Programming-Java)
second Sessional (Oct 07,2010)
Duration: one Hr Max Marks: 20

Note: Attempt all the ques..

1) elaborate the various ways to use 'final' keyword? discuss with improper examples. [3]

2) Differentiate ranging from the following: [6]
a) Abstract class and Interface
b) Method Overloading and Method Overriding
c) throw and throws

3) Write a program that describes an exception class IsArmstrong that is used to throw an exception whenever the user enters an Armstrong number as input. Armstrong number is a number that is equal to the sum of cubes of its digits. [3]

4) discuss the life cycle of a thread with the help of a diagram. What is the difference ranging from running state and runnable state? discuss. [3]

5) How can we import all the sub-packages of a package in a program? Consider a package P having sub-packages A,B,C,D and classes E.F,G,H. [2]

6) provided a class C and interfaces A,B. discuss whether the subsequent prototype statements are legal or not: [3]
a) final abstract class C
b) abstract C()
c) class C implements A,B


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER National Institute of Technology 2010 B.Tech Electronics and Communications Engineering 3rd Semester ECE second mid sem test ( JAVA) - -Jalandhar (Deemed University) - Question Paper