Capsule Flashcards

1
Q

static Keyword ?

A

..

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

final Keyword ?

A

..

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

types of package?

A

2 :- User defined & In-built packages

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

How to find size of char[] ?

A
//char ch[]={'a','b'};
ch.length;       //o/p=2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to find size of String ?

A
//String str="hello";
str.length();             //o/p=5
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to find size of array(any) ?

A
//array arr[]={'1', '2, '3'};
arr.length;             //o/p=3
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to use a package in another java program?

A

step 1: package packagename;

step 2: import packagename;

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

Keyword used in Inheritance ?

A

extends

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