Basic Concepts A Hello World Program Flashcards

1
Q

Every program in java must have a____

A

Class

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

What is the use of JVM?

A
  • Enables WORA(Write once run everywhere)

- A run-time engine that runs java

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

What is OOP?

A

Object Oriented Programming

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

What does OOP stands for?

A

Object Oriented Programming

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

Is Class user-defined or pre-defined?

A

User-defined.

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

Class includes____&____that are common to _____of one type.

A

methods ; properties; objects

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

Every program starts from a ___ method.

A

Main

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

What is the most basic signature of Main method to start a java program?

A

public static void main(String[]args)

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

What is the most basic signature of Main method to start a java program?

A

public static void main(String[]args)

-the parenthesis enclose parameters

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

What is other name of objects?

A

Instance

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

Static describes how ___is managed in___

A

objects ; memory

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

Static variables & methods is included in A but not B.

A

A: Class
B: instances

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

Static variables & methods is included in A but not B.

A

A: Class (belongs specifically in a class)
B: instances

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

Is void a method or class?

A

Method

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

What does void do?

A

Return no values

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

What does PrintIn do and which cat it belongs?

A
  • It prints the line on screen

- It is a method