Você está na página 1de 2

Sr. No Questions.

1 Define JVM, JDK and JRE.


2 List the features of Java. And Explain any three.
3 Differentiate the following.
1. Method Overloading Vs Overriding
2. Abstract class Vs. Interface
3. final, finally and finalize
4. throw Vs throws
5. String Vs StringBuffer
6. Exceptions Vs. Error
7. Text IO Vs. Binary IO
8. Vector Vs ArrayList
9. Wait and sleep

4 Explain following.
1. Static
2. This
3. Final
4. Super
5. Generic
6. Wrapper class
7. InstanceOf
5 Explain nested class in java. Or. Explain Anonymous class in java. Or. Explain
Inner Class in java.
6 Explain access modifier and access control in java
7 What is inheritance? What are the types of inheritance? Explain with
example.
8 Explain Object class with its method toString(), hasCode() and clone().
9 What is dynamic method dispatch? Explain with following Example.
Or.
Explain run time polymorphism with example.
10 What is package and CLASSPATH. Make a package called “MyPack” in which
declare one class called “PackDemo” which displays the string from three
different classes of that same package.

11 What is Exception? List the types of exception and explain try, catch, throw
and finally to handle exception.
Or.
Explain Exception handling in java.
12 Draw and Explain life cycle of Thread. What are the different way to create
thread in java. List the methods of Thread Class.
13 Explain wait, notify and notifyAll, synchronized method in java.
14 What is collection in java? Explain any two collection classes.
15 Explain inter thread communication and deadlock.
16 What is custom exception. Write a complete program to accept N integer
numbers from the command line. Raise and
handle the exception for the following cases:
- When a number is -ve
- When a number is even or odd
- When a number is less than 1000
- When a number is greater than 1000 and less than 5000
Skip the number if exception is raised for it, otherwise add it to find total
sum.

17 Write an application that reads a file and counts the number of occurrences
of digit 5. Supply the file name as a command-line argument.
18 Write a multithreaded program to compute and print prime numbers up to n
where n is given as command line argument. Instantiate requited number of
threads where each thread except the last, examines next 50 numbers and
the last thread examines remaining numbers to check whether a number is a
prime or not.
19
20
21
22 Define the purpose of following terms with suitable example and UML
notations with respect to class model.
1. Link and Association
2. Generalization.
3. Aggregation
4. Constraints
5. Package
6. Metadata
7. Nested states
8. Bags
9. Sequences
10. Ordered
11. Abstract class

23 Draw use case diagram for


1.Library Management System
2. Email syatem
3. ATM Machine
24 Draw sequence diagram and activity diagram for
1. book issue process of library.
2. Telephone
25 Draw class diagram for
1. ATM
2. Online restaurant system

Você também pode gostar