Advanced Object Oriented Programming Course Code: 4340701
Course Outcomes:
a) Write simple java programs for a given problem statement.
b) Use object oriented programming concepts to solve real world problems.
c) Develop an object-oriented program using inheritance and package concepts for a given
problem statement.
d) Develop an object oriented program using multithreading and exception handling for a
given problem statement.
e) Develop an object-oriented program by using the files and collection framework.
4. TEACHING AND EXAMINATION SCHEME
Teaching Scheme Total Credits Examination Scheme
(In Hours) (CI+T/2+P/2) Theory Marks Practical Marks Total
CI T P C CA ESE CA ESE Marks
3 0 4 5 30 70 25 25 150
Out of 30 marks under the theory CA, 10 marks are for assessment of the micro-project to facilitate
integration of COs and the remaining 20 marks is the average of 2 tests to be taken during the
semester for the assessing the attainment of the cognitive domain UOs required for the
attainment of the COs.
Legends: CI-Class Room Instructions; T – Tutorial/Teacher Guided Theory Practice; P -
Practical; C – Credit, CA - Continuous Assessment; ESE - End Semester Examination.
5. SUGGESTED PRACTICAL EXERCISES
The following practical outcomes (PrOs) that are the sub-components of the COs. Some of the PrOs
marked ‘*’ are compulsory, as they are crucial for that particular CO. These PrOs need to be
attained at least at the ‘Precision Level’ of Dave’s Taxonomy related to ‘Psychomotor Domain’.
Approx.
Sr. Unit
Practical Outcomes (PrOs) Hrs.
No No.
Req
* Install JDK, write a simple “Hello World” or similar java program,
1. compilation, debugging,
debugging,executing usingusing
executing java compiler and
java compiler and
I 2
interpreter.
Write a program in Java to find maximum of three numbers using
2. conditional operator. I 1
Write a program in Java to reverse the digits of a number using
3. while loop I 1
4. Write a program in Java to add two 3*3 matrices.
I 2
GTU - COGC-2021 Curriculum
Page 2 of 13
Advanced Object Oriented Programming Course Code: 4340701
5. Write a program in Java to generate first n prime numbers.
I 2
Write a program in Java which has a class Student having two
6. instance variables enrollmentNo and name. Create 3 objects of
II 1
Student class in main method and display student’s name.
*Write a program in Java which has a class Rectangle having two
7. instance variables height and weight. Initialize the class using
II 1
constructor.
8. Write a program in Java demonstrate the use of “this” keyword.
II 2
Write a program in Java to demonstrate the use of “static”
9. keyword. II 2
10. Write a program in Java to demonstrate the use of "final" keyword.
II 2
*Write a program in Java which has a class Shape having 2
overloaded methods area(float radius) and area(float length, float
11. width). Display the area of circle and rectangle using overloaded II 2
methods.
Write a program in Java to demonstrate the constructor
12. overloading. II 2
Write a java program to demonstrate use of “String” class methods
13. : chatAt(), contains(), format(), length(), split() II 1
14. Write a program in Java to demonstrate single inheritance
III 1
15. Write a program in Java to demonstrate multilevel inheritance
III 2
16. Write a program in Java to demonstrate hierarchical inheritance.
III 2
17. Write a program in Java to demonstrate method overriding.
III 2
*Write a program in Java which has a class Car having two instance
18. variables topSpeed and name. Override toString() method in Car
III 2
class. Create 5 instances of Car class and print the instances.
Write a program in Java to implement multiple inheritance using
19. interfaces. III 2
*Write a program in Java which has an abstract class Shape having
20. III 4
three subclasses: Triangle, Rectangle, and Circle. Define method
GTU - COGC-2021 Curriculum
Page 3 of 13
Advanced Object Oriented Programming Course Code: 4340701
area() in the abstract class Shape and override area() method to
calculate the area.
21. Write a program in Java to demonstrate use of final class.
III 2
22. Write a program in Java to demonstrate use of package.
III 2
Write a program in Java to develop user defined exception for
23. 'Divide by Zero' error. IV 2
*Write a program in Java to develop Banking Application in which
user deposits the amount Rs 25000 and then start withdrawing of
24. Rs 20000, Rs 4000 and it throws exception "Not Sufficient Fund" IV 2
when user withdraws Rs. 2000 thereafter.
*Write a program that executes two threads. One thread displays
“Thread1” every 1000 milliseconds, and the other displays
25. “Thread2” every 2000 milliseconds. Create the threads by IV 2
extending the Thread class
Write a program that executes two threads. One thread will print
26. the even numbers and another thread will print odd numbers from
IV 2
1 to 200.
*Write a program in Java to perform read and write operations on
27. a Text file. V 2
Write a program in Java to demonstrate use of List.
1) Create ArrayList and add weekdays (in string form)
28. V 2
2) Create LinkedList and add months (in string form)
Display both List.
Write a program in Java to create a new HashSet, add colors(in
29. string form) and iterate through all elements using for-each loop to V 2
display the collection.
*Write a Java program to create a new HashMap, add 5 students’
30. data (enrolment no and name). retrieve and display the student’s V 2
name from HashMap using enrolment no.
Note
i.More Practical Exercises can be designed and offered by the respective course teacher to develop
the industry relevant skills/outcomes to match the COs. The above table is only a suggestive list.
ii.The following are some sample ‘Process’ and ‘Product’ related skills (more may be added/deleted
depending on the course) that occur in the above listed Practical Exercises of this course required
which are embedded in the COs and ultimately the competency..
GTU - COGC-2021 Curriculum
Page 4 of 13