Section 1

Preview this deck

Object is the _____________ of every Java object

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (54)

Section 1

(50 cards)

Object is the _____________ of every Java object

Front

superclass

Back

double

Front

Bit depth: 64 Default value: 0.0 Wrapper class: Double signed floating-point

Back

Pillars of OOP

Front

Encapsulation, Inheritance, Polymorphism, Abstraction

Back

Where do primitive types live?

Front

Live on the stack

Back

JVM

Front

Java Virtual Machine - translates compiled java code into instructions your operating system can understand

Back

What does static mean?

Front

Belongs to the class, NOT any particular instance of the class

Back

autoboxing

Front

the automatic conversion of a primitive datatype into its wrapper class

Back

Behavior

Front

functions belonging to the object/method

Back

JDK

Front

Java Development Kit - the kit for developing in java, JRE, and compiler

Back

What is the "extends" keyword used for?

Front

Used to describe the direct subclass of a superclass. ex: vehicle extends machine

Back

reference-type

Front

any object of the declared type

Back

JRE

Front

Java Runtime Environment - includes the JVM and the libraries needed to run java programs

Back

what is the heap for?

Front

Dynamic memory allocation

Back

Where do reference variables live?

Front

Live on the heap

Back

What does it mean to instantiate?

Front

To instantiate is to create an object

Back

Package

Front

Namespace - organizes code into logical groups

Back

Protected access modifier

Front

Only accessible via inheritance (methods and variables only) or within same package

Back

Char

Front

Bit depth: 16 (unicode) Default value: null character Wrapper class: Character

Back

When accessing info in java, where is it stored?

Front

in the stack and the heap

Back

What do .java source files get compiled into?

Front

.class file

Back

autounboxing

Front

the automatic conversion of a wrapper class into a primitive datatype

Back

An object is a(n) ________________ of a class

Front

instance

Back

Encapsulation

Front

Concealing the internal state of an object -> requires interaction with internal state to occur only through methods (private instance variables with setter and getter methods)

Back

float

Front

Bit depth: 32 Default value: 0.0 Wrapper class: Float signed floating-point

Back

Abstraction

Front

-Concealing implementation details and exposing only the necessary functionality -What the object does, not how it does it

Back

State

Front

The properties/fields

Back

short

Front

Bit depthL 16 Default value: 0 Wrapper class: Short signed integer

Back

widening

Front

Converting to a larger numeric type

Back

long

Front

Bit depth: 64 Default value: 0 Wrapper class: Long signed integer

Back

Polymorphism

Front

Referring to a program element in multiple ways

Back

int

Front

Bit depth: 32 Default value: 0 Wrapper class: Integer signed integer

Back

What is a class?

Front

A blueprint/template

Back

narrowing

Front

converting to a smaller numeric type

Back

Differences between a .java and a .class file

Front

-A .java file is what we write and can read, a .class file is read by the machine -A .java file is our source code -A .class file is made by javac, which compiles it -.java runs the program

Back

What is the stack used for?

Front

local variables and method calls

Back

What does it mean that java is object-oriented?

Front

Our unit of programmability is the object

Back

How many direct supertypes can every type have?

Front

One

Back

___________ is within ____________ which is within _____________

Front

JVM is within JRE which is within JDK

Back

What does it mean that java is strongly-typed?

Front

Must declare variable with datatypes, can't change datatype

Back

boolean

Front

Bit depth: varies Default value: false Wrapper class: Boolean

Back

Polymorphism for datatypes

Front

A class can be treated as any of its supertypes (multiple "is-a" relationships)

Back

Access modifiers

Front

How we control access to program elements

Back

What is a primitive datatype?

Front

Just a value

Back

byte

Front

Bit depth: 8 Default value: 0 Wrapper class: Byte signed integer

Back

Public access modifier

Front

Any class and any package can access (fine for classes, methods, and variables)

Back

What is an object?

Front

A software entity with states and behavior

Back

Private access modifier

Front

Only within same class

Back

Polymorphism for methods

Front

-Can be overwritten in subclasses -Can be overloaded in the subclasses

Back

Inheritance

Front

Sharing of common states and behaviors between subclasses and superclasses

Back

Default access modifier

Front

Within same package

Back

Section 2

(4 cards)

POJO

Front

plain old java object

Back

What is the "new" keyword used for?

Front

used to invoke constructor to instantiate an object from a class

Back

class member

Front

Program elements which are associated with a class

Back

examples of class members

Front

instance variables, instance methods, static variables, static methods

Back