Object Oriented Programming Using Java
End Semester Examination, 2021-22
B. Tech - Semester : 03
Time : 03 hrs. - Max. Marks : 100
Instructions:
- All questions are Compulsory
- Assume missing data suitably, if any.
Section : A ( 10 x 4 = 40 Marks )
All questions are compulsory
- Classify different data types used in java with the help of of examples.
- Explain how to set Temporary and Permanent Paths in java.
- Discuss the uses if this and super keywords with example.
- Distinguish between constructor overloading and method overloading with example.
- What is decision control statement in java ? Explain 3 types of control structures.
- What is object oriented programming ? Explain the need of object oriented programming.
- Create a program to display numbers divisible by 6 from 1 to n where n is 100 using class and object concept.
- Create a program in java to display account information ( Account number, customer name, balance ) of a person in a bank.
- Develop a program in java to input 5 numbers from keyboard and find their sun and average.
- Explain any four string functions used in Java.
Section : B ( 3 x 6 = 18 Marks )
All questions are compulsory
- Demonstrate a table showing all the access specifiers and their accessibility in the class, package, subclass and other package.ORWhat is multithreading ? Explain different ways to implement multithreading in java.
- Elaborate and explain different types of casting with proper example.ORWhat is constructor ? What are the rules of constructor ? Give an example.
- Why multiple inheritance is not supported by java ? What is the solution ? Explain with example.ORCreate a java program that reads a positive integer and count the number of digits in the integer.
Section : C ( 3 x 10 = 30 Marks )
All questions are compulsory
- Create a java program to implement multi-level inheritance and explain all the keywords used in it.ORDistinguish between :
i) final and finally.
ii) String and StringBuffer. - Distinguish between :
i) Inputstream and Reader classes.
ii) Outputstream and Writer classes.ORWhat is exception and exception handling ? How can we declare our own exception ? - What is garbage collection ? Discuss various ways for garbage collection in java.ORExplain the life cycle of thread, and also write a program to find the factorial of range 1 - 10 using two threads.
Section : D ( 1 x 12 = 12 Marks )
All questions are compulsory
- Explain and write a program in java to read data from file. The file name is "one.txt".ORHow packages are created and accessed in java. Briefly explain the naming convention in packages.
*******************
No comments:
Post a Comment