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

BCS306A Oops With Java Tutorial1 PDF

Uploaded by

tanaykishan2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

BCS306A Oops With Java Tutorial1 PDF

Uploaded by

tanaykishan2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

||JAI SRI GURUDEV||

S.J.C. Institute of Technology, Chickballapur.


Department of Information Science &Engineering
TUTORIALS -I
Subject Name & Code: Object Oriented Programming with Java BCS306A

Semester: III DATE: 14/10/2024

1. Explain Type conversion with an example? What is meant by automatic Type promotion?
2. What is constructor? Explain different types constructors in java with examples.
3. Explain the concepts of arrays in java with examples. Also write a program that creates and
initializes a four integer elements array.find the sum and average of its values.
4. Develop a stack class to hold a maximum of 10 integers with suitable methods. Develop a JAVA
main method to illustrate Stack operations
5. Write a note on a) THIS keyword b) Garbage collection.
6. Explain the operation of the following Arithmetic operators, relational operators, ternary operator
and bitwise operators with example
7. Explain selection (if, if-else-if ladder, Switch), iteration (while, do-while, for) and jump (break
continue, return) statements in java with an example?
8. Bring out the differences between object oriented and procedure oriented programming.
9. Explain primitive data types and lexical issues of java with suitable example.
10. Explain the concept of dynamic initialization of variables also explain scope & life time with an
example.
11. Develop a Java program to add TWO matrices of suitable order N(the value of N should be read
from command line arguments)
12. A class called Employee, which models an employee with an ID, name and salary, is designed as
shown in the following class diagram. The method raise Salary (percent) increases the salary by
the given percentage. Develop the Employee class and suitable main method for demonstration.
13. Implement a program to find the addition of floating point numbers and addition of three integer
numbers using method overloading SUM.
14. Explain constructor overloading for class BOX with three instance variables height, width and
depth.

Signature of Faculty Signature of HOD

You might also like