PreAPCS Exposure Java
Waht are the 3 steps of a Java program?
-Edit -Compile -Run
All bytecode files end with what suffix?
.class (also can be packaged as .jar)
All Java programs end with what suffix?
.java
What is an applet?
A Java program that is downloaded to a web browser
In the textbook, the JDK file name is jdk-7u3-windows-i586.ede. If you download the JDK today, you might notice the file name is a little different. What would this indicate?
A newer version of the JDK
What is an application?
A program that runs on a computer that a user can use
Which program is larger, a compiler or an interpreter?
An interpreter is generally larger and more complex because it must deal with the differences between each computer.
What is bytecode?
Bytecode is complied code that runs inside a virtual machine which interprets the code at runtime to run on a specific operating system.
If you were to compare the executing of a Java fille with the UN, how would "bytecode" fit in with the UN analogy?
Bytecode represents the common language. The Java compiler creates a common language, and then the Java Virtual Machine is responsible for making that common bytecode run on the different operating systems.
Java uses a ___________ to translate the program source code created by the programmer into ___________.
Compiler, bytecode
What does HTML stand for?
Hyper Text Markup Languag
Explain why the United Nations "2-step translation" process requires fewer translators than a "1-step translation: process.
In the first step, the speaker's language is translated to a common language and then another translates it to each representative's native language. This means that the UN just needs translators who can understand a translation between one language and the common language, as opposed to having translators that can translate between every possible language combination.
Refer to your answer to the previous question. Some software packages combine all 3 of these things into an IDE. What does IDE stand for?
Integrated Development Environment
Refer tot he previous question. Java then continues and uses an ___________ to translate the ____________ into executable ___________ line by line.
Interpreter, bytecode, program
To make JCreator function on your computer, you must install both JCreator and the JDK. Which must be installed first?
JDK
What does JDK stand for?
Java Development Kit
What does JRE stand for?
Java Runtime Environment
What is the name for the interpreter that takes the bytecode and then executes the program?
Java Virtual Machine
What does JVM stand for?
Java Virtual Machine, which is the interpreter for Java bytecode.
List 2 benefits with using Java on a web page?
Java can run on any computer operating system and Java provides special tags to add program logic in a webpage , called JSP.
What type of code is created by a Java compiler?
Java code is compiled to bytecode.
Refer to your answer to the previous question. How much does it cost to download Java form this company?
Java is free.
Does the computer understand bytecode?
Not really. The bytecode must be interpereted through the Java Virtual Machine, which is specific to each type of computer.
Refer to your answer to the previous question. What company bought Sun Microsystems?
Oracle
What company created Java in 1995?
Sun Microsystems
What 3 things do you need to write a Java program?
Text editor, Java Compiler/JDK, Java Virtual Machine
What does Java use an interpreter for?
The interpreter (or Java Virtual Machine) translates the bytecode to each specific computer.
When is a programming language considered to be platform independent?
When a program is written once and will run on different operating systems.
Can Notepad be used to write a Java program?
Yes
Can the Java compiler be accessed form the Command Prompt?
Yes
Can a website be written entirely in Java?
Yes.
Can a website contain multiple applets?
Yes.