0% found this document useful (0 votes)
15 views4 pages

AZAZ MUZAHANAHIBAN JF 4 Vocab Dan Try It Solve It

Uploaded by

Rayhan Ramadan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

AZAZ MUZAHANAHIBAN JF 4 Vocab Dan Try It Solve It

Uploaded by

Rayhan Ramadan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

NAMA : AZAZ MUZAHANAHIBAN

NIM : 12409011010007
KELAS : 1-A
MATA KULIAH : Dasar-dasar Pemrograman
Dosen Pengampu : Dr. Imam Marzuki Shofi, M.T.

JF 4_1 VOCAB
VOCAB DEFINITION
A naming convention to eliminate spaces in a name, but to ease
Camel Case
readability with capitalization.
To change the different physical location onto which you will store and
Switch Workspace
save your files.
Stored inside a project, a mechanism for organizing Java classes into
Java Package
namespaces, or containers.
Java Main Method The method inside a class that runs when the class is compiled and ran.
A construct that is used as a blueprint to create objects. Also, a construct
Java Class
in which objects are created.
Open Perspective An option to choose a combination of views and editors.
Eclipse Edit and View Areas within the Java IDE that provide a way to navigate a hierarchy of
Areas information and allow modifications to elements.

JF 4_2 VOCAB
VOCAB DEFINITION
Packages A group of related Java classes.
Code Block Sections of code that are enclosed inside a set of curly braces. {}
First letter uppercase and the first letter of each internal word
Upper Camel Case
capitalized. Example: SavingsAccount
Constant A named value that does not change.
First letter lowercase and the first letter of each internal word
Lower Camel Case
capitalized. Example: studentFirstName
Driver Class A class that contains a main method.
A code statement in a Java class file that includes java code from another
Import Statement
package or class.
Programmer-created
A class that defines instances of objects to be used in another class.
Object Class
Code that is preceded by //. Comments are used to clarify programming
Java Comments
logic. Comments are ignored by the compiler.
A word that has a special function in the Java language, and cannot be
Java Keywords
used as names for classes, methods, or variables.
Java API The library of Java classes available to import into a programmer-created
class.
The outline of an object, including class variables, constructors, and
Object Class
methods.
Constructor A special kind of method that is a template for an object.
Values that are sent into a method or constructor to be used in a
Parameters
calculation or substituted with values from the class.
Values, such as numbers, characters, or booleans. References to objects,
Variables
such as a BankAccount object.
Keywords used to specify the accessibility of a class (or type) and its
Access modifiers
members. Ex: public, private, protected, default
A block of code inside a class that is used to change or access
Method
information about the class.

JF 4_3 VOCAB
VOCAB DEFINITION
Named primitive or object storage mechanisms defined in a program.
Variables
The assigned value may or may not (constants) change.
Symbols are used to do addition, subtraction, multiplication, division,
Arithmetic Operators
and modular arithmetic in math expressions and formulas.
The group of Java data types that do not use the keyword new when
Primitive Data Types declared or initialized. Primitive Data Types store the value in the same
place in memory as the variable name.
Byte The smallest java primitive type (1 byte) that can hold an integer value.
Long This data type (8 bytes) is the largest integer type.
Conventions The formatting and naming standards that most programmers follow.
Int This Java primitive data type (4 bytes) can hold integer values.
This Java primitive data type (8 bytes) is the largest primitive that can
Double
hold a decimal value.
Initialization When a variable is assigned a value for the first time.
This Java primitive data type (4 bytes) can be initialized with a decimal
Float
number preceding letter f. Example: float x = 3.5f;
Can be any number, text, or other information that represents a value;
Literal
used to initialize a primitive type
A Java statement when a variable is defined but not necessarily assigned
Declaration
a value. Example: int x;
This word describes the mathematical precedence that a variable has in
Order of Operations
a Java program.
A java primitive data type (2 bytes) that can hold single character values.
Char
Example: “a”, “#”, or “X”
Used to describe the block of code where a variable exists in a program.
Scope
A block of code is denoted by {}.
The process of explicitly modifying one data type to become a different
Type Casting
data type.
A concept where a number is always rounded down to the nearest
Truncation
integer.
The equals sign “=” used in a Java statement to assign a value to a
Assignment Operator
variable.
The process of modifying one data type to become a different data type,
Type Conversion
this may be implicit or explicit.
A Java primitive data type (2 bytes) that holds integer numbers within a
Short
shorter range than an int.
Boolean A one-bit java primitive type that can hold the value true or false.

JF 4_4 VOCAB
VOCAB DEFINITION
Concatenation Joining multiple String objects together.
Specific characters that are preceded by a \ character. When evaluated,
Escape Sequences the special character is evaluated as a special function, such as tabs,
newlines, etc.
Instantiate Assigning a value to a String object reference.
A data type that references the location in memory where an object is
Object Reference
stored rather than a single, specific value.
String Methods Code available in the Java API to manipulate or return strings.
String Object An Object type that stores sentences, words, or multiple characters.

JF 4_4 PRACTICE
1. Write three different ways to declare and instantiate a String object called “myString” and containing
“abc”.
- Literal: String myString = "abc";
- New: String myString = new String("abc");
- String Concatenation: String myString = new String("abc");

2. Given the three String objects below, what will each of the following return?
String s1 =“ABC”;
String s2 = new String(“DEF”);
String s3 = “AB” + “C”;
a. s1.compareTo(s2); - NEGATIVE INTEGER (-3)
b. s2.equals(s3); - false
c. s3 == s1; - true
d. s2.compareTo(s3); - POSITIVE INTEGER (3)
e. s3.equals(s1); - true
3. Declare and instantiate two separate String objects, and then concatenate them together and assign
them to a third arbitrary String object.

String firstString = "Hello, ";

String secondString = "world!";

String concatenatedString = firstString + secondString;

System.out.println(concatenatedString); // Output: Hello, world!

You might also like