Java Flashcards

1
Q

Servlets

A

Servlets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

JSP

A

JSP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

JRE

A

JRE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

JDK

A

JDK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

public static void

A

public means the method can be called fromanywhere

static means you don’t have to create an instance of the class

void means that you are not returning anything from the class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Memory (Heap vs Stack)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

2 Types of Variables in Java

A

Primitives: Stored in the fastest possible memory, but can only inlcude numeric values such as: integers and floating decimals. Single characters not completed strings, and Boolean values. Thy can be accessed very quickly.

Complex Objects: Everything else in your Java application is going to be represented as a complex object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Primitive numeric data types

A

double

float

long

int

short

byte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Encapsulation

A

Encapsulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Inheritance

A

Inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Polymorphism

A

Polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Interpreted Language

A

Java is an interpreted language meaning that the application is compiled to a format that’s interpreted at runtime rather than being run as machine code directly. That is what makes the applications in java portable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Runtime Architecture

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Function / Method

A

Is a set of code that’s wrapped up and then given a name, so that it can be called easily from other parts of the application. In Java however, we use the term method because it’s a function that’s a member of a class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Acccess Modifier

A

Public means the method is available to the entire application or at least to any part of the application that can see the class itself. So if the class is public and themethod is public, then it can be called from anywhere.

Private is the opposite. The method is only available to code within this class.

Protected has to do with inheritance. A protected method is available to the current class and to any of its sub classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Method Signature

A

is the unique combination of keywords and arguments that the method receives.