IT1308 Java Programming Laboratory Department of IT 2025-2026
INDEX
Name of the Lab Incharge:
Pa
S. Date of
ge Date of Signatu
N Experimen Name of the Program
N Submission re
o t
o.
CYCLE 1
1 Java Application to Generate Electricity Bill
.
Develop Java applications to generate Pay slip for
2
an employee
.
3 Java program to make frequency count of
. words in each text
4 Java Program to create Abstract class
. implementation
5 Design java interface for ADT stack with
. proper exception handling
CYCLE 2
6 Java Program to create Abstract class
. implementation
7 Java program to implement user defined exception
.
8 Java Program to find the maximum value from the
. given type of elements using a generic function.
9 Java Program to perform String Handling
. Functions
1 Java Program to perform String operation using
0 ArrayList
.
CYCLE 3
Java Program Using File Concept
1
1
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
1
2 Java Program for Multithreaded implementations
.
1
3 GUI Window operations in java
.
1
4 Create a GUI program in java
.
1
Design and Develop the GUI application with
5
database connectivity of your choice
.
IT1308 JAVA PROGRAMMING LABORATORY L P T C
Common to IT &CC 0 0 4 2
OBJECTIVES
● To build software development skills using java programming for real-world applications
● Implement Object Oriented programming concept using basic syntaxes of control Structures,
strings and function for developing skills of logic building activity.
● Identify classes, objects, members of a class and the relationships among them needed for a
finding the solution to specific problem
● Identify and describe common abstract user interface components to design GUI in Java using
Swing along with response to events and Database Connectivity using JDBC.
LIST OF EXPERIMENTS
1. Develop a java application to generate electricity bill. Create a class with the following CO1
Consumer no., consumer name, previous month reading, current month reading, and
type of EB connection (i.e. domestic or commercial) .Compute the bill amount using the
following tariff. If the type of the EB connection is domestic. Calculate the amount to be
pain follows.
First 100 units –Rs.1 per unit
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
101-200 units –Rs.2.50 per unit
201-500 units –Rs.4 per unit
>501 unit –Rs.6 per unit
If the type of the EB connection is commercial ,calculate the amount to be paid follows
First 100 units –Rs.2 per unit
101-200 units –Rs.4.50 per unit
201-500 units –Rs. 6 per unit
>501 units –Rs. 7 per unit
2. Develop a java application with Employee class with Emp_name, Emp_id,
Address,Mail_id,Mobile_no as members. Inherit the classes,Programmer,Assistant
Professor, Associate Professor with Professor from employee class. Add basic Pay(BP)
as the member of all the inherited classes with 97% of BP as DA,10% of BP as
HRA,12% of BP as PF,0.1% of BP for staff club fund. Generate pay slips for the
employees with their gross and net salary.
3. Write a Java program to make frequency count of words in a given text
4. Write a Java Program to create an abstract class named Shape that contains two integers
and an empty method named print Area(). Provide three classes named Rectangle,
Triangle and Circle such that each one of the classes extends the class Shape. Each one
of the classes contains only the method print Area () that prints the area of the given
shape.
5. Design a Java interface for ADT Stack. Implement this interface using array. Provide
necessary exception handling in both the implementation
6. Complete the following:
1. Create a package named shape.
2. Create some classes in the package representing some common shapes like Square,
Triangle, and Circle.
CO2
3. Import and compile these classes in other program
7. Write a Java program to implement user defined exception handling.
8. Write a java program to find the maximum value from the given type of elements using
a generic function.
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
9. Write a program in Java for String handling which performs the following:
i) Checks the capacity of StringBuffer objects.
ii) Reverses the contents of a string given on console and converts the resultant string
in upper case.
iii) Reads a string from console and appends it to the resultant string of ii.
10. Write a program to perform string operations using ArrayList. Write functions for the
following
a. Append - add at end
b. Insert – add at particular index
c. Search
d. List all string starts with given letter
11. Write a Java program to read copy content of one file to other by handling all file related
exceptions
12. Write a Java program that creates three threads. First thread displays “Good Morning”
everyone second, the second thread displays “Hello” every two seconds and the third
thread displays “Welcome” every three seconds.
13. Write a java Program to create a window when we press
a. M or m the window displays Good Morning
b. A or a the window displays Good After Noon
c. E or e the window displays Good Evening
d. N or n the window displays Good Night
CO3
14. Create a GUI program in java with the following components.
a. A frame with Flow layout.
b. Add the following components on to the frame.
i. Two Text Field
ii. A button with the label display
c. Allow the user to enter data into the JTextField
d. When the button is clicked paint the frame by displaying the data entered in the
JTextField
e. Allow the user to properly close the frame
15. Design and Develop the GUI application with database connectivity of your choice
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
TOTAL: 60 PERIODS
LIST OF EQUIPMENT FOR A BATCH OF 30 STUDENTS
Standalone desktops with any JDK IDE (like NetBeans 1.8v) 30 Nos.
Server with Java Web Server supporting 30 terminals
REFERENCE BOOKS
1. Herbert Schildt., The complete reference, 11th edition, Tata Mc Graw Hill, New Delhi. 2018.
WEB REFERENCES
1. [Link]
2. [Link]
3. [Link]
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
ANNEXURE I
(A) PROGRAM OUTCOMES (POs)
Engineering graduates will be able to:
1. Engineering Knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and an
engineering specialization to the solution of complex engineering problems.
2. Problem analysis: Identify, formulate, review research literature, and analyze complex engineering problems
reaching substantiated conclusions using first principles of mathematics, natural sciences, and engineering
sciences.
3. Design/development of solutions: Design solution for complex engineering problems and design systems
components or process that meet the specified needs with appropriate consideration for the public health and
safety, and the cultural, societal, and environmental considerations.
4. Conduct investigations of complex problems: Use research- based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to
provide valid conclusions.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering and
IT tools including prediction and modeling to complex engineering activities with an understanding of the
limitations.
6. The Engineer and society: Apply reasoning informed by the contextual knowledge to assess societal, health,
safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering
practice.
7. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.
8. Individual and team work: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings.
9. Communication: Communicate effectively on complex engineering activities with the engineering
community and with society at large, such as, being able to comprehend and write effective reports and
design documentation, make effective presentations, and give and receive clear instructions.
10. Project management and finance: Demonstrate knowledge and understanding of the engineering and
management principles and apply these to one’s own work, as a member and leader in a team, to manage
projects and in multidisciplinary environments.
11. Life-Long learning: Recognize the need for, and have the preparation and ability to engage in independent
and life-long learning in the broadest context of technological change.
(B) PROGRAM EDUCATIONAL OBJECTIVES (PEOs)
1. To demonstrate technical skills, competency in fundamentals of Mathematics, Programming and Artificial
Intelligence in modelling, designing and conducting of experiments to provide solutions for industry’s
complex technological problems.
2. To enrich graduates with creativity that applies the concepts of Machine Learning to create, build and deploy
solutions for various business problems
3. To build graduates with potential and ability to engage in continuous professional development and life- long
learning.
4. To train graduates to work in multi-disciplinary teams with superior work ethics and build innovative
solutions to serve the needs of the society.
5. To enable graduates to research, design and implement AI/ML products and services with effective
Communication and Entrepreneurial Skills.
(C) PROGRAM SPECIFIC OBJECTIVES (PSOs)
1. To analyses and design an efficient information management system which uses the concepts of Information
technology to deliver technological solutions and to analyses its impact in the societal and human context.
2. To identify the resources needed for building complex IT projects with an understanding of risk
management processes, operational and policy implications considering human, financial and ecological
factors.
3. To develop and test software projects by applying IT tools and techniques for the development of
computational systems to serve the needs of the community at large
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
IT1308 - JAVA PROGRAMMING LABORATORY
COURSE OUTCOMES:
On completion of this lab course, the students will be able to
CO1 Demonstrates how to achieve reusability using inheritance, interfaces and packages and describes
faster application development can be achieved
CO2 To be able to make an understanding to developing Strings and exception handling, Multithreading
and File Handling
CO3 Identify, Design & develop Graphical user interfaces using principal Java Swing components and
JDBC
MAPPING BETWEEN CO AND PO, PSO WITH CORRELATION LEVEL 1/2/3
P P P P P P P P P PO PO PS PS PSO
IT130
O O O O O O O O O 10 11 O1 O2 3
8
1 2 3 4 5 6 7 8 9
IT130
2 3 3 1 2 - - 2 2 2 - 2 2 3
8.1
IT130
3 3 3 2 2 - - 2 2 2 1 2 3 3
8.2
IT130
3 3 3 2 2 - - 2 2 2 1 2 2 3
8.3
RELATION BETWEEN COURSE CONTENT / EXPERIMENTS WITH CO
S. Knowledge Course
Name of the Program
No level Outcomes
1. BL4 Java Application to Generate Electricity Bill IT1308.1
2. BL4 Develop Java applications to generate Pay slip for an employee IT1308.1
3. BL4 Java program to make frequency count of words in a given text IT1308.1
4. BL4 Java Program to create Abstract class implementation IT1308.1
Design java interface for ADT stack with proper exception
5. BL4 IT1308.1
handling
6. BL5 Java Program to create Abstract class implementation IT1308.2
7. BL5 Java program to implement user defined exception IT1308.2
Java Program to find the maximum value from the given type of
8. BL5 IT1308.2
elements using a generic function.
9. BL5 Java Program to perform String handling Functions IT1308.2
10. BL5 Java Program to perform String operation using ArrayList IT1308.2
11. BL6 Java Program Using File Concept IT1308.3
12. BL6 Java Program for Multithreaded implementations IT1308.3
13. BL6 GUI Window operations in java IT1308.3
14. BL6 Create a GUI program in java IT1308.3
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
Design and Develop the GUI application with database connectivity
15. BL6 IT1308.3
of your choice
BL1 – Remember; BL2 – Apply; BL3 – Analyze; BL4 – Understand; BL5- Evaluate; BL6-Create
VIVA QUESTIONS
1. What is Java?
2. What are the features of Java?
3. What is JVM, JRE, and JDK?
4. What is the difference between JDK and JRE?
5. Is Java a platform-independent language? Why?
6. What is the difference between Java and C++?
7. What is the main() method in Java?
8. Why is Java not purely object-oriented?
9. What is the bytecode?
10. What are identifiers in Java?
11. What are the data types in Java?
12. What is the difference between primitive and non-primitive data types?
13. What is type casting in Java?
14. What is the default value of a local variable?
15. What are static variables?
16. What are the types of operators in Java?
17. What is the difference between == and .equals()?
18. What are control statements in Java?
19. What is the difference between if-else and switch?
20. What is the use of break and continue?
21. What are the types of loops in Java?
22. What is the difference between for and while loop?
23. Can we use a return statement inside a loop?
24. How do you exit from a loop in Java?
25. What is the enhanced for loop?
26. What is an array in Java?
27. How do you declare and initialize an array?
28. What is the difference between String, StringBuilder, and StringBuffer?
29. Are Strings immutable in Java?
30. How do you compare two Strings?
31. What are the principles of OOP?
32. What is a class and an object?
33. What is inheritance?
34. What is method overloading?
35. What is method overriding?
36. What is polymorphism?
37. What is encapsulation?
38. What is abstraction?
39. What is the difference between abstraction and encapsulation?
40. What are access modifiers?
41. What is a constructor?
42. What are the types of constructors?
43. What is the difference between constructor and method?
44. Can constructors be overloaded?
45. What is the use of the this keyword?
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
46. What is the static keyword in Java?
47. What is the final keyword?
48. Can we override a final method?
49. What is the static block?
50. What is the difference between static and instance methods?
51. What are the types of inheritance in Java?
52. Can Java support multiple inheritance?
53. What is an interface?
54. What is the difference between abstract class and interface?
55. Can interfaces have default methods?
56. What is an exception?
57. What is the difference between checked and unchecked exceptions?
58. What are try, catch, and finally blocks?
59. What is the throw and throws keyword?
60. Can we have multiple catch blocks?
61. What are wrapper classes in Java?
62. What is autoboxing and unboxing?
63. Why do we need wrapper classes?
64. What is the difference between Integer and int?
65. Are wrapper classes immutable?
66. What is a thread?
67. How do you create a thread in Java?
68. What is the difference between extending Thread and implementing Runnable?
69. What is synchronization?
70. What are thread lifecycle states?
71. What is a package in Java?
72. How do you import a package?
73. What are the types of access modifiers?
74. What is the default access modifier?
75. Can we access private members of a class?
76. What is garbage collection in Java?
77. How does the garbage collector work?
78. What is the finalize() method?
79. What is the transient keyword?
80. What is the volatile keyword?
81. What is the Scanner class used for?
82. What are the types of I/O streams in Java?
83. What is the difference between FileReader and FileInputStream?
84. What is serialization?
85. What is the use of the Serializable interface?
86. What is the difference between == and equals()?
87. What is the difference between deep copy and shallow copy?
88. What is the difference between throw and throws?
89. What is method chaining?
90. What is the use of super keyword
91. What is the Java Collections Framework?
92. What is the difference between List, Set, and Map?
93. What is ArrayList?
94. What is HashMap?
95. What is the difference between HashSet and TreeSet?
96. What are lambda expressions?
97. What is the Stream API?
St. Joseph’s College of Engineering
IT1308 Java Programming Laboratory Department of IT 2025-2026
98. What is the Optional class?
99. What are functional interfaces?
[Link] is the difference between map() and flatMap()?
St. Joseph’s College of Engineering