Java basics Flashcards

1
Q

Length in bytes/max value for primitive types

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

Meaning of keywords: static, final, transient

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

this’ and ‘super’ keywords

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

Contract between equals() and hashCode()

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

Access modifiers in Java

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

Explain strictfp, volatile, transient

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

What different between StringBuffer and StringBuilder

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

Purpose, types and creation of nested classes

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

What does it mean that an object or a class is mutable or immutable

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

How to make class immutable

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

Besides “string” do you know any other immutable classes

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

Rules to create equals method (stability, transitivity, reflectivity etc)

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

Difference between overriding and overloading

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

How can we replace multi-inheritance pattern in Java

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

Can interface inherit from different interface

A

Interfaces can inherit from one or more interfaces. The derived interface inherits the members from its base interfaces

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

What is a marker interface

A
17
Q

Regular vs. static initialization blocks

A