מפגשSession 1: מה זה תכנות? JVM, JDK, IntelliJ ו-jshellWhat is programming? JVM, JDK, IntelliJ & jshell
- תוכנית היא רשימת הוראות שהמחשב מבצע לפי הסדרA program is a list of instructions the computer carries out in order
- המחשב לא מנחש: הוא עושה בדיוק מה שכתובThe computer never guesses: it does exactly what's written
- Java רצה בשרתים, ב-Android, בבנקים, במערכות נתונים ובמשחקיםJava runs servers, Android, banks, data systems and games
- ה-מהדר בודק את הקוד לפני שהוא רץ, ותופס הרבה טעויות מוקדםThe compiler checks the code before it runs, and catches many mistakes early
- שני שלבים:
javac Main.javaמקמפל,java MainמריץTwo steps:javac Main.javacompiles,java Mainruns - ה-מהדר יוצר bytecode בקובץ .class, וה-JVM מריצה אותוThe compiler makes bytecode in a .class file, and the JVM runs it
- מתקינים JDK 21 (LTS), למשל Eclipse Temurin מ-adoptium.netInstall JDK 21 (LTS), for example Eclipse Temurin from adoptium.net
- בודקים בטרמינל:
java --versionוגםjavac --versionCheck in the terminal:java --versionand alsojavac --version - IntelliJ IDEA Community היא סביבת פיתוח חינמית: עורך, הרצה ודיבוג במקום אחדIntelliJ IDEA Community is a free IDE: editor, running and debugging in one place