OOP tALAGA

0.0(0)
studied byStudied by 5 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/83

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

84 Terms

1
New cards
Java Netbeans IDE Function
Prepares the environment for developing java applications
2
New cards
IDE Full form
Integrated Development Environment
3
New cards
Java Netbeans
Platform to write Java code and applications (Version 7 ngayon)
4
New cards
What does java develop?
Desktop applications, client-server applications, mobile phone applications, games
5
New cards
Java major advantage
Platform independent
6
New cards
Java’s own runtime environment
Java Virtual Machine (JVM)
7
New cards
Current owner of java
Sun Microsystems
8
New cards
What to download?
Java Virtual Machine (JVM) and Java Development Kit (JDK)
9
New cards
Java code to write & extension
Source code wiith .java extension
10
New cards
What compiled the source code?
Another program called Javac that turns it into a Java byte code with .class extension (there should be no present errors)
11
New cards
File that Java Virtual Machine runs
Class file
12
New cards
Java Comments
Grayed out areas with forward slashes (// for single line comments; /* */ for multiline comments and asterisks that the compiler ignores
13
New cards
Javadoc comments
Starts with /** ends with */ to document the code (converted to HTML)
14
New cards
Java is case sensitive
True
15
New cards
Java code instructions end with a
Semicolon (;)
16
New cards
public class MyFirstProgram { }
Class segment notes the starting and ending of a java class segment code
17
New cards
Public static void main(String[] args){ }
Method
18
New cards
Public in “public static void main(String[] args){
the code can be accessed outside the class without creating new objects
19
New cards
Void in “public static void main(String[] args){
This part of the code does not return any value
20
New cards
Main in “public static void main(String[] args){
Denotes starting point of the java program
21
New cards
IntelliSense
NetBeans tries to display a list of available options after “.”
22
New cards
.Jar file (java archive) function
Cleans and builds your project with all necessary files for export if the program needs to be shared; will be put in a dist folder
23
New cards
Data
can be text, numbers, pointers, objects or some specified memory location
24
New cards
How is data accessed
25
New cards
Concatenation
Joining together direct text and a variable
26
New cards
You cannot start with a number for a variable name
True
27
New cards
You cannot have the same variable name with a keyword
True
28
New cards
Variable names can have a space
False
29
New cards
Variable names are not case sensitive
False
30
New cards
Java minimum and maximum value for numbers
+-2147483647 (use double to get a bigger/smaller number)
31
New cards
Operator Precedence
Order in which arithmetic’s operations are executed
32
New cards
Priority in operators
Multiplication & Division > addition and subtraction
33
New cards
Double quotes
String variable
34
New cards
Single quotes
char variable
35
New cards
Import java.util.Scanner; function
Tells java you want to use the scanner class in the util package of java library
36
New cards
Scanner in Import java.util.Scanner;
Class that handles inputs
37
New cards
Util in Import java.util.Scanner;
utility package of the java library where scanner is stored
38
New cards
Scanner variable
Scanner user_input = new Scanner (System.in);
39
New cards
New in Scanner user_input = new Scanner (System.in);
Creates the new objects
40
New cards
System.in in Scanner user_input = new Scanner (System.in);
Specifies for system input
41
New cards
User_input in Scanner user_input = new Scanner (System.in);
TThe variable that is called to call the input methods
42
New cards
Next method in Scanner user_input = new Scanner (System.in);
Gets the next string of text or int of number that a user types
43
New cards
Println
Cursor moves to a new line after the output
44
New cards
Print
Cursor stays on the same line
45
New cards
If statement format
if(Condition {//codes to be executed if true}
46
New cards
Comparison Operators
> Greater than, < Less than, >= greater or equal to,
47
New cards
Logical Operators
&& AND, || OR, == HAS A VALUE OF, ! NOT
48
New cards
If else statement structure
if(condition){code to be executed} else {code to be executed}
49
New cards
Nested IF statement
IF statement inside another IF statement
50
New cards
Boolean values
One with two choices: True or false, yes or no, 1 or 0
51
New cards
Switch statement definition
Selection statement; value of the expression is
52
New cards
compared with the values of each case; selecting one of many code blocks to be executed
53
New cards
Switch statement structure
switch(your test variable) { case Testing value: statement to be executed; break; default: statement to output if no matching case found; }
54
New cards
Looping/iteration
Repeat execution of statements a number of times; the same statement is being repeated many time over and at some point has to stop
55
New cards
For loop structure
for(initial value; condition; increment/decrement { statements to be repeated if true }
56
New cards
Intial value in for loops
Sets at what number should the repeat process start
57
New cards
Condition in for loops
Repeat should occur only when this condition is true
58
New cards
Increment/decrement
Move the counter forward or backward
59
New cards
Do while loop
do { Statements to execute } while (condition to check); // execution occur before checking of the condition
60
New cards
While loop
executes statements if the condition is true; while(condition) {}
61
New cards
Array definition
list store of values of the same type with specifying type eof data
62
New cards
Index starts at value…
0
63
New cards
Array structure
int[] myNums; [nextline ito] new int[5] to also indicate the size (all index are 0 unless stated)
64
New cards
Multidimensional arrays
arrays of multiple rows and columns (table) // 2 indices // int [][] myNums = new int[5][4]
65
New cards
.length
property of an array that returns the actual length of the array
66
New cards
Object-oriented programming
deals about creating objects that contain both data and functions
67
New cards
Oak
Java’s previous name
68
New cards
1995 by Oracle
Java created
69
New cards
Java requires:
main function that accepts an array of arguments enclosed in a class
70
New cards
Char description and size
nonprintable characters 16bits
71
New cards
Boolean description and size
True or false1 bit
72
New cards
Int description and size
whole numbers 32 bits
73
New cards
Short description and size
smaller than int 16 bits
74
New cards
Byte description and size
network packets 8 bits
75
New cards
Long description and size
larger than int 64 bits
76
New cards
Float description and size
numbers with floating points 32 bits
77
New cards
Double description and size
larger numbers with floating points
78
New cards
Format for declaring variables
79
New cards
Expression/statement function
changes the value of the variable being used in the condition
80
New cards
Continue in loops
the continue statement skips and moves to the end of the iteration
81
New cards
For-each traversal definition
for-each loop cycles through an object collection where type specifies array type and itvar is the iterator variable (accepts elements from beginning to end on eat a time)
82
New cards
For-each traversal format
for(type itvar:collection) statement block
83
New cards
Xvals in for(int xvals []:nums)
one-dimensional array of integers
84
New cards
Arraycopy
method available in the system class that can be used to copy data from one array to another