Chapter 2 Flashcards

1
Q

Which thing make JAVA portable

A

JVM

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

What is JAVA byte code

A

Java code convert into JAVA byte code which JVM understands.

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

Is JAVA platform independent

A

Yes

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

What is the difference between JAVA and C++

A

Java has destructors (garbage collection). Java do not have pointers. Java have no templates. Java have no header files. Java is OOP

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

Please list down JAVA front and web development technologies

A
  • Servlets
  • JSP
  • JSF
  • Applets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are business components for JAVA

A

EJBs

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

What is used for database in Java

A

JDBC

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

In Java, some time it happens that business, database and user objects are reside on different machines. How to link them.

A

using RMI (Remote Method invocation)

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

What is JVM verifier

A

It make sure robustness, security and safety on java code

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

What software required for java to run on machine

A

JDK (java development kit)

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

Is there any global functions or global variables in Java

A

No

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

How to compile java program

A

javac filename.java

It converts code into byte code

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

How to run the compiled file

A

java filename

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

Who creates byte code

A

compiler

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

Who puts byte code into memory

A

class loader

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

Who read byte code

A

interpreter

17
Q

What is the naming convention for Java

A
class = MyClass
method = myMethod()
variable = myVariable
constant = MY_CONSTANT
18
Q

How much public class are allowed in a source file

A

1