0% found this document useful (0 votes)
2 views

syllabus of java

The document outlines a 12-week Java syllabus plan covering core Java, object-oriented programming, collections, exception handling, advanced Java concepts, and practical applications. Each week includes specific topics, practice questions, and mini project ideas to reinforce learning. The plan culminates in a final week dedicated to project work, revision, and interview preparation.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

syllabus of java

The document outlines a 12-week Java syllabus plan covering core Java, object-oriented programming, collections, exception handling, advanced Java concepts, and practical applications. Each week includes specific topics, practice questions, and mini project ideas to reinforce learning. The plan culminates in a final week dedicated to project work, revision, and interview preparation.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Java Syllabus Plan (3 Months)

Dura on: 12 Weeks (Approx. 3 Months)

Month 1: Core Java - Basics & OOPs


Week 1: Java Basics + Environment Setup
 Java Introduc on, History, Features
 JDK, JRE, JVM
 Se ng up Java (IDE: IntelliJ / Eclipse)
 First Java Program
 Variables, Data Types, Type Cas ng
 Input/Output in Java
 Operators & Expressions
Prac ce Ques ons:
 Write a program to swap two numbers without a third variable.
 Check if a number is prime.
 Simple Calculator (switch-case)
Week 2: Control Flow Statements
 if-else, nested if-else
 switch-case
 for loop, while loop, do-while
 break, con nue, return
Prac ce Ques ons:
1. Swap two numbers without using a third variable
2. Check whether a number is even or odd
3. Find the largest among three numbers
4. Calculate factorial of a number
5. Find whether a year is a leap year or not
6. Simple calculator using switch
7. Print mul plica on table of a number
8. Count digits in a number
9. Reverse a number
10.Check whether a number is a palindrome
11.Check whether a number is an Armstrong number
12.Generate Fibonacci series
13.Sum of digits of a number
14.Check whether a character is vowel or consonant
15.Print ASCII value of a character
16.Print all prime numbers between 1 to N
17.Find GCD and LCM
18.Check if number is perfect number
19.Convert decimal to binary
20.Count number of set bits in a binary representa on
Week 3: Arrays and Strings
 1D & 2D Arrays
 Array Traversal & Searching
 Introduc on to Strings
 String func ons: charAt, substring, equals, etc.
 StringBuffer vs StringBuilder
Prac ce Ques ons:
1. Find the largest and smallest element in an array
2. Sort an array in ascending and descending order
3. Find the sum and average of array elements
4. Search an element in array (Linear & Binary Search)
5. Count even and odd numbers in an array
6. Remove duplicates from array
7. Merge two arrays
8. Reverse an array
9. Find second largest element in array
10.Le rotate and right rotate an array
11.Find missing number in array (1 to n)
12.Move all zeros to end
13.Find frequency of each element
14.Find duplicates in an array
15.Replace every element with the next greatest
16.Check if array is sorted
17.Find common elements between two arrays
18.Kadane’s algorithm for max subarray sum
19.Matrix addi on and subtrac on (2D array)
20.Matrix mul plica on (2D array)
Strings
21.Reverse a string
22.Check if string is palindrome
23.Count vowels, consonants, digits and spaces
24.Convert string to uppercase/lowercase
25.Remove all whitespaces
26.Remove duplicate characters
27.Find the frequency of characters
28.Check if two strings are anagrams
29.Count words in a sentence
30.Print all permuta ons of a string
31.Find longest word in a sentence
32.Replace substring in string
33.Check if string contains only digits
34.Check if string is a valid email
35.Capitalize first le er of each word
36.Toggle each character's case
37.Compare two strings lexicographically
38.Find longest common prefix
39.Reverse words in a sentence
40.Compress string (e.g., aabbbccc → a2b3c3)
Week 4: Object-Oriented Programming (OOP)
 Class and Object
 Constructor and Types
 Sta c keyword
 Method Overloading
 this keyword
Prac ce Ques ons:
 Create a Student class with details and display method
 Create a BankAccount class with deposit and withdraw func ons
 Create a Rectangle class with area and perimeter methods
Month 2: OOPs (Advanced) + Collec ons + Excep on Handling
Week 5: Inheritance and Polymorphism
 Inheritance types
 super keyword
 Method Overriding
 final keyword
 Dynamic method dispatch
Prac ce Ques ons:
1. Create a Student class and display info
2. Create a Rectangle class with area & perimeter
3. Create a class with sta c variable and method
4. Constructor overloading example
5. Method overloading with different datatypes
6. Inheritance: Vehicle → Car, Bike
7. Use super to call parent constructor
8. Create abstract class Shape and extend it
9. Interface example: Flyable, Swimmable
10.Run me polymorphism using method overriding
11.Create class with final methods
12.Create a class that uses this keyword
13.Use encapsula on with private variables and ge ers/se ers
14.Create a bank system with deposit and withdraw
15.Calculate area using different shapes using polymorphism
16.Create a simple inventory system using objects
17.Demonstrate dynamic method dispatch
18.Create a class hierarchy for Employee types
19.Difference between shallow and deep copy
20.Singleton class implementa on
Week 6: Abstrac on and Interface
 Abstract class and methods
 Interface and implementa on
 Mul ple Inheritance via Interfaces
 Func onal Interfaces (Java 8)
Prac ce Ques ons:
 Interface for Vehicle with start, stop, etc.
 Abstract class Employee with full- me/part- me implementa on
Week 7: Excep on Handling
 Try, Catch, Finally
 Throw and Throws
 Checked vs Unchecked excep ons
 Custom Excep ons
Prac ce Ques ons:
1. Divide two numbers with try-catch
2. Array index out of bounds excep on
3. Null pointer excep on demo
4. NumberFormatExcep on demo
5. Custom excep on for age valida on
6. Mul ple catch blocks demo
7. Use of finally block
8. Nested try-catch
9. Throw keyword demo
10.Throws keyword demo
11.User-defined excep on for login failure
12.Handle input mismatch excep on
13.Create excep on hierarchy
14.Try-with-resources example
15.Excep on chaining demo
16.FileNotFoundExcep on handling
17.Arithme c excep on demo
18.Handle checked vs unchecked excep on
19.Use excep on propaga on
20.Re-throwing excep ons
Week 8: Collec ons Framework
 List, ArrayList, LinkedList
 Set, HashSet, TreeSet
 Map, HashMap, TreeMap
 Iterator, for-each loop
Prac ce Ques ons:
1. Add and display elements using ArrayList
2. Remove duplicate elements from ArrayList
3. Sort list in ascending/descending
4. Iterate over list using iterator
5. Store and display student records using HashMap
6. Count frequency of words in a sentence using Map
7. Store unique values using HashSet
8. Convert array to ArrayList
9. Check if list is palindrome
10.Use TreeSet to store sorted elements
11.Add key-value pairs in TreeMap
12.Reverse a LinkedList
13.Convert List to Set and vice versa
14.Store mul ple values in Map (List<Map>)
15.Group students by marks using Map
16.Filter list elements using condi on
17.Sort Map by values
18.Use priority queue to sort numbers
19.Clone a list
20.Find intersec on of two sets
Month 3: Advanced Java + Mini Project + Interview Prep
Week 9: File Handling + Wrapper Class
 Reading/wri ng files using FileReader, FileWriter
 Serializa on and Deserializa on (basic)
 Wrapper classes and Autoboxing/Unboxing
Prac ce Ques ons:
1. Create a file using Java
2. Write data to a file
3. Read data from file
4. Append data to file
5. Count words in file
6. Count lines and characters in file
7. Copy file content to another file
8. Search for a word in file
9. Replace a word in file
10.Display file metadata
11.Delete a file using Java
12.List all files in a directory
13.File encryp on and decryp on (basic)
14.Store object in file using Serializa on
15.Deserialize object from file
16.Read file using BufferedReader
17.Write to file using BufferedWriter
18.Use Scanner to read file
19.Count frequency of words from file
20.Read CSV file and print data
Week 10: Threads and Mul threading
 Thread class, Runnable Interface
 Thread Lifecycle
 Synchroniza on, Inter-thread Communica on
 Deadlock
Prac ce Ques ons:
1. Create thread using Thread class
2. Create thread using Runnable
3. Use sleep and join methods
4. Thread priority example
5. Synchronize method demo
6. Synchronize block demo
7. Inter-thread communica on using wait/no fy
8. Producer-consumer problem
9. Deadlock example
10.Daemon thread example
11.Create mul ple threads
12.Shared resource with mul ple threads
13.Use thread pool using ExecutorService
14.Use of vola le keyword
15.Thread group crea on
16.TimerTask scheduling
17.Read-write lock implementa on
18.Callable and Future example
19.Parallel file processing using threads
20.Thread-safe singleton pa ern
Week 11: Java 8 Features + Lambda + Stream API
 Func onal Interfaces
 Lambda Expressions
 Stream API basics
 filter, map, collect, forEach
Prac ce Ques ons:
1. Sort a list using lambda
2. Print list using forEach and lambda
3. Filter even numbers using Stream
4. Find max and min from a list
5. Convert list of strings to uppercase
6. Find sum and average using Stream
7. Count elements with certain condi on
8. Convert list to map
9. Find duplicate elements using Stream
10.Remove nulls from list
11.Stream chaining (map → filter → collect)
12.Get only dis nct elements from list
13.Group list elements by length
14.Par on list based on condi on
15.Sort list of objects using lambda
16.Create custom func onal interface
17.Method reference example
18.Stream API to join strings
19.FlatMap to fla en nested list
20.Stream to convert string into character list
Advanced Java Logic & Miscellaneous
1. Implement custom Stack using array
2. Implement custom Queue using LinkedList
3. Convert infix to pos ix expression
4. Evaluate pos ix expression
5. Generate random password
6. Check if brackets are balanced
7. Convert Roman to Integer
8. Integer to Roman conversion
9. Calculate power of number using recursion
10.Count frequency of digits in a number
11.Find the longest increasing subarray
12.Detect palindrome in linked list (custom LL)
13.Sort custom objects using Comparator
14.Print Pascal’s Triangle
15.Spiral print of a matrix
16.Convert integer to words
17.Generate all subsets of a set
18.Find leader elements in array
19.Find the majority element (> n/2)
20.Decode a compressed string (e.g. a2b3 → aabbb)
Recursion & Backtracking
1. Factorial using recursion
2. Fibonacci using recursion
3. Power func on using recursion
4. Binary search using recursion
5. Check if string is palindrome using recursion
6. Print all subsets of a string
7. Print all permuta ons of a string
8. N-Queens Problem
9. Rat in a Maze
10.Sudoku Solver
11.Tower of Hanoi
12.Count paths in a matrix
13.Word break problem
14.Subset sum problem
15.Generate binary strings without consecu ve 1s
16.Generate balanced parentheses
17.Reverse a stack using recursion
18.K-th symbol in grammar
19.Knight’s tour problem
20.Unique paths in grid (with/without obstacles)
Sor ng & Searching Algorithms
1. Implement Bubble Sort
2. Implement Selec on Sort
3. Implement Inser on Sort
4. Implement Merge Sort
5. Implement Quick Sort
6. Implement Binary Search
7. Implement Linear Search
8. Find first and last occurrence in sorted array
9. Search in rotated sorted array
10.Find peak element in array
11.Count inversions in array
12.Sort colors (Dutch na onal flag problem)
13.Find missing and duplicate elements
14.Median of two sorted arrays
15.Search in 2D matrix
16.Find kth smallest/largest element
17.Find pair with given sum
18.Find triplet with zero sum
19.Maximum product of two elements
20.Merge two sorted arrays
Java Data Structures
1. Implement LinkedList (add, delete, print)
2. Detect loop in LinkedList
3. Find middle of LinkedList
4. Reverse LinkedList
5. Find intersec on of two linked lists
6. Find nth node from end
7. Remove duplicates from LinkedList
8. Sort a LinkedList
9. Merge two sorted LinkedLists
10.LRU Cache using LinkedHashMap
11.Stack using ArrayList
12.Stack using LinkedList
13.Queue using two stacks
14.Deque using doubly LinkedList
15.Circular Queue
16.Implement Priority Queue
17.Implement HashMap
18.Design HashSet
19.Implement Trie (Insert, Search, StartsWith)
20.Design a Phone Directory using Trie
Week 12: Project + Revision + Interview Qs
 Mini Project Ideas:
o Student Management System
o Library Management System
o To-do List Console App
 Revise all concepts
 Java MCQs + Coding Prac ce
 Java Interview Ques ons (Real-world + Coding)

You might also like