Internet Computing - Quiz 1

studied byStudied by 6 people
5.0(1)
get a hint
hint

False

1 / 42

Tags and Description

43 Terms

1

False

To program in Java we must have an IDE (true/false)

New cards
2

compiled, interpreted

Java program is ____ and ____ to native machine code

New cards
3

attributes, methods

In the context of Object oriented programming, classes have ____ and _____

New cards
4

false

Objects are templates for Classes (true/false)

New cards
5

true

Objects are instances of classes and objects have an identity (true/false)

New cards
6

Writing, compilation, interpretation, execution

Steps for running a java program

New cards
7

true

The file name must match the name of the public class defined in a file (true/false)

New cards
8

Aggregation

If a class has an attribute of which is another class, the relationship is called:

New cards
9

implements

____ is the keyword used to connect classes and interfaces

New cards
10

Private, Protected, "Default", Public

The order of access modifiers from most restrictive to not restrictive

New cards
11

Encapsulation

Interfaces are provided for clients to access a component. Interfaces ensure a proper ____ of the component

New cards
12

allows

List ______ duplicate entries

New cards
13

does not allow

Set ____ duplicates

New cards
14

final

_____ is the keyword if you do not want a class to be inherited by others

New cards
15

Packages

______ are used to organize related classes

New cards
16

"has a"

Aggregation in OOAD defines ____ relationship between 2 classes

New cards
17

"is a"

Inheritance in OOAD defines ____ relationship between 2 classes

New cards
18

true

A superclass implements an interface in Java (true/false)

New cards
19

super()

Keyword to invoke the constructor of the superclass

New cards
20

Overriding

______ is termed as creating a new method with the same signature as a method in the superclass

New cards
21

Use case diagram

To describe the interactions between actors and use cases in a system

New cards
22

Association

Which type of relationship in a use case diagram indicates that an actor is involved in a use case?

New cards
23

Arrays

Not a part of the Java collection framework

New cards
24

Inheritance

The method to create hierarchy between classes by inheriting other classes

New cards
25

Abstract classes

base class used to provide common interface/behavior for its subclasses; cannot be instantiated

New cards
26

Abstract methods

Methods declared in an abstract class do not have any implement; signature of a method

New cards
27

extends

Keyword to implement inheritance

New cards
28

Public

Accessible to everyone

New cards
29

Default

Protected access; only access to classes in a current package

New cards
30

Protected

Can only be accessed within the class or classes that are inheriting from classes

New cards
31

Private

Can only be accessed within the class

New cards
32

Constructors

Methods used to initiate a class and its attribute

New cards
33

Static

Creates one copy for the entire scope (class)

New cards
34

Final

Prohibits overriding of method and extensions of classes

New cards
35

Interfaces

A collection of abstract methods and static final variables that defines a set of behaviors for a class to implement;

New cards
36

Interfaces

Utilized in polymorphism to set up methods to be overridden later with actual class instantiations

New cards
37

Polymorphism

Allows objects of different classes to be treated as if they were objects within the same class

New cards
38

Overloading

Same method name, different parameters

New cards
39

Overriding

Same method but subclass overwrites superclass's method

New cards
40

List

Prioritizes the order of elements, contains null and duplicates

New cards
41

Sets

Order does not matter and can only have unique values

New cards
42

Sets

Allows a null

New cards
43

Maps

key-value pairs, keys cannot be duplicates but values can

New cards

Explore top notes

note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 17 people
Updated ... ago
5.0 Stars(2)

Explore top flashcards

flashcards Flashcard40 terms
studied byStudied by 50 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard39 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(3)
flashcards Flashcard35 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard53 terms
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard60 terms
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard43 terms
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard64 terms
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard342 terms
studied byStudied by 23199 people
Updated ... ago
4.4 Stars(115)