Lec 2: Intro to Java Flashcards
What are the 3 lvs of programming languages?
Machine language
Assembly Language
High-level language
What level of language describes binary instructions?
a) Machine language
b) Assembly language
c) High level language
Machine
What language was developed to make programming easier than machine code?
Assembly
What language is this from?
ADDF3 R1, R2, R3
Assembly
What level of programming language is english-like and easy to learn/understand
High level
What level of programming language is this from?
area = 5 * 5 * 3.1415
High level
What is the name of a program written in high level called?
Source code or source program
What is the name of the program that is used to convert assembly language to machine code?
Assembler
True or False: A source program must be translated into machine code for execution
True
What is the use of an interpreter
Translation from high level to machine code
What is the name of the java compiler
javac
What is the name of the interpreter for java
java
True or false:
Java is a strongly typed language
true
True or false:
Every Java program must have at least one class
true
True or false:
In order to run a class, the class must contain a method named main
true
From where is the program executed?
From the main method
What are the uses of identifiers?
identify the elements such as classes, methods, and vars
True or false:
An identifier must start with a letter, an underscore, or a dollar sign
True
True or false:
An identifier cannot be a reserved word
True
_ is a software that interprets java bytecode
java virtual machine
java compiler that translate java source code into _
java bytecode by javac cmd
What is the java virtual machine or JVM?
interprets java bytecode by running the java command
What is the Java interpreter
The Java Virtual Machine, by the java command, reads the already compiled java bytecode to execute
File formats that the javac compiler takes in to compile
.java