Вы находитесь на странице: 1из 3

UNIT I

PART A
1. What is the difference between static and non static variable.
2. List any four javadoc comments.
3. Consider a loan processing system in a bank. Identify the classes and objects in the
system and list them.
4. Mention some of the separators used in java programming.
5. What is the difference between constructor and a method?
6. Define OOP.
7. Define objects and classes in java.
8. Define access specifier.
9. What is bytecode?
10. What is a variable? How to declare variable in java?
PART B
1. Explain the object oriented programming concepts in detail.
2. How objects are constructed. Explain in detail about constructors. Explain constructor
overloading with an example.
3. What is the package? What are the benefits of using packages? Write the steps in
creating a package and use it in java program.
4. Write short notes on access specifiers.
5. Explain the structure of a Java program with an example.
6. Explain the working of static modifier with suitable examples.
7. Write a Java program to check whether a number is palindrome or not.
8. Write a Java program to print the Fibonacci series for a given value of N.
9. What is method? How method is defined?
10. List and explain the characteristics of java
11. Explain how array can be created in Java.
UNIT II
PART A
1. State the use of keyword super.
2. Write short notes on Object class.
3. What is the purpose of final keyword?
4. Differentiate interface and abstract class.
5. Define inner class.
6. Write declaration to convert the value “programmer” in the string variable and
convert it into “programming”.
7. Can an abstract class be final? Why. Give an example.
8. Define inheritance hierarchy.
9. What is the purpose of finalization?
10. What is meant by super class?
UNIT II PART B
1. Define Inheritance. Explain the concept of Single, Multilevel and Hybrid inheritance
with an example.
2. What is meant by object class? Why it is used. Explain the methods present in it with
an example.
3. Define Object cloning. Explain the various types of cloning in detail with an example.
4. Explain inner classes and its types in detail with an example program.
5. Define interface. Explain its implementation and properties with an example
6. Explain abstract class in java.
7. Explain dynamic array in java
PART C
1. Write a Java program to create a interface method named customer. Include the
methods called information (), show() and maintain the tax rate. Implement the
interface in employee class and calculate the tax of the employee based on their
income. [CO2, K5, Create] (15)
Income Tax percentage
Male Female
>=1,90,000 Nil Nil
>=2,00,000 10% Nil
>=5,00,000 20% 10%
<5,00,000 25% 20%
2. Develop a java application with Employee class with Emp_name, Emp_id, Address,
Mail_id, Mobile_no as members. Inherit the classes, Programmer, Assistant Professor,
Associate Professor and Professor from employee class. Add Basic Pay (BP) as the member
of all the inherited classes with 97% of BP as DA, 10 % of BP as HRA, 12% of BP as PF,
0.1% of BP for staff club fund. Generate pay slips for the employees with their gross and
net salary.
3. Create a class “CSE” with data members name, rollno and age. Create another class
“Student” derived from “CSE”. Use methods to initialize and display the data members.
Write a java program to implement this.
4. Make a class Student. The Student class has data members such as roll number, name,
and branch. Create a class Exam derived from Student and it has data members such as
marks for 3 subjects. Derive the result class form Exam and it has its own data members
such as total marks and average. Write a java program to model the relationships.

Вам также может понравиться