0% found this document useful (0 votes)
9 views1 page

OOJ-CIE 1 Question Bank

This document is a question bank for the Object-Oriented Programming with Java course (CSE23403) covering two modules. Module 1 includes questions on OOP properties, Java buzzwords, data types, typecasting, operators, and programming exercises. Module 2 focuses on classes, objects, access specifiers, constructors, garbage collection, and includes lab programs for practical implementation of concepts learned.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

OOJ-CIE 1 Question Bank

This document is a question bank for the Object-Oriented Programming with Java course (CSE23403) covering two modules. Module 1 includes questions on OOP properties, Java buzzwords, data types, typecasting, operators, and programming exercises. Module 2 focuses on classes, objects, access specifiers, constructors, garbage collection, and includes lab programs for practical implementation of concepts learned.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Object-Oriented Programming with Java(CSE23403)

Question Bank for CIE-1


Module-1
1. List and explain the properties of OOPs with an example.
2. List and explain the java buzzwords in detail.
3. Explain how “compile once, run anywhere” is implemented in java.
4. With the help of neat diagram explain the architecture of Java.
5. Explain in detail the classification of Data types in java with examples.
6. With an example explain the Lexical issues in java.
7. List and explain different types of variables available in java with examples.
8. Define typecasting. Explain different types of type casting with an example.
9. Explain how to declare and initialization array in java for 1D and 2D array with example.
10. List and explain any 5 operators used in java with truth table and example.
11. Discuss the break and continue statement.
12. Explain for-each loop with syntax and an example.
13. Write a java program to find the sum of all the array elements using for-each with
sample input and output for the same.
14. Write a java program to compute reverse of the given number using labelled break and
continue with sample input and output for the same.
15. Write a java program to search for the key element using for-each loop.

Module-2
1. Define Class, Object, Access Specifiers.
2. Explain how a class is defined with syntax and example.
3. Discuss the steps for creating and accessing an object in java for Scanner class with
an example.
4. Explain in detail how to create a method with syntax and example.
5. What are constructors? Mention the rules for creating the constructors. List their
characteristics. Explain different types of constructors in java with examples.
6. With a programming example explain the “this” keyword.
7. What is garbage collection and how does it work?
8. With a programming example explain the finalize() method in garbage collection.
9. Write a Java program to print the area of a rectangle by creating a class named 'Area'
having two methods setDim() and getArea().
10. Define a class called Graph with the following members:
Data Members: xPoint , yPoint ,type of Graph
Methods: assignType(),input (),display.
Write a Java program to create an object and use the above methods.

Lab programs
1. Implement a java program to stimulate a simple calculator using switch
statement.Theprogram must continue executing until the user presses the key 'E'.
2. Implement a java program to create a class called Student which stores USN ,name and marks
of a student .Calculate the grade according to the following criteria. Input N number of
studentdetails, find grade and print all the members.

You might also like