IT Module 1

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/201

flashcard set

Earn XP

Description and Tags

Flashcards about the core concepts of Java programming

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

202 Terms

1
New cards

Program / Software

A set of step-by-step instructions that tells your computer what to do and produce the results you want.

2
New cards

Programming Language (PL)

A set of rules that tells a computer what operations to perform.

3
New cards

Java

An object-oriented, class-based, secured, and general-purpose programming language.

4
New cards

OAK

The first official name of Java.

5
New cards

JDK (Java Development Kit)

A Java software development environment from Oracle. It includes the JVM, compiler, debugger, and other tools for developing Java.

6
New cards

JRE (Java Runtime Environment)

A software layer that runs on top of a computer’s operating system software and provides the class libraries and other resources that a specific Java program needs to run.

7
New cards

JVM (Java Virtual Machine)

An engine that provides a runtime environment to drive the Java Code or applications. It converts Java bytecode into machine language. JVM is a part of Java Run Environment (JRE).

8
New cards

API (Application Programming Interface)

A list of all classes that are part of the Java development kit (JDK)

9
New cards

Bytecode

Program code compiled from source code into low-level code designed for a software interpreter.

10
New cards

Compiler

A program that converts instructions into a machine code or lower-level form so that they can be read and executed by a computer.

11
New cards

Interpreter

A computer program that converts high-level program statements into Assembly Level Language.

12
New cards

Just-In-Time (JIT) compiler

A component of the Java Runtime Environment that improves the performance of Java applications at run time.

13
New cards

Platform

Any hardware or software environment in which a program runs.

14
New cards

Java

High-level, multi-platform, robust, object-oriented, concurrent, secured, and general-purpose computer programming language.

15
New cards

Types of Java Applications

Desktop Applications, Web Applications, Enterprise Applications, Mobile Applications

16
New cards

Web application technologies in Java

Servlets, JSP, Spring, Hibernate

17
New cards

Java SE (Java Standard Edition)

A Java programming platform that includes core topics like OOPs, String, Regex, Exception, Inner classes, Multithreading, I/O Stream, Networking, AWT, Swing, Reflection, Collection, etc.

18
New cards

Java EE (Java Enterprise Edition)

An enterprise platform mainly used to develop web and enterprise applications; built on top of Java SE.

19
New cards

JavaFX

It is used to develop rich Internet applications. It uses a lightweight user interface API.

20
New cards

Java ME (Java Micro Edition)

A micro platform that is mainly used to develop mobile applications

21
New cards

Object-oriented programming (OOP)

Simplifies software development and maintenance by providing some rules like Encapsulation, Inheritance. Polymorphism and Abstraction

22
New cards

Classloader

Part of the Java Runtime Environment(JRE), which dynamically loads Java classes into the Java Virtual Machine.

23
New cards

Bytecode Verifier

Checks the code fragments for illegal code violating access rights to objects.

24
New cards

Security Manager

Determines what resources a class can access, such as reading and writing to the local disk.

25
New cards

Automatic garbage collection

Runs on the Java Virtual Machine to eliminate objects no longer being used by a Java application.

26
New cards

Java Development Kit (JDK)

A software development environment used to make applets and Java applications. It contains tools required to write Java programs and JRE to execute them.

27
New cards

Java Virtual Machine (JVM)

Provides a platform-independent way of executing Java source code and comes with JIT (Just-in-Time) compiler that converts Java source code into low-level machine language.

28
New cards

Java Runtime Environment (JRE)

Contains the class libraries, loader class, and JVM; needed to run Java programs.

29
New cards

ClassLoader (JVM Architecture)

A subsystem used for loading class files and performs three major functions: loading, linking, and initialization.

30
New cards

Method Area (JVM Architecture)

Stores class structures like metadata, the constant runtime pool, and the code for methods.

31
New cards

Heap (JVM Architecture)

All the Objects, their related instance variables, and arrays are stored.

32
New cards

JVM language Stacks (JVM Architecture)

Stores local variables and their partial results and created simultaneously as the thread is created.

33
New cards

PC Registers (JVM Architecture)

Stores the address of the Java virtual machine instruction that is currently being executed.

34
New cards

Native Method Stacks (JVM Architecture)

Holds the instructions for the native code depending on the native library. It is written in another language instead of Java.

35
New cards

Native Method interface (JVM Architecture)

Allows Java code running in a JVM to be called by libraries and native applications.

36
New cards

Native Method Libraries (JVM Architecture)

A collection of the Native Libraries(C, C++) needed by the Execution Engine.

37
New cards

Local Vars

vars defined inside methods, constructors or blocks, and will be be destroyed after completion

38
New cards

Instance vars

vars within class but outside any method. can be accessed inside any class’s method, constructor or block.

39
New cards

class vars

are declared within a class, outside any method with the static keyword

40
New cards

primitive datatypes

basic types of data, and stores actual values

41
New cards

Reference types

are instantiable calss and arrays , store addresses to locations in memory, also known as wrapper classes

42
New cards

Class loader

is the JVM subsystem used to load class files

43
New cards

Bytecode verifier

checks the code fragments for illegal code that can violate access rights to objects

44
New cards

Interpreter

Read the bytecode stream then execute the instructions

45
New cards

Syntax

are set of rules in programming

46
New cards

Comment

used to document a particular code or program and the compiler does not read it.

47
New cards

Phase1: edit

create the program on the editor and after that it is stored in the disk with the names ending .java

48
New cards

phase 2: Compile Javac

a compiler translates from high level language program to bytecodes and stores them in disks with the ending name .class

49
New cards

Phase 3:load

Class loader compiles and put those byte codes from disk to primary memory

50
New cards

Phase 4: verify

Verify bytecodes to confirm that all byte codes are valid and do not rik Java’s security restrictions

51
New cards

Phase 5 execute

JVM read and translates those bytecodes into a language the computer can understand, then execute the program and store its values in primary memory

52
New cards

class keyword

used to declare a class in java

53
New cards

public

an access modifier that represents visibility, it means that it is visible to all

54
New cards

static

the core advantage of it is that there is no need to create an object to invoke the ___ method

55
New cards

void

the return type of the method, it means that it doesnt return any value

56
New cards

main

represents the starting point of the program

57
New cards

String[] args

is used for command line argument

58
New cards

System.out.println()

used to print statements.

59
New cards

syntax error

will happen if a specific rule is not being followed

60
New cards

identifiers

the names given to entities sych as class,vars, and functions

61
New cards

keywords

are identifiers that have special meanings for the compiler

62
New cards

abstract

specifies that the class is abstract

63
New cards

boolean

this data type specifier mentions taht a particular var is boolean

64
New cards

byte

stipulates a specific byte type var

65
New cards

case

specifies the program to be performed if a particular case is satisfied

66
New cards

catch

during a throw case of error handling, encloses actions to be performed if an exception occurs

67
New cards

break

breaks the control out of a loop

68
New cards

void

renders a method non returnable

69
New cards

char

specifies that the var is of character type

70
New cards

class

specifies the creation fo a new class followed by its name

71
New cards

extends

used to indicate theat the class mentioned after it is the derivation of a superclass

72
New cards

Literals

indentifiers that have a particular value in themselves

73
New cards

Decimal

any number base 10

74
New cards

binary

any number base 2

75
New cards

octal

any number base 8

76
New cards

hexadecimal

any nuber base 16

77
New cards

floating poing decimal

numeric values only using a decimal point. represent fractional numbers

78
New cards

character literals

are literals that deal with characters

79
New cards

single quoted character

all unilength characters enclosed within single quotes

80
New cards

escape sequences

characters preceded by a backlash

81
New cards

unicode representation

represented by \u

82
New cards

comments

are needed whenever the developer needs to add documentation

83
New cards

//

singleline documentation

84
New cards

/* */

multiline documentation

85
New cards

/** */

documentation comment

86
New cards

unicode

is universal international standard character encoding capable of representing most of the worlds written languages.

87
New cards

ASCII

American Standard code for information interchange

88
New cards

Widening

converting one type having a lower type into a higher type

89
New cards

Narrowing

converting higher datatype to a lower data type

90
New cards

Typecasting

when you assign a value of one primitive datatype to another type

91
New cards

Parsing

used to convert the value of one data type to the value of another data type

92
New cards

Concatenation

joining two strings together

93
New cards

JOptionpane

simple way to make a UI component

94
New cards

showMessageDialog()

allows for only a message and an OK button

95
New cards

showConfirmDialog()

allows for various combinations of OK,YES,NO, and CANCEL BUTTON

96
New cards

showOptionDIalog()

will enable you to display buttons containing text of your choice.

97
New cards

showInputDialog()

allows the user to enter arbitrary information in a text field or with a combo box list of values. It provides only OK and CANCEL buttons

98
New cards

Sequence

an action or event leads to the next ordered action in predetermined order.

99
New cards

Branching

altering the flow of program execution by making a selection or choice

100
New cards

Looping

Altering the flow of porgram execution by repetition of the statements()