Gujarat Technological UniversitySummer 2024 Examination

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

B.E. · Computer Engineering · Semester 5 · Subject Code: 2150704
Download Official GTU PDF
Share:
Total Marks70 MarksExternal theory exam
Passing Marks23 Marks33% minimum cutoff
Exam Duration2.5 Hours2:30 PM – 5:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

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

final variable, final method final class and finally.

7 Marks

Question 2

14 MarksMedium
(a)

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

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

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

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

Question 3

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

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

4 Marks
(c)

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

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

Question 4

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

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

7 Marks
OR OPTION
(a)
Describe the difference between abstract method and final method.
3 Marks
(b)

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

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

Question 5

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

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

7 Marks
OR OPTION
(a)

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

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

Studying for Object Oriented Programming using JAVA?

Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.

About this Examination Paper & Attribution

Official Gujarat Technological University (GTU) examination paper and step-by-step solutions 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.

Download PDF