ICT - Programming (JAVA) : Quarter 1 - Module 4: Applying Basics of Java Language
ICT - Programming (JAVA) : Quarter 1 - Module 4: Applying Basics of Java Language
ICT - Programming
(JAVA)
Quarter 1 – Module 4:
Applying Basics of Java
Language
Government Proper
NOT FOR SALE
ICT - Grade 10
Quarter 1 - Module 4
First Edition, 2020
Republic Act 8293, section 176 states that: No copyright shall subsist in any work
of the Government of the Philippines. However, prior approval of the government agency or
office wherein the work is created shall be necessary for exploitation of such work for profit.
Such agency or office may, among other things, impose as a condition the payment of
royalties.
Borrowed materials (i.e., songs, stories, poems, pictures, photos, brand names,
trademarks, etc.) included in this module are owned by their respective copyright holders.
Every effort has been exerted to locate and seek permission to use these materials from
their respective copyright owners. The publisher and authors do not represent nor claim
ownership over them.
5
Published by the Department of Education
Telefax: ___________________________
ii
10
ICT - Programming
(JAVA)
Applying Basics of Java
Language
Java Technology and Java Programs
Quarter 1 – Module 4:
Creating Executable Java Applications
Working with Java Data Types
Government Prop
NOT FOR SAL
iii
Introductory Message
For the facilitator:
This learning resource hopes to engage the learners into guided and
independent learning activities at their own pace and time. Furthermore,
this also aims to help learners acquire the needed 21st century skills while
taking into consideration their needs and circumstances.
This module was designed to provide you with fun and meaningful
opportunities for guided and independent learning at your own pace and
time. You will be enabled to process the contents of the learning resource
while being an active learner.
iv
This module has the following parts and corresponding icons:
Let Us Learn! In this portion, objective of the new lesson will be introduced.
Let Us Try! This will give you an idea of the skills or competencies you
are expected to learn in the module through pre-test.
Let Us Practice This section provides an activity which will help you transfer
More your new knowledge or skill into real life situations or concerns.
Let Us Enhance In this portion, another activity will be given to you to enrich
your knowledge or skill of the lesson learned.
v
Let Us Learn!
Welcome!
To begin with, let us first find out the competency and lesson
objectives that you will master as you finish this module.
Lesson objectives: At the end of this module, you are expected to:
describe the different phases of a java
program(TLE_ICTJAVA1 1-12PCO-Ij-24);
identify the basic parts of a java program;
Develop a simple valid java application using the concepts
learned
vi
Let Us Try!
Now that you have an idea about the enabling knowledge
and skills that you will develop and master, take the first challenge in this
module, the “Pretest”. Try to diagnose or assess what you already know
about Java Technology and Java Programming by answering this
Pretest.
Direction: Read each questions carefully and select the letter that
corresponds to the correct answer. Write your answers on your activity
notebook or any separate sheet and mark “Pretest 1.1” at the top before
answering.
a. Bjarne Stroustrup
b. Guido van Rossum
1. Initiated the JAVA
c. James Gosling
Programming language
d. David Cuartielles
a. 1990
3. Java was initiated in the b. 1995
year; c. 1900
d. 1991
a. Main method
5. It is a method that displays
b. System.out.print
a line of text in the
c. System.out.println
command window.
d. b and c
vii
viii