Module 1 - Introduction to Java Flashcards
Is an object-oriented programming language developed by James Gosling and colleagues at Sun Microsystems in the early 1990s
Java
Java is intended to be compiled to a _____, which is then run (generally using JIT compilation) by a Java Virtual Machine
Bytecode
Who, where and when is Java developed?
James Gosling; Sun Microsystems; early 1990s
Java was started as a project called _____ by James Gosling in _____.
Oak; June 1991
The first public implementation in 1995
Java 1.0
Java 1.0 made the promise of _____, with free runtimes on popular platform.
Write Once, Run Anywhere
The major web browsers soon incorporated Java 1.0 into their standard configurations in a secure _____ configuration.
Applet
New versions for large and small platforms (J2EE and J2ME) soon were designed with the advent of _____.
Java 2
Sun has not announced any plans for a _____.
Java 3
When was Sun reached out to the ISO/IEC JTCI and then Ecma International to formalize Java, but they quickly withdrew.
1997
Java continues to be a _____ standard regulated by the _____.
de facto proprietary; Java Community Process
With the revenue generated by new vision such as the _____, Sun made several Java implementations free of charge.
Java Enterprise Framework
The critical difference is that the compiler is not present in the _____, which differentiates between its Software Development Kit (SDK) and JRE (JRE).
JRE
When was Sun launched a considerable amount of Java in the GNU General Public License as free and open-source software (GPL).
November 13, 2006
When was Sun completed the process by releasing a fully accessible, all free and open-source Java’s core code, except for a small portion of the code that Sun did not copyright.
May 8, 2007
The 5 Primary Objectives of the Development of Java Language
- The object-oriented approach should be employed
- It should allow multiple operating systems to run the same program
- It should have built-in computer network support
- It should be configured to execute code from distant sources safely
- By selecting which parts of the other object-oriented languages are considered acceptable. It should be simple to use
- Refers to a method of programming and language design
- Idea is to design software so that the various types of data it manipulates are combined together with their relevant operations
Object Orientation (OO)
Data and code are combined into entities called _____
Objects
An _____ can be thought of as self-contained bundle of _____ (code) and _____ (data).
object; behavior; state
What is the principle of Object Orientation (OO)?
To make large software projects easier to manage, thus improving quality and reducing the number of failed projects
Object Orientation develop more generic objects so that software can become more _____ between projects.
reusable
Software objects can hopefully be seen more as _____ components, helping the software industry build projects largely from existing and well-tested pieces, thus leading to a massive reduction in development times.
pluggable
Programs written in the Java language must run similarly on diverse hardware.
Platform Independence
The code is run on a _____, a program written in native code on the host hardware that interprets and executes generic Java _____.
Virtual Machine (VM); bytecode
Java bytecode is interpreted or converted to native machine instructions by the _____.
JIT Compiler
In some languages the programmer allocates memory to create any object stored on the heap and is responsible for later manually deallocating that memory to delete any such objects.
Problem in Memory Management
The programmer determines when objects are created, and the Java runtime is responsible for managing the object’s lifecycle.
Java Automatic Garbage Collection (Avoidance of the Problem)
What are the 7 Benefits of Java?
- Java is used in networking
- Java is dynamic
- Java is reliable
- Java is simple
- Java is secure
- Java is portable
- Java is free
The Java language has many classes to facilitate Internet communications. Java classes can be loaded in most browsers to facilitate secure transactions over the Internet.
Java is used in networking
Java makes it possible to reuse previously written programs to lessen the workload of a programmer.
Java is dynamic
Java is _____ because it excludes some components that are error-prone. It also provides a way for programmers to anticipate and handle errors in their program.
Java is reliable
The Java programming language was designed to make OOP easier. Once you understand how components in a program are treated as objects, you will find Java fairly simple.
Java is simple
Java ensures that a program can go only where it was designed to go. It eliminates the possibility of altering system data unintentionally.
Java is secure
Java codes have the filename extension .java. When compiled, a class file with .class extension is created. This file can then run on any machine which has the Java Virtual Machine, thus, making it portable.
Java is portable
Java codes have the filename extension _____. When compiled, a class file with _____ extension is created. This file can then run on any machine which has the _____, thus, making it portable.
.java; .class; Java Virtual Machine
Java ensures that a program can go only where it was designed to go. It eliminates the possibility of altering system data unintentionally.
Java is free
- Bundles all the tools you need to write, debug, and test your code
- Allows developers to work in a single environment and improve their programming workflow
IDE or Integrated Development Environment
What are the 5 Essential Java IDE Tools?
- Debugging
- Syntax Highlighting
- Build Automation
- Code Completion
- Graphical User Interface (GUI)
While debuggers vary among different IDEs, it’s important to have a tool to highlight potential errors and help you step through your code.
Debugging
Built-in highlighting is crucial for readability and efficiency. This tool can help you find errors in your code and allows you to sift through your code at a quicker speed.
Syntax Highlighting
A good IDE will allow you to write and run your Java code in the same window, increasing the productivity and efficiency of your program.
Build Automation
This tool identifies and inserts code components to save you time and lower the risk of typos and bugs.
Code Completion
Enables an intuitive programming interface
Graphical User Interface (GUI)
What are the 7 Popular Java IDEs?
- Eclipse
- NetBeans
- IntelliJ IDEA
- BlueJ
- Oracle JDeveloper
- MyEclipse
- JCreator
It’s free, open-source, and has an extensive plugin ecosystem that allows users to customize functionalities for application development.
Eclipse
Is the official IDE for Java 8, making it a top Java IDE for creating
desktop, mobile, and web applications applications. It is open-source and is used to develop desktop, web, and mobile applications along with HTML5 and C++.
NetBeans
It’s a capable and ergonomic IDE, with features to boost productivity without cluttering the user interface. It includes a set of tools that make programming easier, like smart completion, cross-language refactoring, data flow analysis, and language injection.
IntelliJ IDEA
Two Editions of IntelliJ
- Community Edition
2. Ultimate Edition
IntelliJ edition that is free and open-source, with a focus on Android and Java Virtual Machine (JVM) development.
Community Edition