Sei sulla pagina 1di 2

Detailed Lesson Plan in ICT – Computer Programming Java NCIII

Learning Competency: Apply basics of Java languages


Date: Time: Teacher: RHOMAR G. GAMBOA
TVL G11, ICT- COMPUTER PROGRAMMING JAVA Code: TLE_ICTJAVA11-12POAD-IIf-i-29
I. Objectives:
a. install java application
b. create a java program using text editor and console environment
c. differentiate between syntax and run-time errors.
II. Subject Matter:
Getting to know Java Environment
Lesson
Reference: Java tutorials
Materials: Computer, JDK installer, JCreator, Projector, Laptop

III. Procedure
Teacher’s Activity Student’s Activity
Priming
 Good Morning, class.  Good morning Sir, Good morning classmates.
 Before you take your seat, please pick up pieces of  (the students will pick up the scattered papers)
candy wrappers, crumpled papers.
 Arrange your chairs.  (the students will arrange their chairs)
 Do you have seat plan?  Yes Sir.
 Please take your seat.  Thank you Sir.
 Who is absent today?  None Sir
 Secretary, please take note in the attendance sheet.  Yes Sir
 Let’s have a recap of what we discussed yesterday,  (volunteer students) we tackled about the different
Anyone who would like to summarized what we had computer programming languages, we also had an
discussed yesterday? analogy about the operating system, application
 Very good system and user to understand how they
 Today we will discuss the features of java languages communicate with one another
 Install java application
 And create your first java program
 Are you ready to listen?  Yes Sir.

Lesson Proper Proposed answers:


A. Presentation of the Lesson
 Yesterday we learned that there are two categories of (The students will listen attentively and take down during the
programming languages the low level and high level, teacher’s presentation)
we also learned that there are different high level
languages, such as c, c#, c++ and java. I remember
someone asked why we will study java instead of
other high level programming languages. So to
answer that we will start with the different features of
java languages.
 Can you read what is in our slide  (volunteer from student will read the content of slide
 Thank you, now 1 features is the java virtual machine 1)
now what does it mean? It is an imaginary machine  Features of java languages
that is implemented by emulating software on a real  1. The Java virtual machine
machine. The JVM provides the hardware platform  2.garbage collection
specifications to which you compile all Java  3. Code security
technology code. This specification enables the Java
software to be platform-independent because the
compilation is done for a generic machine known as
the JVM.
 Garbage collection thread is responsible for freeing
any memory that can be freed. This happens
automatically during the lifetime of the Java program.
 Code security is attained in Java through the
implementation of its Java Runtime Environment
(JRE). The JRE runs code compiled for a JVM and
performs class loading (through the class loader),
code verification (through the bytecode verifier) and
finally code execution.
 These features makes java popular and gives more
compatibility with different operating system unlike the
other programming languages.
B. Demonstration Proper

 Let’s now proceed with the installation of java  (The students will observe and take down note the
application. procedure during the teacher’s demo)
 First you need to download J2SE 1.5.0 or higher,
after the download ends, start the installation process
– just double-click on the file that you’ve downloaded,
and this will install J2SDK on your disk. just keep
pressing the buttons Next, Install and Finish on the
windows that will be popping up on your screen. In
several minutes the installation of Java on your
computer will be complete. In the next step of
installation, you need to define two system variables.
For example, in Windows click on the button Start,
and get to the Control Panel (it might be hidden
behind the menu Settings), and click on the icon
System. Select there a tab Advanced, and click on
the button Environment Variables. Set the classpath
then Now the installation of J2SDK is complete! 3 volunteers will stand in front
 Now we are ready to create our first java program
 First is open any text editor
 Second open a command prompt
 Third write your source code in the text editor
 Fourth save your program filename: hello.java
 Fifth compile your program by typing javac hello.java
in command prompt
 Sixth if compile is completed run the program by typic
Students will follow the mechanics
hello and press enter
 Seventh it will show an output of hello world on the
screen.
C. Generalization:
 What are the syntax code to compile and run a  Students will answer javac filename extension
java program in a console environment?  In running the program type the filename

IV. Evaluation:
1. Observe and check the output of the  Students show their output
students
V. Assignment:
Practice creating your first java program
Remarks:
No. Of learners:______________________________
No. Of learners present:____________________________
No. Of learners within mastery level: ________________
No. Of learners needing remedial :___________________
Other Activities:
Prepared by:

RHOMAR G. GAMBOA

Potrebbero piacerti anche