Chapter 1 - Prequel Flashcards

1
Q

reads source code one statement at a time and executes it immediately

A

explain the role of an

interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

these are the individual components that are needed in order to solve a problem domain

A

describe the
object
within object-oriented programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

name 4 subsets of the java standard edition and there capabilities

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are the two editions of the
Java development kit (JDK)

A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • 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.
A

what are 5 reasons that java became popular

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

the drawback of this is that the compiled code will be specific to the platform it was compiled on

A

what is the drawback of compiling directly to machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

describe the difference between public and private Java runtime environments

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

describe the structure of an
object-oriented program

A
  • made up of objects that can hold there own data and know how to process that data
  • objects can share information between each other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is the advantage of using bytcode and a virtual machine

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

an intermediate language that is understood by a virtual machine which in turn can either interpret or compile the intermediate language to machine code

A

what is

bytecode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

ex1
domain - a system that manages patients in a hospital
Objects - patients doctors, nurses, wards

ex2
Domain - user interface
Objects - buttons, menus, windows

A

give two examples of domains and objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

give two examples of domains and objects

A

ex1
domain - a system that manages patients in a hospital
Objects - patients doctors, nurses, wards

ex2
Domain - user interface
Objects - buttons, menus, windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

give three sidenotes concerning java versions and editions

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

describe the
java development kit
and some of the components it will consist of

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

this uses
dynamic / just-in-time (JIT) compilation

A

what type of compilation is used by the
java virtual machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

this is the problem we are trying to solve or a system and will employ objects in order to create the solution

A

describe the
domain
within object-oriented programmig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

translates entire source code to either machine code or bytecode

A

explain the role of a
compiler

18
Q

this will contain the minimum requirements to run a Java
it will include:
* Java Virtual Machine (JVM)
* core classes
* supporting files

A

describe the
Java runtime environment (java RTE)
and some of the components it will consist of

19
Q

what type of compilation is used by the
java virtual machine

A

this uses
dynamic / just-in-time (JIT) compilation

20
Q

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

A

what is the advantage of using bytcode and a virtual machine

21
Q

explain the role of an

interpreter

A

reads source code one statement at a time and executes it immediately

22
Q

describe the
object
within object-oriented programming

A

these are the individual components that are needed in order to solve a problem domain

23
Q

what are 5 reasons that java became popular

A
  • 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.
24
Q
  • uses a structure that is comprised of a step by step call to procedures/functions (algorithmic style)
  • all data is stored in a global data structure and can be accessed by any part of the program
A

give two points that describe the structure of a
procedural program

25
Q
  • 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
A

name 4 subsets of the java standard edition and there capabilities

26
Q

describe the
Java runtime environment (java RTE)
and some of the components it will consist of

A

this will contain the minimum requirements to run a Java
it will include:
* Java Virtual Machine (JVM)
* core classes
* supporting files

27
Q

give two points that describe the structure of a
procedural program

A
  • uses a structure that is comprised of a step by step call to procedures/functions (algorithmic style)
  • all data is stored in a global data structure and can be accessed by any part of the program
28
Q
  • 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.
A

what are the two editions of the
Java development kit (JDK)

29
Q
  • 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
A

give three sidenotes concerning java versions and editions

30
Q
  • made up of objects that can hold there own data and know how to process that data
  • objects can share information between each other
A

describe the structure of an
object-oriented program

31
Q

what is the drawback of compiling directly to machine code

A

the drawback of this is that the compiled code will be specific to the platform it was compiled on

32
Q

what is

bytecode

A

an intermediate language that is understood by a virtual machine which in turn can either interpret or compile the intermediate language to machine code

33
Q

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

A

describe the difference between public and private Java runtime environments

34
Q

what is a

virtual machine

A

a layer of software that mimics a computer.

35
Q

explain the role of a
compiler

A

translates entire source code to either machine code or bytecode

36
Q
  • Memory management
  • Process scheduling
  • Communicating with peripherals
  • Provide a user interface
  • Provide APIs so that applications and programs an access features of the OS
A

name 5 roles that are carried out by the operating system

37
Q

what are three methods for

executing bytecode

A

this includes
* interpretation - an interpreter can be included in the virtual machine that can interpret the code at runtime
* static compilation - the virtual machine can translate all code to machine code before the program is then executed using the machine code
* dynamic / just-in-time (JIT) compilation - this mixture of interpretation and static comilation includes interpreting at run time but at the same time saving the machine code any subsequent executions then use the saved machine code

38
Q

name 5 roles that are carried out by the operating system

A
  • Memory management
  • Process scheduling
  • Communicating with peripherals
  • Provide a user interface
  • Provide APIs so that applications and programs an access features of the OS
39
Q

describe the
domain
within object-oriented programmig

A

this is the problem we are trying to solve or a system and will employ objects in order to create the solution

40
Q

a layer of software that mimics a computer.

A

what is a

virtual machine

41
Q

this includes
* interpretation - an interpreter can be included in the virtual machine that can interpret the code at runtime
* static compilation - the virtual machine can translate all code to machine code before the program is then executed using the machine code
* dynamic / just-in-time (JIT) compilation - this mixture of interpretation and static comilation includes interpreting at run time but at the same time saving the machine code any subsequent executions then use the saved machine code

A

what are three methods for

executing bytecode

42
Q

describe the
java development kit
and some of the components it will consist of

A

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