Definitions Flashcards

1
Q

Define Byte Code

A

The optimized instruction created by Java compiler from a java class. Carries a .class extension. Is sent to interpretation for native machine.

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

Define JVM

A

Is a java system software that converts byte code to machine code depending upon the machine.

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

Define JIT

A

Interprets the whole java byte code in one go to machine code. Makes the interpretation step faster. Interprets only the required byte code.

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

Define Garbage Collector

A

Background memory management tool that handles clearing memory space by java program so that user does not have to.

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

Define fundamental datatypes

A

supplied by language developers to define value storage, can’t store multiple values.

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

Define derived data types

A

store multiple values. eg arrays

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

Define User defined data types

A

combination of fundamental data types to store different types of data

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

Define method overloading

A

Method name is same; but signature is different

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

Define method overriding

A

Method name is same; but method body is different

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

What is class loader sub system or Java ClassLoader

A

Part of java run time environment that loads class dynamically into JVM.

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

Duplicate methods

A

Have same return type, and same signature.

Need not have same body.

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

Wrapper class

A

classes that can wrap objects around primitive data types

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

Constructor

A

special method that is automatically called for object creation by JVM. can be used to initialize member methods.

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

Default Constructor

A

A constructor that has empty parameters.
Also known as system constructor.
Is provided by default to all classes in JVM.

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

Object Parameterized Constructor

A

Copy Constructor.

Takes object of same type as parameter, copies corresponding values into new object.

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

Overloaded/Parameterized Constructor

A

same name as constructor name, and different signature(no. of para/type of para/order of para – at least one is different)

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

javap

A
command to list class profile(name, attributes, methods, and constructors).
To be used only after compilation of a program.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Factory Method

A

a method that has same return type as class to which it belongs.

19
Q

Define Inheritance

A

the process of deriving data members and methods from one class into another

20
Q

base class

A

the class giving its members/methods to another class in inheritance also known as super/parent class.

21
Q

derived class

A

the class taking members/methods from another class in inheritance also known as child/sub class

22
Q

StackOverFlowError

A

when a method is called indefinitely, it fills up the stack memory, and causes this error.

23
Q

Polymorphism

A

one things takes on many different forms

24
Q

what does BLC stand for?

A

Business Logic Class

25
Q

static binding

A

type of polymorphism that happens during compile-time. the method to be resolved is decided at compile-time.

26
Q

dynamic binding

A

type of polymorphism that happens during runtime. the method to be executed can be resolved only during runtime when objects are known to JVM.

27
Q

abstract concrete class

A

a class that has only null body methods; it needs the abstract keyword.

28
Q

null block method

A

a method that is defined but has no statements.

29
Q

interface in java

A

collection of universal common reusable data members, and methods | collection of public static final data members and public abstract methods.

30
Q

functional interface

A

an interface having only one abstract method which is implemented in an anonymous inner class

31
Q

API

A

Application Programming Interface; collection of packages.

32
Q

package

A

collection of other packages, classes, and sub packages

33
Q

Access modifiers

A

show sharing privileges; applied to classes and interfaces

34
Q

Access specifiers

A

show sharing privileges; applied to data members and data methods

35
Q

Exception

A

a run time error that occurs in java program

36
Q

checked exceptions

A

direct subclasses of java.lang.Exception these are caught by the compiler at compile time itself even before they get into runtime;

example: FileNotFound, Interrupted, IOException, ClassNotFound

37
Q

un-checked exceptions

A

direct subclasses of java.lang.RuntimeException these are caught only at runtime

38
Q

technical definition of exception

A

An object that is created at runtime, and has the error message.

39
Q

if a common method has “throws” keyword, it is called

A

common exception methods

40
Q

define a thread

A

a flow of control in a program is called a thread.

41
Q

Define FGT

A

Foreground Thread: a thread that executes programmers java logic.

42
Q

Define BGT

A

Background Thread: a thread that monitors the execution of foreground threads.

43
Q

Define address space

A

Temporary space created in memory for execution of method

44
Q

Define mutators and inspectors

A

same as setter and getter methods.