🚀🔥 Java Complete Course Part-3 (2024) | 100+ Programming Challenges

preview_player
Показать описание

🧬 Our Prime PLACEMENT Courses: 👇

🧬 Completion Certificate 👇

👉 Free Notes for all Courses: 👇

👉 Complete Coding Platform: 👇

👉 Social Media: 👇

👉 Our One Shot videos 👇
🎬 MERN Stack 👇:

🎬 Web Development 👇:

🎬 Programming Languages 👇:

Contact Us: 👇
📞Call on: +91-8000121313

#knowledgegate #CompleteCoding #PrashantSir
*******************************************************
⭐️Time Stamps⭐️
#0 (00:00) Introduction 👷
#9.2 (01:44) Abstract Keyword Continued 🔊
#9.3 (14:21) Interfaces ☕
#9 (23:34) Programming Challenge 83-84 🙅‍♂️
#9.4 (37:43) What is Polymorphism ❌
#9.5 (45:43) References and Objects 💱
#9.6 (1:06:49) Method / Constructor Overloading ⬇
#9.7 (1:18:21) Super Keyword 🌍
#9.8 (1:24:53) Method / Constructor Overriding 🔒
#9.9 (1:38:19) Final keyword revisited ⚡
#9.10 (1:42:25) Pass by Value vs Pass by reference 🍕
#9 (1:52:55) Programming Challenge 85-86 🙅‍♂️
#9 (2:02:04) Practice Exercise 🙅‍♂️

#10 (2:04:51) Exception & File Handling 🎉
#10.1 (2:05:24) What is an Exception ⛔
#10.2 (2:15:32) Try-Catch 📜
#10.3 (2:34:26) Types of Exception 🔃
#10.4 (2:38:53) Throw and Throws 💬
#10.5 (2:57:21) Finally Block 🎁
#10.6 (3:02:28) Custom Exceptions 🧾
#10 (3:05:02) Challenge 87 🙅‍♂️
#10.7 (3:12:13) FileWriter class 🍱
#10.8 (3:26:37) FileReader class 👪
#10 (3:34:08) Challenge 88 🙅‍♂️
#10 (3:44:05) Practice Exercise 🙅‍♂️

#11 (3:47:32) Collections & Generics 🦸‍♂️
#11.1 (3:48:41) Variable Arguments 👻
#11.2 (3:58:54) Wrapper Classes & Autoboxing 💊
#11.3 (4:06:47) Collections Library 🖨️
#11.4 (4:15:56) List Interface 🏬
#11.5 (4:30:10) Queue Interface 🖨️
#11.6 (4:42:11) Set Interface 🚚
#11.7 (4:50:55) Collections Class ⚠️
#11 (4:58:13) Challenge 89-95 🙅‍♂️
#11.8 (5:43:08) Map Interface 📝
#11.9 (5:52:55) Enums 🚗
#11.10 (6:02:26) Generics & Diamond Operators 🔄
#11 (6:06:30) Challenge 96-98 🙅‍♂️
#11 (6:22:15) Practice Exercise 🙅‍♂️

#12 (6:25:40) Multithreading & Executor Service 🚧
#12.1 (6:26:57) Intro to Multi-threading 🏁
#12.2 (6:47:37) Creating a Thread 🏬
#12.3 (7:10:32) States of a Thread 🦅
#12.4 (7:16:55) Thread Priority ☎️
#12.5 (7:25:46) Join Method 📁
#12.6 (7:34:35) Synchronize keyword ✨
#12.7 (7:52:15) Thread Communication 👷
#12 (7:57:10) Programming Challenge 99-102 🙅‍♂️
#12.8 (8:21:58) Intro to Executor Service 👷
#12.9 (8:36:26) Multiple Threads with Executor 🔊
#12.10 (8:47:08) Returning Futures ☕
#12 (9:00:25) Programming Challenge 103-105 🙅‍♂️
#12 (9:23:55) Practice Exercise 🙅‍♂️

#13 (9:26:43) Functional Programming ❌
#13.1 (9:28:38) What is Functional Programming 💱
#13.2 (9:34:51) Lambda Expression ⬇
#13.3 (9:46:14) What is a Stream 🌍
#13.4 (9:50:55) Filtering & Reducing 🔒
#13 (10:13:42) Programming Challenge 106-109 🙅‍♂️
#13.5 (10:27:10) Functional Interfaces ⚡
#13.6 (10:29:51) Method References 🍕
#13.7 (10:36:50) Functional vs Structural Programming 🎉
#13.8 (10:40:30) Optional Class ⛔
#13 (10:47:55) Programming Challenge 110-112 🙅‍♂️
#13.9 (11:03:30) Intermediate vs Terminal Operations 📜
#13.10 (11:07:20) Max, Min, Collect to List 🔃
#13.11 (11:09:15) Sort, Distinct, Map 💬
#13 (11:11:55) Programming Challenge 113-115 🙅‍♂️
#13 (11:25:54) Practice Exercise 🙅‍♂️

#ByeBye (11:28:55) Bye Bye 👻
Рекомендации по теме
Комментарии
Автор



List of Programming Challenges Solved:
80. Start with a base class LibraryItem that includes common attributes like itemID, title, and author, and methods like checkout() and returnItem(). Create subclasses such as Book, Magazine, and DVD, each inheriting from LibraryItem. Add unique attributes to each subclass, like ISBN for Book, issueNumber for Magazine, and duration for DVD.
81. Create a class Person with attributes name and age. Override equals() to compare Person objects based on their attributes. Override hashCode() consistent with the definition of equals().
82. Create a class ArrayOperations with a static nested class Statistics. Statistics could have methods like mean(), median(), which operate on an array.
83. Create an abstract class Shape with an abstract method calculateArea(). Implement two subclasses: Circle and Square. Each subclass should have relevant attributes (like radius for Circle, side for Square) and their own implementation of the calculateArea() method.
84. Create an interface Flyable with an abstract method fly(). Create an abstract class Bird that implements Flyable. Implement a subclass Eagle that extends Bird. Provide an implementation for the fly() method.
85. In a class Calculator, create multiple add() methods that overload each other and can sum two integers, three integers, or two doubles. Demonstrate how each can be called with different numbers of parameters.
86. Define a base class Vehicle with a method service() and a subclass Car that overrides service(). In Car's service(), provide a specific implementation that calls super.service() as well, to show how overriding works.
87. Arithmetic Exception Handling Write a program that asks the user to enter two integers and then divides the first by the second. The program should handle any arithmetic exceptions that may occur (like division by zero) and display an appropriate message.
Key Points:
- Use Scanner to read user input.
- Implement a try-catch block to handle ArithmeticException.
- Display a user-friendly message if division by zero occurs.
88. File Not Found Exception Handling. Write a program to read a filename from the user and display its content. The program should handle the situation where the file does not exist.
Key Points:
- Use Scanner to read the filename from the user.
- Use FileReader to read the file content.
- Implement a try-catch block to handle FileNotFoundException.
- Display a message informing the user if the file is not found.
89. Write a method concatenate Strings that takes variable arguments of String type and concatenates them into a single string.
90. Write a program that sorts a list of String objects in descending order using a custom Comparator.
91. Use the Collections class to count the frequency of a particular element in an ArrayList.
92. Write a method that swaps two elements in an ArrayList, given their indices.
93. Create a program that reverses the elements of a List and prints the reversed list.
94. Create a PriorityQueue of a custom class Student with attributes name and grade. Use a comparator to order by grade.
95. Write a program that takes a string and returns the number of unique characters using a Set.
96. Create an enum called Day that represents the days of the week. Write a program that prints out all the days of the week from this enum.
97. Enhance the Day enum by adding an attribute that indicates whether it is a weekday or weekend. Add a method in the enum that returns whether it's a weekday or weekend, and write a program to print out each day along with its type.
98. Create a Map where the keys are country names (as String) and the values are their capitals (also String). Populate the map with at least five countries and their capitals. Write a program that prompts the user to enter a country name and then displays the corresponding capital, if it exists in the map.
99. Write a program that creates two threads. Each thread should print "Hello from Thread X", where X is the number of the thread (1 or 2), ten times, then terminate.
100. Write a program that starts a thread and prints its state after each significant event (creation, starting, and termination). Use Thread.sleep() to simulate long-running tasks and Thread.getState() to print the thread's state.
101. Create three threads. Ensure that the second thread starts only after the first thread ends and the third thread starts only after the second thread ends using the join method. Each thread should print its start and end along with its name.
102. Simulate a traffic signal using threads. Create three threads representing three signals: RED, YELLOW, and GREEN. Each signal should be on for a certain time, then switch to the next signal in order. Use sleep for timing and synchronize to make sure only one signal is active at a time.
103. Write a program that creates a single-threaded executor service. Define and submit a simple Runnable task that prints numbers from 1 to 10. After submission, shut down the executor.
104. Create a fixed thread pool with a specified number of threads using Submit multiple tasks to this executor, where each task should print the current thread's name and sleep for a random time between 1 and 5 seconds. Finally, shut down the executor and handle proper termination using awaitTermination.
105. Write a program that uses an executor service to execute multiple Callable tasks. Each task should calculate and return the factorial of a number provided to it. Use Future objects to receive the results of the calculations. After all tasks are submitted, retrieve the results from the futures, print them, and ensure the executor service is shut down correctly.
106. Write a lambda expression that takes two integers and returns their multiplication. Then, apply this lambda to a pair of numbers.
107. Convert an array of strings into a stream. Then, use the stream to print each string to the console.
108. Given a list of strings, use stream operations to filter out strings that have length of 10 or more and then concatenate the remaining strings.
109. Given a list of integers, use stream operations to filter odd numbers and print them.
110. Create your own functional interface with a single abstract method that accepts an integer and returns a boolean. Implement it using a lambda that checks if the number is prime.
111. Write two versions of a program that calculates the factorial of a number: one using structural (procedural) programming, and the other using functional programming.
112. Write a function that accepts a string and returns an Optional<String>. If the string is empty or null, return an empty Optional, otherwise, return an Optional containing the uppercase version of the string.
113. Given an array of integers, create a stream, use the distinct operation to remove duplicates, and collect the result into a new list.
114. Create a list of employees with name and salary fields. Write a comparator that sorts the employees by salary. Then, use this comparator to sort your list using the sort stream operation.
115. Create a list of strings representing numbers ("1", "2", ...). Convert each string to an integer, then again calculating squares of each number using the map operation and sum up the resulting integers.

CompleteCodingByPrashantSir
Автор

Grateful
sir for course in Java scratch to advance

manmohankumargupta
Автор

12 / 5 / 2024
just complete the java course
"Thank you so much, Prashant Sir, for the incredible Java course! 🙏 It has truly helped me grasp the fundamentals and advance my skills. Your teaching style is clear and engaging, making learning enjoyable every step of the way. I would love to see a series on Spring Boot or full-stack Java development next. Your expertise would undoubtedly make it an invaluable resource for all of us eager learners! Looking forward to more amazing content from you. Keep up the fantastic work! 💻🚀"

Prabhatsinghrajput-qjjo
Автор

I started this tutorials on 22-02-2024 and finally I completed all three parts today[29-04-2024].Sir the way you teach the concepts from basics can make any person learn java even though it is being his/her first language. Looking forward to buy your DSA course, addicted to your teaching. Consistency is the key which I learnt from you sir. One request please do make a complete course on Java Advance topics too. Thank you sir. A small token of appreciation from your subscriber 😁🙌🙌❤

santoshgoudappanavar
Автор

Just completed all 3 parts of core Java thanks for an amazing course Sir. one request to you sir if possible make complete course video on advance java that will very helpful for us and once again thank you for such amazing course❤.

keshavasade
Автор

World NO 1 channel to learn programmer . other channel is only for organization advertisment. Alot of Thanks PRASHANT SIR.

JamesGadget-wq
Автор

गुरू ब्रह्मा गुरू विष्णु, गुरु देवो महेश्वरा गुरु साक्षात परब्रह्म, तस्मै श्री गुरुवे नम: ||

prashantchoudhary
Автор

3:33:33 file handling stack java (jdbc, jsp, servelets etc)

koolduniyag
Автор

I didn't Seen person like You.
Who really think to Give opportunity and courage to students ❤

hanumansinghthakur
Автор

❤Backend one shot like node js, express js, Next js and mongodb etc...❤

manavvlog
Автор

Completed! My age is 27, my background is Mechanical but working in IT for last 2 years, I can say, this course is the best java course in the internet.

techterror
Автор

Maine ye video complete Kiya h sir 🙏
Lot's of love from Odisha❤️

RudranarayanKar-zhuf
Автор

We want to Dsa in Java on YouTube 😊😊😊 please 😊

aryanmaurya
Автор

Sir, continue java series till advanced.i heartly thank

Gandhipatel-jjdz
Автор

Thanq so much sir (Maine v complete kiya sir....I'm not good so 😅mereko abb vpss se v pdhana h aapke help se )

dashingx.yk
Автор

Thank you sir for providing free java core and i complete the core java course and also i want to became java fullstack devloper can you make road map or video and advanced java concept and this is very helpful for me and also all students and app 40rs se jyada deserve karte as a student ese jyda mere pass hai nahi 😊 and Thank you for this amazing course ❤❤

SagulalNetam-tgbn
Автор

Sir please make a complete course for the java backend developer.... It's a request 🙏... You are one of the best teachers I found on YouTube...❤

Trupti-lp
Автор

sir. Also, could you make a video on JDBC, Java servlets, Java Server Pages, Java Message Service, and EJB?

Prabhatsinghrajput-qjjo
Автор

I started learning this course in the month of October last year 2024. Finally, I completed this course. Thank you very much for providing this free Java course. I believe I learned a lot. Today is Holi. I wish you and all your family members Happy Holi. 💕💕💕💕

around
Автор

Sir i was wondering, since you have al ready made great courses on javaScript and ReactJs. CAn you make the next tutorial on Node.js. it will be very helpful. I have came across many courses on react but yours one is the best I have found. Humble request for a NodeJs course. Love From Pakistan sir❤

RehmanFiaz-bb
join shbcf.ru