Basics Flashcards
What is Source code
Human Understandable code written using english
Native code (or) binary code (or) Machine code
Machine Understandable code written using low level programming language
Byte Code
Jvm understandable code generated by java compiler
Low Level Programming Language
Written using binary digits
Middle Level Programming Language
Written using assembly codes like add,sub,mul,div
High Level Programming Language
written using english
Compiler
compiler is a translator used to convert Source code to byte code
JVM
used to convert byte code to machine code
provides runtime environment.Doesnot physically exist
JRE
it is an implementation of Jvm.physically exist
JVM+class libraries
JDK
contains JVM+JRE+java deveopment tools=>javadoc,jar
JIT
Converts necessary part of byte code to machine code instead of line by line
Difference between c++ and java
c++ supports pointers
java doesnt support pointers
c++ supports go to statement
java doesnot support go to statement
c++ supports multiple inheritance
java doesnot supports multiple inheritance
c++ is platform dependent
java is platform independent
c++ is use compiler only for compile and run the program
Class Loader
Subsytem of jvm.whenerver java program is run it loaed by the classloader first
default value of local variables
no default value.local variables should be initialized before use it
access Modifiers
public=>can be access from anywhere
private=>can be access within the class
protected=>within the package and sub class of another package
default=>within the package