0% found this document useful (0 votes)
330 views

Question Bank Module 1: An Overview of Java

This document contains a question bank for a Programming in Java course taught over 5 modules at CMR Institute of Technology in Bangalore, India. It includes over 100 questions across the modules covering topics like Java concepts, OOP principles, arrays, operators, classes, inheritance, packages, interfaces, exceptions, applets, and input/output. The course is taught over a semester by instructors Mrs. Poonam Tijare and Shyamasree Ghosh, with 4 lectures per week, to computer science students in their 5th semester.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
330 views

Question Bank Module 1: An Overview of Java

This document contains a question bank for a Programming in Java course taught over 5 modules at CMR Institute of Technology in Bangalore, India. It includes over 100 questions across the modules covering topics like Java concepts, OOP principles, arrays, operators, classes, inheritance, packages, interfaces, exceptions, applets, and input/output. The course is taught over a semester by instructors Mrs. Poonam Tijare and Shyamasree Ghosh, with 4 lectures per week, to computer science students in their 5th semester.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CMR Institute of Technology, Bangalore

Department(s):Computer Science & Engineering

Semester: 05

Programming in JAVA Lectures/week: 04

Course Instructor(s): Mrs. Poonam Tijare/ Shyamasree Ghosh

--------------------------------------------------------------------------------------------------------------------

Question Bank

Module 1: An Overview of Java

Q1. Difference between literal and whitespace

Q2. Discuss three OOP principles

Q3. List and explain the java buzzwords

Q4. What is dynamic initialization? Explain with an example

Q5. Explain control statements with an example.

Q6. Explain Type Conversion and Casting in Java.

Q7. Briefly explain primitive types in Java.

Q8. Write a note on Literals and Variables.

Q9. Explain Arrays in Java.

a. write a program to demonstrate one-dimensional array.

b. write a program to demonstrate multidimensional array.

Q10. Explain the process of building and running java application program
Module 2: Operators

Q1. Write a note on Arithmetic Operators


Q2. Explain Bitwise Operators with a short program
Q3.Write a note on Relational Operators
Q4. Briefly Explain Boolean Logical Operators.
Q5. Explain Java’s Selection statements with an example
Q6. Explain Iteration statements with an example
Q7. Explain Jump Statements with an example
Q8. Explain Assignment Operator with an example.
Q9. Briefly Explain the ? Operator.
Q10.Write a note on
a. Operator Precedence
b. B. Using Parantheses
Module 3: Introducing Classes

Q1. With a program explain the Declaration and Creation of Object


Q2. Write a note on Garbage collection.

Q3. Explain the constructor method. How it differs from other member function

Q4. Mention the use of “super” keyword

Q5. Differentiate between Overloading and Overriding


Q6. Write a program to demonstrate Recursion
Q7. Write a JAVA program to implement stack.
Q8. Explain how constructors are called in inheritance hierarchy with a program.
Q9. Mention the access Modifiers in java and explain in brief.

Q10. Write short notes on i) Final class ii) Abstract class.

Module 4: Packages and Interfaces

Q1. What is Package? Explain steps to create package with example.


Q2.With syntax explain how to import packages.
Q3. Explain interface and its usage.
Q4.Write a program to implement Interface

Q5. What is Exception? Give difference between Throw and Throws?


Q6.Write a short note on try, catch, finally blocks.
Q7. What happens if a try-catch-finally statement does not have a catch clause to handle an
Exception that is thrown within the body of the try statement?

Q8.With an example explain Nested try Statements

Q9.With an example explain custom Exception

Q10.Write a note on Chained Exception


Module 5: Enumerations, Type Wrappers, I/O, Applets, and Other Topics

Q1. What are applets? Explain different stages in the cycle of an applet?

Q2. Explain Enumeration with an example.

Q3. Write a short note on transient and volatile Modifiers.

Q4. Explain Type wrappers using any of the two primitive data types.

Q5. Write a program to illustrate the String functions.

Q6.Write a program to illustrate Overloaded constructors through this().

Q7. Write a note on I/O classes.

Q8. Briefly explain the below Java Keywords

a. instanceof , b. strictfp, c. assert

Q9. Explain StringBuffer with a simple Java program.

Q10. Explain StringBuilder with a simple Java program.

Q11. Explain String class in java and write a program to illustrate the string functions.

You might also like