Lecture 2 Flashcards

1
Q

What is casting

A

Casting is a mechanism of converting the value of an object or primitive type into another type.

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

Describe java.lang

A

Classes that apply to the language itself, which includes the Object class, the String class, and the System class. It also contains the special classes for the primitive types (Integer, Character, Float, and so on).

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

Describe java.util

A

Utility classes, such as Date, as well as simple collection classes, such as Vector and Hashtable.

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

Describe java.io

A

java.io: Input and output classes for writing to and reading from streams (such as standard input and output) and for handling files.

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

Describe java.net

A

java.net: Classes for networking support, including Socket and URL (a class to represent references to documents on the World Wide Web).

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

Describe java.awt

A

(the Abstract Window Toolkit): Classes to implement a graphical user interface, including classes for Window, Menu, Button, Font, CheckBox, and so on.

This package also includes classes for processing images (the java.awt.Image package).

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

Describe java.applet

A

java.applet: Classes to implement Java applets, including the Applet class itself, as well as the AudioClip class

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

How to declare Arrays in Java

A

String[] difficultWords;
int[] temps;
String Records[][];

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

How to create an array object

A

String[] difficultWords = new String[10];
String Records[][] = new String[10][80];
int[] temps=new int[5];

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

What is a block statement

A

A block statement is a group of other statements surrounded by braces ({}).

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