Java Basics Flashcards
What is BIT an acronym for?
Binary Digit
How many bits in a byte?
8
How many possible values are in a byte?
256, or 2^8
What two types of programs translate source code to object code?
Interpreters and Compilers
Which type of translator program translates and executes line by line?
Interpreter
Is a compiler able to run source code?
NO
Which runs faster, interpreter or compiler?
Compiled programs
What two programming paradigms exist?
Procedural and Object Oriented
What is task decomposition?
Looking at an overall process and breaking down into smaller (atomic) tasks
What is another word for task decomposition?
Task Analyses
What did task analyses lead to?
Creation of algorithms
What two things do algorithms consist of?
1) What needs to be done
2) What order
What are the three control structures for any program?
1) Sequence
2) Selection
3) Repetition
What two things does an object have?
1) Properties (variables)
2) Methods
What is the Java API?
Application Programmer Interface, holds libraries of objects.
What is special about Java source code?
It can be run on any machine without changing it.
What is the Java compiler program called?
javac.exe
What is Java source code compiled to?
Byte code
Is Byte code able to run on any processor?
No
What is the JVM or JRE?
Java Virtual Machine or Java Runtime Environment, interpreter program specific to each processor.