Basics Flashcards

(23 cards)

1
Q

What is the oops concept?

A

Inheritance, polymorphism, abstraction, encapsulation

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

What is encapsulation?

A

when you set variables to private and use the get and set methods to update and access the variables

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

What is inheritance?

A

when a sub class takes properties from the super class

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

What is polymorphism?

A

many classes that inherit from the same super class and same functions with many actions

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

What is abstraction?

A

is used to hide and show some data to the users.

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

Method Overloading

A

multiple methods have the same name with different classes

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

method overriding

A

subclass can take a method from a parent class and give its own defintion

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

interface

A

completely abstract class that is used to group related methods with empty bodies

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

new keyword

A

is used to create the object

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

instance variables

A

are non static variables that are created outside a method class

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

static

A

we can access the methods without creating the object

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

array

A

multiple values ti a single variables

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

java collection

A

a single unit of objects i.e. a group

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

collection types

A

arraylist, linklist, hashset, hashmap

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

hashmap and hashset

A

multiple values; doesnt allow duplicate values

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

hashmap

A

key and value pair; cannot duplicate the key but can the value

17
Q

linklist

A

like arraylist but with more features

18
Q

arraylist

A

resizable array

19
Q

access modifiers

A

public, private, protected, default

20
Q

public

A

accessible from every class

21
Q

private

A

accessible from within the class

22
Q

protected

A

accessible within the packaged

23
Q

default

A

same as protected but becomes default when not declared