• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/39

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

39 Cards in this Set

  • Front
  • Back

JAVA

Is developed for embedded software

OOP(Object Oriented Programming)

Favored for larger, more complex projects or when modeling real-world entities is beneficial.



Promotes modularity by dividing software into smaller, self-contained objects or classes.

Procedural-Oriented Programming

Are large programs divided into smaller programs known as functions.



Data and function are often separate with functions operating data.

Mnemonics

Is used to create Instruction and data

The Three Types of Error

1.) Syntax Error


2.) Logical Error


3.) Run-time Error

Object

Consist of attributes and methods mechanism that combine data and operations in single unit.




Can store Data.

Property

attribute or state characteristic

Method

Do something, functions, behavior.

Interpreter

Checking the output line by line.

Compiler

Checks the program as a whole

Class

Is a collection of object.



a blueprint.

List of OOP Design Principles

- Encapsulation


- Abstraction


- Inheritance


- Polymorphism

Encapsulation

Binds data together, no direct access is granted to the info in case it's hidden.

Abstraction

Allowing users to only see relevant and useful information

Inheritance

Child classes inherit from main class or from existing class

Polymorphism

Same class but can have different method or function

List of OOP Relationships

- Association


- Aggregation


- Composition

Aggregation

independent, can exist on its own.

Composition

Cannot exist on its own, is dependent.

Association

relationship between two separate classes.

The Founder of JAVA

James Gosling

JAVA Development Kit (JDK)

Latest release of JAVA SE Platform

Characteristic of JAVA

1. Platform Independent.


2. Simple.


3. Object-oriented.


4. Robust.


5. Distributed.


6. Dynamic.


7. Secure.


8. Performance.


9. Multi-threaded.

Just-in-time Compilation

Design to improve the execution performance of programs and reduce startup times by dynamically translating and compiling code at runtime, right before it is executed.

Multi-threading

Ability of a program or an operating system to enable more than one user at a time without requiring multiple copies of the program running on the computer.

Java Virtual Machine

Enables a computer to run Java programs as well as programs written in other languages that are also compiled to Java byte code.

Interface

Collection of Empty methods

Package

way of grouping related classes.

java.lang

Default and base package in java

import java.io*;

used to process the input and produce the output.

import java.util.*;

built-in package that contains various utility classes and interfaces.

import java.util.Arrays;

The package java.util contains the class named Arrays. Write the statement that will allow you to access all methods under the class Arrays.

3 Data Types in Java

- Primitive Type


- Class Type


- Identifier Type

Primitive Type

- its values are simple, indecomposable values, such as a single letter or a single number, lowercase letter.

Class Type

Is a type for objects with both data and methods



Uppercase Letters.

Identifiers

Includes the name of a variable, name of a class, a method or an object.

Correct way of Declaring BufferedReader Class

- BufferedReader objectName = new BufferedReader(new inputStreamReader(System.in));



- InputStreamReader objectName = new inputStreamReader (System.in);



BufferedReader objectName1 = newBufferedReader(objectName);

Way of declaring the main method in Java

- public static void main(String[] args)



- public static void main(String[] s)



- public static void main(String args[])



- public static void main(String s[])

Using the BufferedReader object named myReader, write the syntax for getting an integer input to be stored at variable myInput

int myInput= myReader.readline();