Discuss, Learn and be Happy דיון בשאלות

help brightness_4 brightness_7 format_textdirection_r_to_l format_textdirection_l_to_r

איזה רכיב אחראי לייעל bytecode על קוד המכונה?

1
done
Explanation: JIT optimizes bytecode to machine specific language code by compiling similar bytecodes at the same time. This reduces overall time taken for compilation of bytecode to machine specific language.
by
מיין לפי

איזה משפט נכון לגבי Java?

1
done
Explanation: Java is called ‘Platform Independent Language’ as it primarily works on the principle of ‘compile once, run everywhere’.
by
מיין לפי

איזה מהבאים הוא מזהה לא חוקי בשיטה main?

1
done
Explanation: main method cannot be private as it is invoked by external method. Other identifier are valid with main method.
by
מיין לפי
by Guy Biton
Guy Biton 0 נקודות · יותר מ-6 חודשים
מוניטין: 24
כל אחד מהם הוא מזהה חוקי בשיטת main
by
by Liron Miriam Shemen
Liron Miriam Shemen 0 נקודות · יותר מ-6 חודשים
מוניטין: 1
מה זה אומר מזהה חוקי?🙈
by
by Guy Biton
Guy Biton 0 נקודות · יותר מ-6 חודשים
מוניטין: 24
טעות שלי, private זו התשובה פה כי בכרגע שמגדירים את המטודה של main כprivate זה לא נותן להריץ אותה (כי כביכול משהו חיצוני לקלאס שבו היא כתובה מנסה לקרוא לה)
by

מהי הסיומת של קבצי קוד ג 'אווה?

1
done
Explanation: Java files have .java extension.
by
מיין לפי

מהי הסיומת של קבצי ג'אווה מקומפלים?

1
done
Explanation: The compiled java files have .class extension.
by
מיין לפי

כיצד ניתן לזהות אם יחידת הידור (compilation unit) היא מחלקה או ממשק מתוך קובץ class.?

1
done
Explanation: The Java source file contains a header that declares the type of class or interface, its visibility with respect to other classes, its name and any superclass it may extend, or interface it implements.
by
מיין לפי

מהו השימוש במתורגמן (interpreter)?

1
done
Explanation: Interpreters read high level language (interprets it) and execute the program. Interpreters are normally not passing through byte-code and jit compilation.
by
מיין לפי
by Gil Ari Agmon
Gil Ari Agmon 0 נקודות · יותר מ-6 חודשים
מוניטין: 1
לפי דעתי זה נכון לגבי interpreter של python, לא של Java. ב-Java אחרי שלב הקמפול לשפת bytecode שמתאימה ל-JVM שבמחשב, ה-interpreter שנמצא בתוך ה-JVM עובר שורה שורה וממיר את הקוד לשפת מכונה
by

איזו מהמחלקות הבאות משמשת לפעולת קלט ופלט בעת עבודה עם bytes?

1
done
Explanation: InputStream & OutputStream are designed for byte stream. Reader and writer are designed for character stream.
by
מיין לפי

איזה מהמחלקות הבאות משמשת לקריאת ולכתיבת bytes לקובץ?

1
done
by
מיין לפי

איזו שיטה של InputStream משמשת לקרוא ייצוג שלם של כמות הbytes שאפשר לקרוא מהקובץ?

1
done
by
מיין לפי