Basics Flashcards

1
Q

What is Source code

A

Human Understandable code written using english

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

Native code (or) binary code (or) Machine code

A

Machine Understandable code written using low level programming language

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

Byte Code

A

Jvm understandable code generated by java compiler

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

Low Level Programming Language

A

Written using binary digits

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

Middle Level Programming Language

A

Written using assembly codes like add,sub,mul,div

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

High Level Programming Language

A

written using english

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

Compiler

A

compiler is a translator used to convert Source code to byte code

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

JVM

A

used to convert byte code to machine code
provides runtime environment.Doesnot physically exist

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

JRE

A

it is an implementation of Jvm.physically exist
JVM+class libraries

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

JDK

A

contains JVM+JRE+java deveopment tools=>javadoc,jar

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

JIT

A

Converts necessary part of byte code to machine code instead of line by line

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

Difference between c++ and java

A

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

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

Class Loader

A

Subsytem of jvm.whenerver java program is run it loaed by the classloader first

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

default value of local variables

A

no default value.local variables should be initialized before use it

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

access Modifiers

A

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

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

can a class can be name only with .java

A

yes.it has to compile with javac.java
run with the class name

17
Q

Memory areas

A

class area:stores method codes and static methods
heap area:stores objects
stack area:stores local varaiables
program counter register:contains the addresses of current execution code
native area:contains native methods