CMSC131 Midterm #1 Java Terminology

0.0(0)
studied byStudied by 4 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

23 Terms

1
New cards

Java Compiler

Converts source code into machine code file, and runs everything at once 

<p>Converts source code into machine code file, and runs everything at once&nbsp;</p>
2
New cards

Java Interpreter

Converts machine code when program is run, goes LINE by LINE to understand what each line does. Debuggers are based on interpreters 

<p>Converts machine code when program is run, goes LINE by LINE to understand what each line does. Debuggers are based on interpreters&nbsp;</p>
3
New cards

Interpreter vs Compiler

knowt flashcard image
4
New cards

Java Virtual Machine

loads up all bytecode from .class files and runs program

<p>loads up all bytecode from .class files and runs program</p>
5
New cards

Scanner Syntax

import java.util.Scanner;

6
New cards

High level languages

java, python

7
New cards

low level languages

assembly, c

8
New cards

primitive data

data type that canot be manipulated (int, double, float, long, short, byte, boolean, char)

primitiveType name = data;

9
New cards

object data

String, Scanner (notice all uppercase)

ObjectType name = new ObjectType();

10
New cards

pass by values

a mechanism to pass everything in java

11
New cards

static methods

with static methods, objects are NOT created

syntax: className.methodName(); or className.variableName();

12
New cards

non-static

with non-static methods, objects ARE created

syntax: object.methodName();

13
New cards

a<<b

shifts to the left by b positions, filling with 0’s

14
New cards

a>>b

shifts to the right by b positions, filling with the sign bit.

15
New cards

bytecode

code executed by the JVM

16
New cards

syntax error

an error in the code that violates the grammatical rules of the programming language.

17
New cards

runtime error

an error that occurs during the execution of a program, leading to unexpected behavior.

18
New cards

Math random syntax

Math.random*((max-min) +1) + min;

19
New cards

Method overloading

when you have multiple methods of the same name but different parameters

20
New cards

Method overriding

Refers to inheritance, when same method has new implementation

21
New cards

Reference copy

Copy of object, both point to same object (same memory)

22
New cards

tail recursion

answer is returned at very last call

23
New cards

non tail recursion

answer is built up with each recursive call