Java Programming Flashcards

1
Q

Computer language innovation and development occur for two fundamental reasons:

A
  • To adapt to changing environments and uses
  • To implement refinements and improvements in the art of programming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Java is a general purpose, Object oriented programming Language developed by ______ in ___. Originally called ___ by ____.

A

Sun Microsystems of USA
1991.
Oak
James Gosling.

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

Sun Microsystems decided to develop special software for consumer electronic devices headed by James Gosling.

A

1990

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

Using C++ the team announced a new language named Oak.

A

1991

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

The Green project team by Sun, shown new language to control home appliances using hand held device with tiny touch-sensitive screen.

A

1992

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

The www appeared on the internet and transformed the text based internet into graphical rich environment using Web Applets.

A

1993

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

Team developed a web browser called “HotJava” for web Applets,

A

1994

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

“Oak” was renamed “Java” due to some legal snags. Java is just a name. Netscape and Microsoft supports to Java.

A

1995

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

Java established itself as a leader for internet & general purpose programming. Java founds its home.

A

1996

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

– Object Oriented Programming Languages supports three main features: encapsulation, inheritance, and polymorphism.
– capability to reuse code.

A

Object Oriented

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

– Most of the Java syntax was based from C and C++
– Migrating to Java would be very easy.
– Instead of pointers, Java uses the concept of references.

A

Simple

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

– Java applications can run several threads
– Multithreading is extremely useful in practice.
– For example, a browser should be able to simultaneously download multiple images

A

Multi-Threaded

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

– Java applications can run several threads
– Multithreading is extremely useful in practice.
– For example, a browser should be able to simultaneously download multiple images

A

Multi-Threaded

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

– Java applications can run across most types of network.

A

Network Aware

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

– One of the nice things about Java is its capability to run in most platforms once you’ve compiled it.
– WORA – Write Once, Run Anywhere

A

Cross Platform / Platform Independent

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

– it runs the applications on top of the Java Virtual Machine (JVM) and your JVM sits on top of your operating system
– Your Java application does not have a direct attachment or a direct contact with your operating system

A

Secure

16
Q

– Using Java, you can also create Graphical User Interface (GUI) Applications which enables the user to make use of Buttons, Frames and TextFields
– Java has a built-in Abstract Window Toolkit (AWT) which makes use of the standard GUI components
– Besides AWT, Java also supports Java Foundation Classes (JFC) / Swing, which is supported under the javax (java extension) package.

A

Supports GUI

17
Q

You can freely download the JDK and its documentation at the Oracle website.

A

100 % Free –

18
Q

DIFFERENCE OF JAVA & C++

A

Java does not support operator overloading.

Java does not have template classes.

Java does not support multiple Inheritance.

Java does not support global variables.

Java does not use pointers.

Java has replaced the destructor function with finalize method.

There are no header files in Java.

19
Q

3 JAVA FLAVORS

A
  1. Java Standard Edition (JSE)
    - It is widely used platform for computer programming in Java
  2. Java Enterprise Edition (JEE)
    -It has extra libraries which can be used to develop JEE applications
  3. Java Micro Edition (JME)
    -It is used to design for embedded systems.
    Example: Android
20
Q

an application that Java developers should have in their machine.

A

Java Development Kit (JDK)

21
Q

is the interpreter that needs to be installed by a Java Technology Application user.

A

Java Runtime Environment (JRE) -

22
Q

JAVA RUNTIME ENVIRONMENT (JRE) components

A

Java Virtual Machine (JVM) – is a virtual machine whose purpose is to execute other programs.

Application Programming Interface (API) – set of rules that controls the interaction between software.

23
Q

_____ can read compiled byte codes

The __- can also be customized

Majority of the objects type is being checked by the compiler

A

Java Virtual Machine

24
Q

_____ is the process of deallocating memory (heap) spaces that is no longer needed

A

Garbage Collection

25
Q

pieces of information that are sent to a method

A

Arguments

26
Q

use to define Java class using any name.

A

Identifier

27
Q

also known as “Pascal casing.

A

Upper Camel Casing

28
Q

style that joins words which each word begins with an uppercase letter.

A

UCC

29
Q

specifies the accessibility or scope of a field, method, constructor or class.

A

Access specifiers

30
Q

Types of Java Access Specifier

A

Private
Public
Protected
Default

31
Q

Public -
Private –
Protected –
Default –

A

1 access level is everywhere, accessed within class, outside class, within package and outside the package.

2 access level is only within the class.

3 access level is within package and outside the package through child class.

4 access level is only within the package

32
Q

Types of indentions:

A

K & R Indention
– named after Kernighan & Ritchie (wrote the first book in C language)

Allman style – named after Eric Allman (popularized the style)

33
Q

These are ignored by the compiler.

It is used by the programmer to leave notes for themselves and for those who might read their programs in the future.

It is also used to help out the programmer to locate the possible error of the program by commenting out some statements that may cause the error.

It is the “eraser” of programmers.

A

comments

34
Q

TYPES OF COMMENTS

A

Line comment - It starts with 2 slashes (//)

Block Comment – It starts with (/) and ends with (/)

Javadoc – special case of block comments.
- It starts with (/**) and ends with (*/)

35
Q

There can be 3 output after compiling:

A

No message – success compilation

Programming language error – syntax error in the code.

Javac not recognized error