IntroToAdvancedProgramming_2025
IntroToAdvancedProgramming_2025
o Hiểu rõ và vận dụng các kiến thức về lập trình giao diện
để xây dựng các ứng dụng có tính thực tiễn cao.
◼ Attendance: 10%
◼ Exercise weekly: 10% (Lab)
◼ Midterm exam: 30% (Lab)
◼ Final exam: 50% (Lab)
8. Dynamic → Java được thiết kế như một ngôn ngữ động để đáp
17/02/2025 12
Khoa CNTT – ĐH Nông Lâm TP. HCM 01/2016 12/48
JVM Tasks
◼ The JVM performs three main tasks:
– Loads code – Performed by the class loader.
• Loads all classes necessary for the execution of a
program
• Avoids execution of the program whose bytecode has
been changed illegally.
– Verifies code – Performed by the bytecode verifier.
• The code adheres to the JVM specification.
• The code does not violate system integrity.
• The code causes no operand stack overflows or
underflows
• The parameter types for all operational code are correct.
• No illegal data conversions have occurred.
– Executes code – Performed by the runtime interpreter.
Khoa CNTT – Trường ĐH Nông Lâm TP. HCM
Java Technology Runtime Environment
Output
Welcome.java
// Java packages
import java.awt.Graphics;
import java.applet.Applet;
// draw a String
g.drawString("Welcome to Java programming!", 25, 25);
}
}
Welcome.html:
<html>
<applet code = "Welcome.class" width = "300" height = "45">
</applet>
</html>