ITB 102-(Computer Programming 1)

studied byStudied by 11 people
4.0(1)
Get a hint
Hint

Java

1 / 35

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

36 Terms

1

Java

  • is a popular programming language created in 1995.

  • it is owned by Oracle, and more than 3 bilion devices run using this language.

New cards
2

Java Syntax

the name of the java file must be match the class name. When saving the file, saveit using the class name and add โ€œ.javaโ€ at the end.

New cards
3

Main Method

is required and you will see it in every Java Programming. Any code inside this will be executed.

New cards
4

System.out.print()

inside the main() method, we can use this method to print a line if text to the screen

New cards
5

Double Quotes

when your working with a text, it must be wrapped around with โ€œ โ€œ.

New cards
6

Print() Method

this also a print() method which is similar to println(). the only difference is that it does not insert a new line at the end of the output

New cards
7

Print Numbers

you can also use println() method to print numbers. However, unlike text, we don't put it inside โ€œ โ€œ.

New cards
8

Java Variable

string, int, float, char, boolean

New cards
9

String

store texts

New cards
10

int

store integers

New cards
11

float()

stores floating point numbers

New cards
12

char()

store a single character

New cards
13

boolean()

stores a value with two states: true or false

New cards
14

Identifiers

all java Variable must be identified with unique names. These unique names are called ____.

New cards
15

Primitive and Non-Primitive Data Type

Data Types

New cards
16

byte, short, int, long, float, double, boolean, and char.

Variables under Primitive Data Type

New cards
17

String, Array, Classes

Variables under Non-Primitive Data Type

New cards
18
  • Yes / No

  • On / Off

  • True / False

Boolean Type

New cards
19

Non-Primitive Data Type

are called reference type because they refer to objects.

New cards
20

Addition, Subtraction, Multiplication, Division, Modulus, Increment, Decrement

Arithmetic Operators

New cards
21

+

Operation for Addition

New cards
22

*

Operation for Multiplication

New cards
23

/

Operation for Division

New cards
24

%

Operation for Modulus

New cards
25

++

Operation for Increment

New cards
26

- -

Operation for Decrement

New cards
27

Single-Line Comment

starts with the forward dash ( // )

New cards
28

Multiple - Line Comments

starts with ( /* ) and ends with ( /* )

New cards
29

Java Operators

are used to perform operation on variables and values

New cards
30

Arithmetic Operators

Are use to perform common mathematical equations

New cards
31

Assignment Operators

are use to assign values to a variables

New cards
32

Comparison Operation

are used to compare values ( or variables )

New cards
33

Logical Operators

are use to determine the logic between variables and value

New cards
34

Java String

a variable contains a collection of characters surrounded by double quotes.

New cards
35

String Length

in java, is actually an object which contains method that can perform certain operations onnstrings

New cards
36

More String Method

there are many string methods available for example : toUpper() and toLower()

New cards

Explore top notes

note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 26 people
... ago
5.0(2)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 25 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 27 people
... ago
5.0(2)
note Note
studied byStudied by 53 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (35)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (46)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (49)
studied byStudied by 50 people
... ago
5.0(1)
flashcards Flashcard (233)
studied byStudied by 84 people
... ago
5.0(1)
flashcards Flashcard (45)
studied byStudied by 10 people
... ago
5.0(1)
flashcards Flashcard (160)
studied byStudied by 21 people
... ago
4.5(2)
flashcards Flashcard (56)
studied byStudied by 3834 people
... ago
4.4(55)
robot