Java Programming – BIM (TU) Question Paper 2014 | Fifth Semester

Download our Android App from Google Play Store and start reading Reference Notes Offline.

Java ProgrammingTribhuvan University | Faculty of Management
BIM / Fifth Semester / ITC 222: JAVA Programming
Year: 2014 (2071)

Full Marks: 40 | Time: 2 Hrs
Candidates are required to answer all the questions in their own words as far as practicable.

Group “A” – 1. Short Answer Questions [10 X 1 = 10]

a. What is the task of JVM?
b. What are the uses of final keyword in Java?
c. Which keyword is used to inherit a class in Java?
d. What do you mean by platform neutral?
e. Does Java support multiple inheritance?
f. Which class in Java is used to create Button?
g. Differentiate between exception and error?
h. What is the task of join function of Thread class?
i. What is layout manager?
j. Define Java Bean

Group “B” – Short Answer Questions: [5 X 3 = 15]

2. What is role of thread? How thread can be created? Explain.
3. Which classes are used to read and write data to file? Write a simple code to write a word to a file.
4. Explain about any two layout managers in Java.
5. List the advantages of servlet over CGI. How can you create a servlet? Give an example.
6. What is exception handing? Write a program to read three numbers X, Y and Z and evaluate R given by R = Z/ (X – Y). use exception handling to throw an exception in case division by zero is attempted.

Group “C” – Long Answer Questions: [3 X 5 = 15]

7. Assume database name as “computer” and table name “processor”. A table Processor has the field ProcessorID, Speed, Company and Cost, where ProcessorID is primary key. Write program to update a record (12, 45MIPS, IBM, $12333) to (12, 45 MIPS, Mac, Q425050).
8. What makes RMI different with socket programming? Write program using RMI technology to send two numbers to the server and the server returning the greatest number between them.
9. What is the task of Socket class? Write program using socket program to send the string “hello” to the client.

Posted By : Hari Prasad Chaudhary | Comment RSS | Category : Bachelor Level, Tribhuvan University
Tag :

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*