Every thread may perform different tasks. Sometimes, it becomes necessay to suspend the execution of a thread for a period of time. This can be done by using suspend() method of the class. We can restart the thread by using resume() method.stop() is used to stop the thread, it cannot be restarted again.
We can create multiple windows(more than one windows) in JInternal Frame class.This is also known as MDI(Multiple document interface).The JInternal Frame is same as Jframe class. We can add all the components (JButton,JTextField,JLabel etc)in all the internal frames.
The FileReader and FileWriter classes are used to read and write 16 bit characters. However,many fie systems use 8 bit bytes. The I/O system of Java provides numerous classes to handle 8 bit bytes. The FileInputStream and FileOutputStream are the most frequently used classes to handle bytes.
The Reader and Writer class comprises various subclasses. These subclasses implement streams that can handle characters. The sub classes used to handle characters in file are FileReader and FileWriter. FileReader is used for reading characters from the file and FileWriter is used for writing character to the file.
The creation and utilization of a disk file involve various decisions to be made, such as an appropriate naming for the file, data type to be used, purpose of creating the file and method used in the creation of file.A Filename refers to a unique string of characters that facilitates easy identification of files on the disk.
Random Access File means that the data can be read from or written to random location in a file. In the File class, data is read from and written sequentially as continuous streams of data. The java.io package comprises a class known as RandomAccessFile that allows performing input/ output operations to any location within a file.
Applets are simple Java programs that runs in web browsers.The creation of web pages is related to Java Applet. An applet is an Internet based Java program that can be included in an HTML page.An applet is a Java class defined in JDK’s java. applet package.
The strlen() function, find the length of a string. This fuction counts the number of characters presents in a string. String.h has to be included in the program before you call the strlen().
A string constant is a series of characters(array of characters or group of characters) enclosed with double quotes(like “GOOD “).A string constant is a one dimensional(str11) array of characters. A character constant is a character enclosed in single quotes.(like ‘G ‘). Each character in a string takes only 1 byte.
Table is the Combination of rows and columns. With the help of Table we can display the data. A software application with a colorless screen interface would be dull and lifeless. Adding colour to it more attractive and captivating. The java.awt.Color class is used to add color to the applications and applets.