Chapter 5 Flashcards

1
Q

What is “NoClassDefFoundError” error

A

If java filename given wrong in execution

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

What is “NoSuchMethdError” error

A

main error

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

What is “can not resolve symbol” error

A

variable or method does not exists

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

What is null pointer exception

A

Variable not pointing to anything

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

What is the basic purpose of inheritance

A

Reuse

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

Java support which inheritance

A

Single inheritance

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

Does all functions are virtual

A

Yes

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

What is super keyword in java

A

The super keyword in java is a reference variable which is used to refer immediate parent class object.

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

What is type casting

A

Conversion of data type

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

What is upcasting

A

We take small data type to big data type

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

What is downcasting

A

We take large data type to small data type e.g. double -> int. There is chance of loss of information. We need to tell explicitly.

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