Gujarat Technological UniversitySummer 2024 examination

GTU 2150704 Object Oriented Programming using JAVA Summer 2024 Question Paper & PDF

B.E. · Computer Engineering · Semester 5 · Subject code 2150704
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 2:30 PM – 5:00 PM
Questions
5 with internal choice
No solutions on this paper yetNeed them for your exam? Ask once. Papers that students ask for are solved first, and we aim to add them within 24 hours.

Q.1

14 Marks
(a)
3 marks
Define: JVM, bytecode and thread
(b)
4 marks
Explain the four principles of object oriented programming.
(c)
7 marks
Explain the following with examples:

final variable, final method final class and finally.

Q.2

14 Marks
(a)
3 marks

Explain how to create object and access class member and methods in java.

(b)
4 marks
Explain public static void main (Strings args[]) statement in java.
(c)
7 marks

Explain if statement, while, do while and for loop statement with examples in java.

(c)
7 marks
Write a program in Java for multiplication of two 3x3 given matrices.

Q.3

14 Marks
(a)
3 marks
List types of Inheritance. Explain inheritance with example.
(b)
4 marks

What is Exception? Demonstrate how you can handle different types of exception separately.

(c)
7 marks

Explain string arrays and string methods : compareTo(), Valueof(), trim(), length(), concate().

(a)
3 marks
What are the characteristics of constructors?
(b)
4 marks
Explain the difference between overloading and overriding.
(c)
7 marks
Explain all the types of visibility modifiers.

Q.4

14 Marks
(a)
3 marks
Differentiate between static variable and final variable.
(b)
4 marks
What is an interface? Explain the importance of it in Java.
(c)
7 marks

Write a program in Java to show method overloading of constructor inheritance.

(a)
3 marks
Describe the difference between abstract method and final method.
(b)
4 marks

What is package? What are the requirements of it? What we can achieve using package?

(c)
7 marks
Write a program in Java to show method overriding super keyword.

Q.5

14 Marks
(a)
3 marks
When a method or a class is declared abstract?
(b)
4 marks
What is the importance of dynamic method dispatch in Java?
(c)
7 marks

What is multithreading? What are the ways in which you can create a thread? Explain with Example.

(a)
3 marks

Describe the difference between character stream class and byte stream class.

(b)
4 marks
Explain how to handle primitive data types in I/O management of file?
(c)
7 marks
Write a program in Java for writing bytes to a file.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

Official Gujarat Technological University (GTU) examination paper for Object Oriented Programming using JAVA (Summer 2024, B.E. · Computer Engineering, Sem 5). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

ViewDownload PDF