Model 1: Basic Java Programming Flashcards

1
Q

A Java program is structured in a

A

specific and particular manner.

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

The new features and upgrades included in Java changed the face of the programming environment and gave a new definition

A

to Object-Oriented Programming (OOP in short)

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

The primary goals in the creation of the Java language:

A
  • It is Simple & Portable: Memory Management using Pointers is not allowed.
  • It is Object-Oriented.
  • It is Independent of the host platform.
  • It is Secured & Dynamic: Designed to execute code from remote sources securely.
  • It contains language facilities and libraries for Networking.
  • High Performance: With the use of JIT (Just-In-Time) compilers, Java achieves high performance through the use of byte code that can be easily translated into native machine code.
  • It is Robust: Java has its own strong memory management system. This helps to eliminate errors as it checks the code during compile and runtime.

-Java is Multithreaded: It supports multiple executions of threads (i.e., lightweight processes), including a set of synchronization primitives.

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

Java is a popular programming language

A

for embedded system development, back end systems and APIs.

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

An embedded system is a combination of

A

computer hardware and software designed for a specific function.

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

Method definitions

A

are grouped into classes

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

Most lines of code end in a semi-colon but for

A

Method and class definitions do not.

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

The main unit of organization in a Java program

A

is the class

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

Indentation: Every method declaration in a class should be indented one level.

A

Then, the body of the method should be indented another level as well.

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