Intro to Java Flashcards
What is Java?
Java is a full-featured, general-purpose object-oriented programming language that can be used to develop robust mission-critical applications
Who developed Java and where?
Java was started as a project called “Oak” by James Gosling in June 1991 at Sun Microsystems
Why was there a need for platform-independent language?
Consumer electronic devices such as televisions, washing machines, microwaves, and other similar electronic devices used different platforms; therefore, there was a need for platform-independent language, such as Java
What does the term platform refer to?
The term platform refers to a specific combination of hardware and system software (operating system)
Define platform independence
The capability of a computer program to run on multiple platforms is referred to as platform independence
When was Java formally released?
In 1995 - Oak was renamed Java
When did Oracle acquire Sun Microsystems?
2010
Name the two types of Java programs
- Stand-alone applications
2. Internet applets
What is a stand-alone java program?
It refers to a Java program that can run independently on a computer
Give an example of a stand-alone java program
Acrobat PDF Reader
What can stand-alone java programs be based on?
They can either be console-based or with a Graphical User Interface (GUI)
What does a Console-based Java application use?
Uses a text-only interface
What does a GUI-based Java application use?
Uses a graphical interface, such as command buttons, text fields, and a mouse
What are Java applets?
The Java programs that run in a web browser are called Java applets.
What are applets used for?
Applets are capable of performing many tasks on a web page, such as displaying graphics, playing sounds, and accepting user input. Applets are also used to create animation and interactive games.
How can applets be transported?
They can be transported over the internet from one computer to another through a Java-enabled browser or an applet viewer
What is machine language?
Computers were developed to carry out instructions that were written in their native language called machine language
What is machine code?
Machine language instructions are expressed as binary numbers called machine code
What is a binary no. made up of?
Just two digits - zero (0) and one (1)
What is each digit in a binary no. called?
Each digit, zero or one, is called a bit
A machine language instruction is just a sequence of _ and _
zeros and ones
Why does the machine code of one type of computer differ from another?
Different computers use different sets of binary codes for each instruction
When can a computer directly execute a program?
Only when the program is written in the computer’s machine language
State the issues with programming in machine language
It was a tedious process and was prone to errors. In addition to this, these programs were very difficult to read and modify
Why were assembly languages developed?
To overcome the issues with programming in machine language - it was a tedious process and was prone to errors. In addition to this, these programs were very difficult to read and modify.
What were assembly languages?
These allow programs to be written using symbolic operations called mnemonic codes
What mnemonic code can you use for 100101?
ADD
What was the issue with assembly languages and what was its solution?
Although assembly languages were easier to write than machine languages, they were not recognized by the computer. Therefore, another program known as an assembler was needed to translate programs written in assembly language into machine language