0% found this document useful (0 votes)
29 views2 pages

OOPs with Java Lab Syllabus B.Voc.

The document outlines the syllabus for the OOPs with Java Lab course for the 2nd semester of the Bachelor of Vocation program at Gujarat Technological University for the academic year 2022-23. It includes practical exercises focusing on Java programming concepts such as arrays, classes, threads, and applets, along with a teaching and examination scheme. The course aims to enhance understanding of object-oriented programming, inheritance, interfaces, multithreading, and applets.

Uploaded by

dishantpatel769
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

OOPs with Java Lab Syllabus B.Voc.

The document outlines the syllabus for the OOPs with Java Lab course for the 2nd semester of the Bachelor of Vocation program at Gujarat Technological University for the academic year 2022-23. It includes practical exercises focusing on Java programming concepts such as arrays, classes, threads, and applets, along with a teaching and examination scheme. The course aims to enhance understanding of object-oriented programming, inheritance, interfaces, multithreading, and applets.

Uploaded by

dishantpatel769
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

GUJARAT TECHNOLOGICAL UNIVERSITY With effective

from
Syllabus for Bachelor of Vocation ([Link].), 2nd Semester academic year
Branch: Information Technology 2022-23
Subject Name: OOPs with Java Lab
Subject Code: 1120506

Type of course: Practical

Prerequisite: NA

Rationale: Java is a general-purpose computer programming language that is a class-based,


object-oriented. It is intended to let application developers "write once, run anywhere" meaning
that compiled Java code can run on all platforms that support Java without the need for
recompilation.

Teaching and Examination Scheme:


Teaching Scheme Credits Examination Marks
Theory Marks Practical Marks Total
L T P C ESE PA (M) PA(V) PA Marks
(E) PA ESE (I)

00 00 02 02 00 00 30 20 50
L- Lectures; P- Practical; OJT- On Job Training; C- Credit; ESE- End Semester Examination;
PA- Progressive Assessment
Programming problems based on all concepts covered in theory such as Arrays, Classes,
Threads, Methods, and Applets etc.

Practical List:

Sr.
Practical / Hands on Hrs.
No.
Exercise
1 Install JDK, write a simple “Hello World” or similar java program, 4
compilation,
debugging, executing using java compiler and interpreter.
2 a. Write a program in Java to find that given number or string is palindrome or 2
not.
b. Write an interactive program to print a string entered in a pyramid form.
3 Create a class which ask the user to enter a sentence, and it should display count of 2
each
vowel type in the sentence. The program should continue till user enters a word
“quit”.Display the total count of each vowel for all sentences.
4 a. Write programs in Java to use Wrapper class of each primitive data types 4
b. Write a program in Java to develop overloaded constructor.
5 Create a class to find out whether the given year is leap year or not. (Use inheritance 2
for
this program)
6 Write a program in Java to develop user defined exception for 'Divide by Zero' error. 2
7 Write a program in Java to demonstrate use of this keyword. Check whether this 2
can
access the private members of the class or not.
8 Describe abstract class called Shape which has three subclasses say Triangle, 2
Rectangle, Circle. Define one method area()in the abstract class and override this area()
in these three subclasses to calculate for specific object i.e. area() of Triangle
subclass should
calculate area of triangle etc. Same for Rectangle and Circle
Page no. 1 of 2
GUJARAT TECHNOLOGICAL UNIVERSITY With effective
from
Syllabus for Bachelor of Vocation ([Link].), 2nd Semester academic year
Branch: Information Technology 2022-23
Subject Name: OOPs with Java Lab
Subject Code: 1120506

9 a. Write a program that executes two threads. One thread displays “Thread1” 4
every 2,000 milliseconds, and the other displays “Thread2” every 4,000
milliseconds. Create the threads by extending the Thread class.
b. Write a program in Java to demonstrate multiple try block and multiple catch
exception.
10 a. Write a program to create “Hello Students” Applet. 4
b. Create Number counter in an Applet using Thread Example.
Total 28
Reference Books:

1. Java Fundamentals A comprehensive introduction By Herbert Schildt, Dale Skrien,


McGraw Hill Education.
2. Programming with Java A Primer – [Link], Mc Grawhill
3. Object Oriented Systems with Java, Tanweer Alam, Khanna Publishing House
4. Core Java, Tanweer Alam, Khanna Publishing House

Course Outcomes:

Sr. No. CO Statement Marks % Weightage


CO-1 Understand object oriented programming concepts and 20
implement in java.
CO-2 Comprehend building blocks of OOPs language and inheritance 25
CO-3 Understand interface and packages in Java 15
CO-4 Implement multithreading in object oriented programs. 20
CO-5 Understand the concept of Applets 20

List of Open Source Software/learning website:

Students must refer to following sites to enhance their learning ability.


1) [Link]
2) [Link]
3) [Link]
4) [Link]

Page no. 2 of 2

You might also like