Lecture 2 Flashcards
What is casting
Casting is a mechanism of converting the value of an object or primitive type into another type.
Describe java.lang
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).
Describe java.util
Utility classes, such as Date, as well as simple collection classes, such as Vector and Hashtable.
Describe java.io
java.io: Input and output classes for writing to and reading from streams (such as standard input and output) and for handling files.
Describe java.net
java.net: Classes for networking support, including Socket and URL (a class to represent references to documents on the World Wide Web).
Describe java.awt
(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).
Describe java.applet
java.applet: Classes to implement Java applets, including the Applet class itself, as well as the AudioClip class
How to declare Arrays in Java
String[] difficultWords;
int[] temps;
String Records[][];
How to create an array object
String[] difficultWords = new String[10];
String Records[][] = new String[10][80];
int[] temps=new int[5];
What is a block statement
A block statement is a group of other statements surrounded by braces ({}).