Java
קורס Java מלא בעברית: מהשורה הראשונה, דרך OOP, טיפוסים ו-Generics, ועד Threads, שרתים ומשחקים.
A complete Java course: from your first line, through OOP, types and generics, to threads, servers and games.
כל המפגשיםAll sessions
חלקPart 1: יסודותFoundations
מה זה תכנות, JVM ו-JDK, IntelliJ ו-jshell, משתנים וטיפוסים, מחרוזות, תנאים, לולאות וקלט.
What programming is, the JVM and the JDK, IntelliJ and jshell, variables and types, strings, conditions, loops and input.
מה זה תכנות? JVM, JDK, IntelliJ ו-jshellWhat is programming? JVM, JDK, IntelliJ & jshell
איך מחשב מבצע הוראות, איך Java רצה (קוד, javac, bytecode, JVM), התקנת JDK ו-IntelliJ ב-Windows וב-Mac, jshell, והתוכנית הראשונה.How a computer follows instructions, how Java runs (source, javac, bytecode, the JVM), installing the JDK and IntelliJ on Windows and Mac, jshell, and a first program.
2משתנים וטיפוסים פרימיטיבייםVariables & primitive types
int, double, boolean, char ו-long, var, המרות טיפוסים, גלישה (overflow) וחלוקה של מספרים שלמים.int, double, boolean, char and long, var, type conversions, overflow and integer division.
3String ו-StringBuilderString & StringBuilder
מחרוזות הן עצמים שלא משתנים, מתודות שימושיות, השוואה עם equals, String.format ו-StringBuilder לבנייה יעילה.Strings are immutable objects, useful methods, comparing with equals, String.format, and StringBuilder for efficient building.
4תנאים ו-switch החדשConditions & the new switch
if, else if ו-else, אופרטורים לוגיים, switch עם חצים (->) כביטוי שמחזיר ערך, ו-yield.if, else if and else, logical operators, switch with arrows (->) as an expression that returns a value, and yield.
5לולאותLoops
for, while, do-while ו-for-each, break ו-continue, לולאות מקוננות ומעקב אחרי משתני לולאה.for, while, do-while and for-each, break and continue, nested loops and tracing loop variables.
6Scanner וקלטScanner & input
קריאת קלט עם Scanner, nextLine מול nextInt והמלכודת שביניהם, בדיקת קלט ותפריט טקסט ראשון.Reading input with Scanner, nextLine vs nextInt and the trap between them, validating input and a first text menu.
חלקPart 2: מתודות ומערכיםMethods & arrays
מתודות ו-pass-by-value, מערכים, ArrayList ו-HashMap ראשונים, static, דיבוג וחריגות.
Methods and pass-by-value, arrays, first ArrayList and HashMap, static, debugging and exceptions.
מתודות, overloading ו-pass-by-valueMethods, overloading & pass-by-value
הגדרת מתודות, פרמטרים וערך החזרה, overloading, ומה באמת עובר למתודה: עותק של הערך, גם כשהערך הוא הפניה.Defining methods, parameters and return values, overloading, and what really reaches a method: a copy of the value, even when the value is a reference.
8מערכים ומערכים דו-ממדייםArrays & 2D arrays
יצירה, גישה ואורך, לולאות על מערכים, Arrays.toString ו-sort, ומערכים דו-ממדיים כמו לוח משחק.Creating, accessing and length, looping over arrays, Arrays.toString and sort, and 2D arrays like a game board.
9ArrayList ו-HashMap ראשוניםFirst ArrayList & HashMap
רשימה שגדלה לבד, מילון של מפתח וערך, טיפוסים עטופים (Integer) ו-autoboxing.A list that grows by itself, a key-value map, wrapper types (Integer) and autoboxing.
10static מול instancestatic vs instance
מה שייך למחלקה ומה שייך לעצם, מתי static הגיוני, ולמה main הוא static.What belongs to the class and what belongs to an object, when static makes sense, and why main is static.
11דיבוג ב-IntelliJDebugging in IntelliJ
נקודות עצירה, Step Over ו-Step Into, צפייה במשתנים, קריאת stack trace ושיטה למציאת באגים.Breakpoints, Step Over and Step Into, watching variables, reading a stack trace and a method for finding bugs.
12חריגות בסיסיותBasic exceptions
מה זו חריגה, try, catch ו-finally, זריקה עם throw, והודעות שגיאה שעוזרות.What an exception is, try, catch and finally, throwing with throw, and error messages that help.
חלקPart 3: OOP: היסודותOOP: the basics
מחלקות ועצמים, בנאים, encapsulation, static ו-final, equals ו-hashCode, ופרויקט קטן.
Classes and objects, constructors, encapsulation, static and final, equals and hashCode, and a small project.
מחלקות ועצמיםClasses & objects
מחלקה כתבנית ועצם כמופע, שדות ומתודות, new, והפניות בזיכרון (stack מול heap).A class as a blueprint and an object as an instance, fields and methods, new, and references in memory (stack vs heap).
14בנאים ו-thisConstructors & this
בנאים, overloading של בנאים, this() ו-this.field, וסדר האתחול.Constructors, constructor overloading, this() and this.field, and initialization order.
15Encapsulation, getters, setters ו-immutabilityEncapsulation, getters, setters & immutability
private ו-public, שמירה על מצב תקין, getters ו-setters במידה, ועצמים שלא משתנים.private and public, keeping state valid, getters and setters in moderation, and objects that never change.
16static, final וקבועיםstatic, final & constants
שדות static משותפים, final למשתנים, לשדות ולמחלקות, וקבועים בשמות גדולים.Shared static fields, final for variables, fields and classes, and constants in capital letters.
17equals, hashCode ו-toStringequals, hashCode & toString
== מול equals, החוזה בין equals ל-hashCode, ולמה HashSet מתבלבל בלעדיהם. toString שעוזר לדבג.== vs equals, the contract between equals and hashCode, and why a HashSet gets confused without them. A toString that helps debugging.
18פרויקט קטן: המדף כמערכת מחלקותMini project: the shelf as classes
מתכננים ובונים יחד את Shelf, Book ו-Author: אחריות לכל מחלקה, ממשק נקי ובדיקה ידנית.Designing and building Shelf, Book and Author together: one job per class, a clean interface and manual testing.
חלקPart 4: OOP מתקדםAdvanced OOP
ירושה, interfaces, פולימורפיזם, Generics, records, sealed ו-pattern matching, ותבניות עיצוב.
Inheritance, interfaces, polymorphism, generics, records, sealed types and pattern matching, and design patterns.
ירושה, super ו-overrideInheritance, super & override
extends, super() ו-super.method(), @Override, ומתי ירושה היא רעיון רע.extends, super() and super.method(), @Override, and when inheritance is a bad idea.
20abstract ו-interfacesabstract & interfaces
מחלקות מופשטות, interfaces עם default ו-static methods, ומימוש של כמה interfaces.Abstract classes, interfaces with default and static methods, and implementing several interfaces.
21פולימורפיזם ו-dynamic dispatchPolymorphism & dynamic dispatch
הפניה מטיפוס אחד ועצם מטיפוס אחר, איזו מתודה נבחרת בזמן ריצה, casting ו-instanceof.A reference of one type and an object of another, which method is chosen at run time, casting and instanceof.
22GenericsGenerics
מחלקות ומתודות גנריות, bounded types, wildcards ו-PECS, ו-type erasure.Generic classes and methods, bounded types, wildcards and PECS, and type erasure.
23records, enums, sealed ו-pattern matchingrecords, enums, sealed & pattern matching
records לנתונים, enums עם התנהגות, sealed interfaces, ו-switch עם תבניות (Java 21).records for data, enums with behavior, sealed interfaces, and switch with patterns (Java 21).
24SOLID ותבניות עיצובSOLID & design patterns
חמשת עקרונות SOLID, ו-Strategy, Factory, Builder, Observer ו-Singleton (והבעיות שלו).The five SOLID principles, plus Strategy, Factory, Builder, Observer and Singleton (and its problems).
חלקPart 5: Java מודרנית וכליםModern Java & tools
Collections לעומק, lambdas, Streams ו-Optional, חריגות, קבצים ו-JSON, JUnit, Maven, Gradle ו-Git.
Collections in depth, lambdas, streams and Optional, exceptions, files and JSON, JUnit, Maven, Gradle and Git.
Collections לעומקCollections in depth
List, Set, Map ו-Queue, מימושים שונים, סיבוכיות זמן, ומתי לבחור מה.List, Set, Map and Queue, different implementations, time complexity, and when to choose which.
26Lambdas ו-functional interfacesLambdas & functional interfaces
ביטויי למבדה, Function, Predicate, Consumer ו-Supplier, ו-method references.Lambda expressions, Function, Predicate, Consumer and Supplier, and method references.
27Streams ו-OptionalStreams & Optional
filter, map, reduce ו-collect, groupingBy, ו-Optional במקום null.filter, map, reduce and collect, groupingBy, and Optional instead of null.
28חריגות checked מול unchecked ו-try-with-resourcesChecked vs unchecked exceptions & try-with-resources
היררכיית החריגות, throws, חריגות משלכם, ו-try-with-resources שסוגר משאבים לבד.The exception hierarchy, throws, your own exceptions, and try-with-resources that closes resources by itself.
29קבצים עם NIO ו-JSONFiles with NIO & JSON
Path ו-Files, קריאה וכתיבה של טקסט, CSV, ושמירה וטעינה של JSON.Path and Files, reading and writing text, CSV, and saving and loading JSON.
30JUnit 5, Maven, Gradle ו-GitJUnit 5, Maven, Gradle & Git
בדיקות אוטומטיות עם JUnit 5, פרויקט Maven או Gradle, ניהול תלויות, ו-Git ו-GitHub.Automated tests with JUnit 5, a Maven or Gradle project, dependencies, and Git and GitHub.
חלקPart 6: Concurrency ו-ThreadsConcurrency & threads
לב הקורס המתקדם: Threads, race conditions, synchronized, זיכרון משותף, תורים, thread pools, CompletableFuture, virtual threads ו-deadlock.
The heart of the advanced course: threads, race conditions, synchronized, shared memory, queues, thread pools, CompletableFuture, virtual threads and deadlock.
Thread ו-Runnable, start מול run, ו-joinThread & Runnable, start vs run, and join
מה זה thread, יצירה עם Runnable ולמבדה, ההבדל בין start ל-run, join, ומצבי ה-thread.What a thread is, creating one with Runnable and lambdas, the difference between start and run, join, and thread states.
32Race conditions, synchronized ומוניטוריםRace conditions, synchronized & monitors
למה count++ מאבד עדכונים, קטע קריטי, synchronized על מתודות ועל בלוקים, ומוניטורים.Why count++ loses updates, critical sections, synchronized methods and blocks, and monitors.
33volatile ו-Java Memory Modelvolatile & the Java Memory Model
נראות (visibility), happens-before, volatile, ומתי הוא לא מספיק.Visibility, happens-before, volatile, and when it isn't enough.
34wait/notify, producer/consumer ו-BlockingQueuewait/notify, producer/consumer & BlockingQueue
המתנה לתנאי עם wait ו-notify, תבנית יצרן-צרכן, ו-BlockingQueue שעושה את זה בשבילכם.Waiting for a condition with wait and notify, the producer-consumer pattern, and BlockingQueue that does it for you.
35ExecutorService, thread pools, Callable ו-FutureExecutorService, thread pools, Callable & Future
בריכת threads, משימות עם תוצאה, Future.get, invokeAll, וסגירה מסודרת.Thread pools, tasks with a result, Future.get, invokeAll, and an orderly shutdown.
36Locks, Atomic ו-ConcurrentHashMapLocks, Atomic & ConcurrentHashMap
ReentrantLock ו-ReadWriteLock, AtomicInteger ו-compareAndSet, ו-ConcurrentHashMap.ReentrantLock and ReadWriteLock, AtomicInteger and compareAndSet, and ConcurrentHashMap.
37CompletableFuture ו-virtual threadsCompletableFuture & virtual threads
שרשראות אסינכרוניות עם CompletableFuture, טיפול בשגיאות, ו-virtual threads של Java 21 לאלפי משימות.Asynchronous chains with CompletableFuture, error handling, and Java 21 virtual threads for thousands of tasks.
38Deadlock, livelock ו-starvationDeadlock, livelock & starvation
איך threads נתקעים, איך מאבחנים עם jstack ו-thread dump, ואיך מונעים: סדר מנעולים, tryLock וזמנים קצובים.How threads get stuck, how to diagnose with jstack and a thread dump, and how to prevent it: lock ordering, tryLock and timeouts.
חלקPart 7: Java בעולם האמיתיJava in the real world
מסדי נתונים ו-HTTP, Spring Boot, עבודה עם מודל שפה, אלגוריתמים, ראיון עבודה ופרויקט גמר.
Databases and HTTP, Spring Boot, working with a language model, algorithms, job interviews and a final project.
JDBC ו-HttpClientJDBC & HttpClient
מסד נתונים עם JDBC ו-SQL, PreparedStatement, וקריאות HTTP עם HttpClient.A database with JDBC and SQL, PreparedStatement, and HTTP calls with HttpClient.
40Spring Boot REST עם בדיקותSpring Boot REST with tests
פרויקט Spring Boot, controller, service ו-repository, JSON אוטומטי, ובדיקות עם MockMvc.A Spring Boot project, controller, service and repository, automatic JSON, and tests with MockMvc.
41Java בעידן ה-AIJava in the AI era
עבודה נכונה עם עוזר AI, קריאה ל-API של מודל שפה מ-Java (עם תשובות מוקלטות מראש), ובדיקת מה שהמודל כתב.Working well with an AI assistant, calling a language model API from Java (with recorded replies), and checking what the model wrote.
42אלגוריתמים, ראיון עבודה ופרויקט גמרAlgorithms, interviews & final project
סיבוכיות, חיפוש ומיון, שאלות ראיון נפוצות ב-Java, ותכנון פרויקט הגמר.Complexity, searching and sorting, common Java interview questions, and planning the final project.
חלקPart 8: משחקים ב-JavaGames in Java
6 מפגשים עם Swing ו-Java2D: game loop, קלט, התנגשויות, מצבי משחק, Thread נפרד ללוגיקה ול-render, ומשחק שלם שנארז ל-jar.
6 sessions with Swing and Java2D: the game loop, input, collisions, game states, a separate thread for logic and rendering, and a full game packed into a jar.
חלון ראשון: Swing, ציור ו-game loopFirst window: Swing, drawing & the game loop
JFrame ו-JPanel, ציור עם Graphics2D, וה-game loop: עדכון, ציור, המתנה.JFrame and JPanel, drawing with Graphics2D, and the game loop: update, draw, wait.
44קלט מקלדת ועכברKeyboard & mouse input
KeyListener, מצב מקשים לתנועה חלקה, עכבר, ומהירות שלא תלויה במחשב (delta time).KeyListener, key state for smooth movement, the mouse, and speed that doesn't depend on the computer (delta time).
45התנגשויות ו-spritesCollisions & sprites
מלבנים ועיגולים שמתנגשים, sprites מתמונות, אנימציה מפריימים וניקוד.Rectangles and circles that collide, sprites from images, frame animation and scoring.
46מצבי משחק: תפריט, משחק ו-Game OverGame states: menu, play & game over
מכונת מצבים עם enum, מסכים, שמירת שיא, וקול.A state machine with an enum, screens, a saved high score, and sound.
47Thread ללוגיקה ול-render, עם סנכרוןA thread for logic and rendering, with sync
מפרידים את הלוגיקה מהציור ל-threads נפרדים, משתפים מצב בבטחה, ומשווים ל-Swing Timer.Separating logic from drawing into their own threads, sharing state safely, and comparing with a Swing Timer.
48משחק שלם ואריזה ל-jar ו-jpackageA full game, packed with jar & jpackage
מחברים הכול למשחק שלם, אורזים ל-jar שרץ בלחיצה כפולה, ויוצרים מתקין עם jpackage.Putting it all into a full game, packing a jar that runs on double-click, and making an installer with jpackage.