Java Basics: idk if its right though tbh Flashcards
How is Java stored?
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
What is a compiler?
It translates input/source code and translates it into executable form. During this, it also covers any syntax errors that violate the language.
What are executable files and is Java one?
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.
What is JVM?
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)
What does the order look like?
Text editor to source file to Java compiler to byte code file to JVM
Is Java Portable? Can it be written on one computer and run on a wide variety?
Yes, highly portable when compiled to platforms like Windows, Unix, Mac.
Just needs to have JVM
And JDK is?
Software used to create Java programs: Java Development Kit
What are procedures?
It’s a set of programming language statements that perform a task by passing it along. It can operate on global programs.
How is Java object-oriented?
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.
Who created Java?
Oracle now Sun microsystems