Chapter 2 Java
Can a website contain multiple
...
What is an applet?
A java program that executes inside a webpage
Bytecode
A low-level code file that cannot execute as regular machine code file; bytecode is understood, and executed, by a Java interpreter, called Java Virtual Machine (JVM)
2-step translation
A message is first translation from its original language to English. Then, English to another language
What is an application?
A program that executes stand-alone
JCreator LE
An Integrated Development Environment (IDE), free software, a program that assists in writing Java programs
Created by a java compiler
Bytecode
Minors
Companies are not reluctant to prosecute minors
Which is larger, a compiler or an interpreter?
Compilers are much larger
Sun Microsystems
Created JCreator
Simple text editor
Creates Java source code
At home downloading steps
Download JDK, Install JDK, Download JCreator, Install JCreator
Computer Vulnerability
Even if your computer has the best security, leaving your computer unattended will leave you computer very vulnerable
What does HTML stand for?
HyperTextMarkupLanguage
Platform independent
If program source code created on one type of computer platform can execute on another computer platform without any difficulty
List 2 benefits with using Java on a web page?
It is secure and interactive
What is the name for the interpreter that takes the bytecode and then executes the program?
JVM
What does JVM stand for?
JavaVirtualMachine
What is the "Number 1 source of grief?"
Loss of Data
Virus
Malicious programs, programs that copy or duplicate themselves to other computers, programs that have been used in warfare to disable enemy computers
Does the computer understand bytecode?
No
Storage devices
No storage device is impervious to going bad and guarantees that data will never be lost
Copying copyrighted software
Stealing - as in felony theft
If JCreator is free how does it make any money
The LE (Light Edition) is free. Xinox hopes that you will purchase the Pro edition
Which of the following word from this program is NOT a keyword?
The file name
Bytecode
The intermediate code is used by the Java for translation
English
The intermediate language used by the United Nations for translation
Interpreter
The kind of translator used by Java to execute the program by translating the Java bytecode into machine code
Compiler
The kind of translator used by Java to translate source code into bytecode
Which line in this program generates output?
The one that looks like this: System.out.println("Hello World")
Which line in this program must contain the name of the file?
The one that looks like this: public class Java0201
Which lines in a program contain comments?
The ones with //
Platform independent
The source code created on one computer can run on any other computer
What does Java use an interpreter for?
To translate and execute bytecode
URL
Web Address
What happens to you when making an unethical choice when using a computer
Your life is ruined forever