Definitions Flashcards
Define Byte Code
The optimized instruction created by Java compiler from a java class. Carries a .class extension. Is sent to interpretation for native machine.
Define JVM
Is a java system software that converts byte code to machine code depending upon the machine.
Define JIT
Interprets the whole java byte code in one go to machine code. Makes the interpretation step faster. Interprets only the required byte code.
Define Garbage Collector
Background memory management tool that handles clearing memory space by java program so that user does not have to.
Define fundamental datatypes
supplied by language developers to define value storage, can’t store multiple values.
Define derived data types
store multiple values. eg arrays
Define User defined data types
combination of fundamental data types to store different types of data
Define method overloading
Method name is same; but signature is different
Define method overriding
Method name is same; but method body is different
What is class loader sub system or Java ClassLoader
Part of java run time environment that loads class dynamically into JVM.
Duplicate methods
Have same return type, and same signature.
Need not have same body.
Wrapper class
classes that can wrap objects around primitive data types
Constructor
special method that is automatically called for object creation by JVM. can be used to initialize member methods.
Default Constructor
A constructor that has empty parameters.
Also known as system constructor.
Is provided by default to all classes in JVM.
Object Parameterized Constructor
Copy Constructor.
Takes object of same type as parameter, copies corresponding values into new object.
Overloaded/Parameterized Constructor
same name as constructor name, and different signature(no. of para/type of para/order of para – at least one is different)
javap
command to list class profile(name, attributes, methods, and constructors). To be used only after compilation of a program.