0% found this document useful (0 votes)
7 views14 pages

Java 3hr Workshop

The document outlines a 3-hour workshop aimed at teaching beginner to intermediate Java programming. It covers Java basics, control flow, and object-oriented programming, culminating in a final project to build a console-based Student Management System. The workshop includes hands-on exercises and resources for further learning.

Uploaded by

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

Java 3hr Workshop

The document outlines a 3-hour workshop aimed at teaching beginner to intermediate Java programming. It covers Java basics, control flow, and object-oriented programming, culminating in a final project to build a console-based Student Management System. The workshop includes hands-on exercises and resources for further learning.

Uploaded by

sedept14july2025
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Java Programming: 3-Hour

Workshop
Beginner to Intermediate Hands-on
Session
Presenter: You
Workshop Goals (3 hours)
• Understand Java syntax and structure
• Learn core concepts: variables, data types,
control flow
• Introduction to Object-Oriented Programming
(OOP)
• Build a small console-based project
Workshop Schedule (High-level)
• Hour 1 — Java basics, setup, syntax (45m +
15m exercise)
• Hour 2 — Control flow & OOP basics (40m +
20m exercise)
• Hour 3 — OOP advanced concepts, final
project (45m + 15m wrap-up)
Hour 1 — Java Basics
• What is Java? Platform independence, JVM,
JDK, JRE
• Setup: Install JDK, IDE (Eclipse/IntelliJ/VS
Code)
• Syntax: class, main method, printing output
• Variables, data types, operators
Java Basics: Example
• public class HelloWorld {
• public static void main(String[] args) {
• System.out.println("Hello, World!");
• }
• }
Exercise 1 (15m)
• Write a program that prints your name and
age
• Write a program to add two numbers
• Run your code from terminal/IDE
Hour 2 — Control Flow
• Conditional statements: if, else-if, else, switch
• Loops: for, while, do-while, enhanced for
• Break & continue
• Hands-on practice
Hour 2 — Methods & OOP Basics
• Defining methods: return type, parameters
• Classes and objects
• Constructors
• Access modifiers: public, private, protected,
default
Exercise 2 (20m)
• Create a Calculator class with add, subtract,
multiply, divide methods
• Write a program to print multiplication table
of a number
Hour 3 — OOP Advanced
• Inheritance and super keyword
• Polymorphism (method overloading &
overriding)
• Encapsulation (getters/setters)
• Exception handling basics (try/catch/finally)
Java OOP Example
• class Animal { void sound()
{ System.out.println("Animal sound"); } }
• class Dog extends Animal { void sound()
{ System.out.println("Bark"); } }
• public class TestPolymorphism {
• public static void main(String[] args) {
• Animal a = new Dog();
• a.sound();
• }
Final Project (40m)
• Build a Student Management System (console-
based)
• Features: add student, list students, search by
ID
• Use classes, methods, arrays/ArrayList
Assessment & Wrap-up (15m)
• Review key concepts: syntax, control flow,
OOP
• Show project demos (volunteers)
• Resources and practice problems
• Q&A
Resources & Next Steps
• Oracle Java Documentation
• W3Schools Java Tutorial
• GeeksforGeeks Java Programming
• Practice: HackerRank, LeetCode

You might also like