Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b087ac

Browse files
added 13 questions in level 2
1 parent a99a9d7 commit 4b087ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1133
-0
lines changed

‎Level-02/Task-01/.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Level-02/Task-01/.idea/lab-03.iml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Level-02/Task-01/.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Level-02/Task-01/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Level-02/Task-01/Main.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//Exercise 1: Identifying Java Keywords
2+
//Task:
3+
//Identify all the keywords used in the following Java program and explain the purpose of each keyword.
4+
5+
public class Main {
6+
public static void main(String[] args) {
7+
int number = 5;
8+
if (number > 3) {
9+
System.out.println("The number is greater than 3");
10+
}
11+
}
12+
}
13+
14+
//------- ANSWER HERE ---------
15+
// public is a keyword that means the class or method can be accessed from anywhere in the program.
16+
// class is a keyword that defines a blueprint for creating objects. Multiple objects can be created from a class.
17+
// static is a keyword that makes a method or variable belong to the class itself, so it
18+
// can be used without creating an object of the class.
19+
// void is a keyword that indicates the method does not return any value.
20+
// int is a keyword used to define a variable that holds whole numbers (integers).
21+
// if is a keyword used to check a condition, and if it's true, the code inside the {} will be executed.
22+
23+
24+
25+
26+
27+
28+

‎Level-02/Task-01/out/production/lab-03/.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Level-02/Task-01/out/production/lab-03/.idea/lab-03.iml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Level-02/Task-01/out/production/lab-03/.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Level-02/Task-01/out/production/lab-03/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
598 Bytes
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /