Chapter 1 - Prequel Flashcards
reads source code one statement at a time and executes it immediately
explain the role of an
interpreter
these are the individual components that are needed in order to solve a problem domain
describe the
object
within object-oriented programming
name 4 subsets of the java standard edition and there capabilities
- Embedded version of java - This is aimed at the internet of things and offers web-based interfaces and a database facility (java DB)
- Java card - A version of java that runs on smart cards such as sim cards. It offers encryption and running applications in small JVMs which are isolated from other applications
- Micro edition (ME) - Used for programming on mobile phones but has been mostly superseded by android which also uses java
- Java for televisons and set top boxes - This version can be used to create electronic program guides, games, menus, and access data over the internet
what are the two editions of the
Java development kit (JDK)
- Java Enterprise Edition, known as Java EE. The word ‘Enterprise’ refers to large, distributed programming environments. This is the Java used on the server side.
- Java Standard Edition, known as Java SE. This is used on the client side.
- Platform independence – Java is a language that is run on a JVM on each device. Compiled Java code can be ported from one JVM to another.
- Familiarity – the syntax of the language is based on C and C++, two other widely used languages.
- Robustness – Java was designed to incorporate strong syntax checks, and to avoid the main causes of failure in C and C++.
- Security – the JVM incorporates a secure runtime environment, which is important in anetworkedcontext.
- Object-orientation – the object-oriented approach fits well with networks, where clients and servers interact by sending communications to each other.
what are 5 reasons that java became popular
the drawback of this is that the compiled code will be specific to the platform it was compiled on
what is the drawback of compiling directly to machine code
describe the difference between public and private Java runtime environments
java runtime environments (JRE) are public meaning that they will by default run any java code
java development kits include a private JRE meaning that it will only run java code when we ask it to do so
describe the structure of an
object-oriented program
- made up of objects that can hold there own data and know how to process that data
- objects can share information between each other
what is the advantage of using bytcode and a virtual machine
by using these the bytcode can be ran on any type of machine as long that machine has the correct virtual machine installed on it
the advantage is that no changes are required in either the source or bytecode when porting to different machines
an intermediate language that is understood by a virtual machine which in turn can either interpret or compile the intermediate language to machine code
what is
bytecode
ex1
domain - a system that manages patients in a hospital
Objects - patients doctors, nurses, wards
ex2
Domain - user interface
Objects - buttons, menus, windows
give two examples of domains and objects
give two examples of domains and objects
ex1
domain - a system that manages patients in a hospital
Objects - patients doctors, nurses, wards
ex2
Domain - user interface
Objects - buttons, menus, windows
give three sidenotes concerning java versions and editions
- Java 1.0 was released in 1996 and is used on both client and server side
- The java standard edition is updated every six months usually just bug fixes and new libraries nothing code breaking
- Java 8 was the last update that had significant changes
this is used for developing Java applications
it will include:
* private java runtime environment (JRE)
* an interpreter/loader (Java)
* a compiler (javac)
* an archiver (jar)
* a documentation generator (Javadoc)
* other tools needed in Java development
describe the
java development kit
and some of the components it will consist of
this uses
dynamic / just-in-time (JIT) compilation
what type of compilation is used by the
java virtual machine
this is the problem we are trying to solve or a system and will employ objects in order to create the solution
describe the
domain
within object-oriented programmig