Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

ALBUKHARY INTERNATIONAL UNIVERSITY

SCHOOL OF COMPUTING AND INFORMATICS

Course details
SCHOOL SCHOOL OF COMPUTING AND
INFORMATICS
COURSE NAME OBJECT-ORIENTED PROGRAMMING
COURSE CODE/ ASSIGNMENT CCC 1223 / ASSIGNMENT 1
LECTURER ASSOCIATE PROFESSOR DR BASHEER
RISKHAN
SEMESTER & YEAR SEMESTER 3, YEAR 1, 2023/2024 (Post on
11/12/2023)
SUBMISSION SOFTCOPY WILL BE SUBMITTED TO
MOODLE, AND HARD COPY WILL BE
SUBMITTED TO MY OFFICE BEFORE
01/12/2023
CLO CLO1

Student Name Esmael Aliyi Uta


Student ID AIU22102300
1. Indicate any FIVE (5) tools of JDK.
 Here are five essential tools of the JDK:
1. javac: Java Compiler - reads class and interface definitions and compiles them into class
files.
2. java: launches the Java application.
3. jar: Java Archive - packages Java applets or applications into a single archive.
4. javadoc: Java Documentation Generator - generates HTML pages of API documentation
from Java source files.
5. jdb: Java Debugger - a command-line debugging tool used to find and fix bugs in Java
applications.
2. What do you understand about the concept of “WORA”?
 WORA stands for "Write Once, Run Anywhere." It is a key concept in Java that
emphasizes the portability of Java code (Platform independence). The idea is that once
you write and compile Java code, it can run on any device or platform with a compatible
Java Virtual Machine (JVM).
3. Write any two types of comment statements with an example.
 1. Single-line comments: These comments start with // and continue until the end
of the line. For example: // This is single line comment section.
 2. Multi-line comments: These comments start with /* and end with */.
For example:
/* Multi-line comment
This comment can span
multiple lines */
4. Indicate any three (3) DOS command and their meaning.
1. dir: Displays a list of files and subdirectories in a directory.
2. cd: Changes the current working directory.
3. mkdir: Used to make new directory.
5. Identify any five features of java programming language.
1. Object-oriented: Java is an object-oriented programming language, which means that
everything in Java is an object.
2. Platform-independent: Java code can be compiled into bytecode, which can be executed
on any platform that has a JVM installed.
3. Simple and easy to learn: Java has a simple syntax and is easy to learn.
4. Secure: Java is designed to be secure and provides features such as automatic memory
management and garbage collection.
5. Multithreaded: Java supports multithreading, which allows multiple threads to run
concurrently within a single program.
6. In the Java program, the class name is “HelloWorld” and the object reference name is ob1.
Write the statement of object creation.
 HelloWorld ob1 = new HelloWorld();
7. Indicate any five primitive datatype in java?
1. int: Integer data type for whole numbers.
2. float: Floating-point data type for single-precision decimal numbers.
3. char: Character data type for storing a single character.
4. boolean: Boolean data type for representing true or false values.
5. double: Floating-point data type for double-precision decimal numbers.
8. Indicate any three types of literals.
1. Integer Literals: Represented by integer values.
Example, int num = 5;.
2. Floating-Point Literals: Represented by decimal values,
Example, float x = 3.14f;.
3. Character Literals: Represented by a single character in single quotes,
Example, char Letter = 'A';.

You might also like