Gujarat Technological UniversityWinter 2024 examination

GTU 3140705 Object Oriented Programming -I (Java) Winter 2024 Question Paper & PDF

B.E. · Computer Engineering · Semester 4 · Subject code 3140705
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.

8 of 25 questions on this paper were also asked in other years. 2 more are types of question GTU sets again with new data. Each is marked below with the years it appeared.See all 25 repeated 3140705 questions, most asked first

Q.1

14 Marks
(a)
3 marks
Why public, static, void and arguments in following statement required →
public static void main(String args[])
(b)
4 marksAsked in 2 of 7 papers
List out different types of loops available in java with code snippet.

Also asked in Summer 2026 Q2b

(c)
7 marks

Describe Inheritance, Polymorphism and Data Encapsulation characteristics of OOP with example.

Q.2

14 Marks
(a)
3 marksAsked in 2 of 7 papers
State three use of final keyword.

Also asked in Summer 2024 Q3a OR

(b)
4 marksAsked in 3 of 7 papers
Describe java Access modifier.

Also asked in Summer 2025 Q2b, Summer 2024 Q3c

(c)
7 marksAsked in 2 of 7 papers
Define concept of method overloading and method overriding with examples.

Also asked in Summer 2025 Q1a

(c)
7 marksAsked in 2 of 7 papers
What is Abstract class? Describe usage of Abstract class with one example.

Also asked in Summer 2026 Q3a OR

Q.3

14 Marks
(a)
3 marksAsked in 2 of 7 papers
Describe use of Super keyword.

Also asked in Summer 2025 Q3a OR

(b)
4 marks
Describe various methods and usage of Object class in java.
(c)
7 marksSame type asked in 2 of 7 papers

Create a class called Employee that includes three pieces of information as instance variables—a first name (typeString), a last name (typeString) and a monthly salary (double). Your class should have a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, set it to 0.0. Write a test application named EmployeeTest that demonstrates class Employee’s capabilities. Create two Employee objects and display each object’s yearly salary. Then give each Employee a 10% raise and display each Employee’s yearly salary again.

Also asked in Summer 2023 Q2c OR

(a)
3 marks
Describe use of static keyword.
(b)
4 marks
Define property of Dynamic method dispatch with example.
(c)
7 marks

Create a class named Account with instance variables Ac_No,Name and Balance and methods display (), setdata (),deposit(). In display () method, display the instance variables value Ac_No,Name and Balance). And in setdata () method set the instance variable values (Ac_No,Name and Balance) and in deposit() method the amount that user wants to deposit that will be deposited.

Q.4

14 Marks
(a)
3 marks
Write a Java program to copy one array list into another.
(b)
4 marks
Read two numbers from command line argument and print sum of them.
(c)
7 marksAsked in 3 of 7 papers
Describe steps to create a package with one example.

Also asked in Summer 2025 Q3b OR, Summer 2024 Q5b OR

(a)
3 marksAsked in 5 of 7 papers
Describe following keywords:
i)throw
ii)throws

Also asked in Summer 2026 Q4b OR, Summer 2025 Q4a OR, Summer 2024 Q4a, Summer 2023 Q3b

(b)
4 marks
Compare Abstract class and Interface
(c)
7 marks

Create a method named Withdraw () in the main function performing exception handling. Example: Balance = 1000; Withdraw = 12000 Here, Balance

Q.5

14 Marks
(a)
3 marks
Describe following term : finally and finalize
(b)
4 marks

Write a java program to read employee details from emp.txt file and print on screen.

(c)
7 marks

Create customer class which extends thread class and contains two instance variables name, ProductName and static variable Product Quantity. For example if two customers are trying to buy the same product at once then follow synchronization of two customers extending thread class.

(a)
3 marks
Describe any one wrapper class with its method usage.
(b)
4 marks

Write a java program to read students details from console and write that students details into emp.txt file.

(c)
7 marksSame type asked in 4 of 7 papers
Write a program to create GUI for Student registration form using JavaFX.

Also asked in Winter 2025 Q5c, Summer 2024 Q4c OR, Winter 2023 Q5c OR

More Object Oriented Programming -I papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

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 -I (Java) (Winter 2024, B.E. · Computer Engineering, Sem 4). 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