Section 1

Preview this deck

Encapsulation

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 1, 2020

Cards (31)

Section 1

(31 cards)

Encapsulation

Front

information hiding, hides complexities of a class

Back

Class

Front

new type used to declare variables and create objects. Example: if you have class of employee, that is a type. So Sarah McDougal would be type employee ie employee(Sarah McDougal); this does NOT have a main method and is not executable. IE 3.1

Back

Method

Front

verb, behavior, function, ie pay();

Back

Object

Front

classes create these via reusable code component, ie date/time

Back

Class Files

Front

convert to machine language

Back

True

Front

You can write your own constructor methods; but when you don't write a constructor method for a class object, Java writes one for you.

Back

private access

Front

Assigning ____ to a field means that no other classes can access the field's values.

Back

High Level Programming

Front

Java, C, etc more like English but not readable by computer, assembly and Machine

Back

this.X

Front

we're refering to THIS instance, not the instance variable, we're referring to the RED corvet, not corvets in general

Back

True

Front

A method's identifier must be more than one word, must have embedded spaces, and can be a Java keyword.

Back

`constructor

Front

The name of the ____ is always the same as the name of the class whose objects it constructs.

Back

main

Front

The ____ method executes first in an application, regardless of where you physically place it within its class.

Back

involke/call??

Front

To execute a method, you ____ it from another method.

Back

true

Front

You can identify a class that is an application because it contains a public static void main() method.

Back

main

Front

When an application is run, the method that must be executed first must be named ____.

Back

Print VS PrintLn

Front

PrintLN goes to next line, print does not

Back

Java Editions

Front

Micro (ie MP3 player), Standard Edition (SE), Enterprise Edition (EE)

Back

Instances

Front

an individual of a type RED corvet, a BLUE corvet,

Back

return statement

Front

A(n) ____ causes a value to be sent from a called method back to the calling method.

Back

System.out.println"Welcome to Java Programming!");

Front

Will print out "Welcome to Java Programming!" to counsel

Back

Types of Information

Front

int, float, double, string, etc

Back

constructor

Front

A(n) ____ method is a method that creates and initializes class objects.

Back

get

Front

Method names that begin with ____ and set are very typical.

Back

identififer??

Front

After an object has been instantiated, its methods can be accessed using the object's _____, a dot, and a method call.

Back

Interface

Front

collection of related methods used to tell a class of what to do

Back

Function

Front

fire(), hire(), does what is inside this

Back

return type

Front

A(n) ____ describes the type of data the method sends back to its calling method.

Back

Method

Front

A(n) ____ is a program module that contains a series of statements that carry out a task.

Back

Method Call

Front

driving a car sends a message to the separate car parts

Back

Boolean fields are set to true

Front

Which of the following is NOT an initial value assigned to an object's data field by a default constructor?

Back

arguments

Front

Data items you use in a call to a method are called ____.

Back