Introduction to Java Flashcards

(16 cards)

1
Q

What is Java?

A

Java is a high level object oriented programing language developed by sun micro systems but it now owned by oracle it was developed for interact tv, but has now been adapted for gerneral computing

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

Can you explain the evolution of Java?

A

The evolution of Java

1991: Sun microsystems start a project called oak lead by James Gosling

1995: Oak is reneamed to Java an is lunched

1996: JDK 1.0 is released

1999: JIT or Just in time compilers were introduced together with UI framework called Swing

2004 to 2011: Java 5 to Java 7 intodruce generics, enums, and impove performance

2017 to present: Java has now adopted a 6 month release cycle leading to various java versions over time with the lates being java 24

15 year old 69 was the hotes rappter from 2004 to 2011 but fell off in 2017

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

Why did java become popular or What are the advantages of Java

A
  • Plartform independence
  • Robust Security features
  • a rech set of libraries and frame works
  • Strong community and coperate support
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does WORA stand for?

A

Write Once Run Anywhere

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

Explain the concept of platform Indepencence?

A

Java programs can run on any device or operating system without modfication provided the system contains the Java virtual machine

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

What are the three features/components of Java?

A
  • The JDK
  • The JRE
  • The JVM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the JDK?

A

It is a combination of the JRE, JVM and other development tools to write, compile and execute java programs, examples include:
JDK 8, 11, 17, etc.

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

What is the JRE?

A

It is a set of standard librabries that allow the execution of java programs, together with the JVM, but it Does not include any developer/development tools.

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

What is the JVM

A

It is an abstarct machine that executes java byte code, and is a combination of class loaders, byte code verifiers, and an interpreter or the JIT(Just In Time Compiler) . The JVM varies for different operating sytems but executes the same byte code.

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

What are the different Editions of java?

A
  1. Java SE (Standard Edition)
  2. Java EE (Enterprise Edition)
  3. Java ME (Micro Edition)
  4. Java FX

Acronym: SEEEMEFX

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

What is the purpose of the java SE?

A

For general pupose, desktop, and server-side application programming

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

What is the purpose of the Javae EE?

A

Developing lage scale web or enterprise applications

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

What is the purpose of the java ME?

A

Developing Embeded systems, and mobile device OS

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

What is the purpose of java FX

A

Developing rich desktop user interfaces.

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

What are some applications of Java Programming?

A
  1. Web applications: The Javae EE is used for web applications think spring boot, ava server pages(JSP), applets, et.c
  2. Mobile Applications: Java is the primary language for android app development with the Android SDK framework
  3. Enterprise applications: Java is used in ERP’s, banking systems, etc
  4. Desktop GUI: Java FX and Swing are used to build deskop UI
  5. Embeded Systems and IoT: Java ME powers TVS, smart appliances, ATM’s and IoT devices
  6. Cyber security and Blockchain: Java Powers Security applications, encryption algorithms and blockchain development
  7. Game Development: Java is used in game engines like libGDX and jMonkey Engine
  8. Big Data and Machine Learning: Hadoop is used for big data and DL4J is used for machine learning
  9. Cloud Computing: Java-based frameworks, such as Spring Cloud, are also utilized by Amazon in AWS (Amazon Web Services), Google Cloud, and Microsoft Azure.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Craeate a table comparing the the JDK, JRE, and JVM?

A
<table>
  <tr>
    <th>Feature</th>
    <th>JDK</th>
    <th>JRE</th>
    <th>JVM</th>
  </tr>
  <tr>
    <td>Runs Java Programs</td>
    <td>True</td>
    <td>True</td>
    <td>True</td>
  </tr>
  <tr>
    <td>Includes the JVM</td>
    <td>True</td>
    <td>True</td>
    <td>False</td>
  </tr>
  <tr>
    <td>Includes Libraries</td>
    <td>True</td>
    <td>True</td>
    <td>False</td>
  </tr>
  <tr>
    <td>Includes Development tools</td>
    <td>True</td>
    <td>False</td>
    <td>False</td>
  </tr>
</table>

Criteria:
* Runs java programs
* Includes the JVM
* Includes Libraries
* Includes development tools