Java QP

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

I INTERNAL EXAMINATIONS – APRIL 2024

SUBJECT: Object Oriented concepts using Java CODE No.: BCACACN203

Date of Examination: 18/04/24 Semester: II

Duration: 1½ Hours Max. Marks: 30

1. Answer any 5 questions 5x2=10

a) What is Java Bytecode?


b) Write the meaning of public static void main (String args [])
c) Give the syntax of declaring a symbolic constant with example.
d) What is the purpose of break and continue statement? Give example.
e) What is the use of this keyword in java?
f) Write a for loop to display even numbers between 1 and 100

2. Answer any 5 questions 5x4=20

a) Explain the java program structure with example.


b) List and explain different primitive data types available in Java.
c) Explain the increment, decrement, bitwise and conditional operator, with syntax and example.
d) Explain method overloading with suitable example.
e) What is recursion? Illustrate recursion with a code example.
f) Create a class Student with members Register number, name and marks in three subjects. Use
constructors to initialize objects and write a method that displays the information of a student.

You might also like