Java Basics: idk if its right though tbh Flashcards

1
Q

How is Java stored?

A

It’s typed into the computer and saved to a file. It’s processed through a programmer called a text editor. The statements written by the programmer are called source code and it’s saved on a file called source file (it ends in .java) extension

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

What is a compiler?

A

It translates input/source code and translates it into executable form. During this, it also covers any syntax errors that violate the language.

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

What are executable files and is Java one?

A

Compilers translate code directly into files that contain machine language instructions and are executed by the CPU.

Jave isn’t one, because it translates the Java file into a file of byte instructions.

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

What is JVM?

A

Since Java doesn’t have executable files because of byte code instructions it can’t be read by the CPU. INSTEAD, Java Virtual Machine executes it by using a program that reads Java byte code and executes as they are read. (microprocessor interpreter)

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

What does the order look like?

A

Text editor to source file to Java compiler to byte code file to JVM

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

Is Java Portable? Can it be written on one computer and run on a wide variety?

A

Yes, highly portable when compiled to platforms like Windows, Unix, Mac.

Just needs to have JVM

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

And JDK is?

A

Software used to create Java programs: Java Development Kit

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

What are procedures?

A

It’s a set of programming language statements that perform a task by passing it along. It can operate on global programs.

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

How is Java object-oriented?

A

It manipulates data by no creating procedures. The data in the object are called attributes. The procedures IN the object are called methods. Through methods it can hige data because of indirect access.

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

Who created Java?

A

Oracle now Sun microsystems

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