Short answers Inner class Exception Stream Client Server Rea

Short answers Inner class Exception Stream Client Server Readers and Writers File object Garbage collection

Solution

1. In java, just like methods, class variables can also have another class as member.  The class written inside another class is called inner class and the class encompassing the inner class is called the outer class.

2. Exception is an error encountered in the midst of the execution of the program. It obscurs the normal flow of the program. At times, the programs terminates abnormally.

3 . Stream can be understood as a continuous flow of data. There are 2 main classes. The InputStream - This reads data from the source whereas the OutputStream writes data to the destination.

4.&5 The server waits for the client to generate a request. The client requests a service and the server responds to the request and provides the service.

6. The Java Reader and Writer class has the same functionality as that of the aforementioned InputStream and OutputStream. Here, the point to be noted is that they are character based. They are used to read and write text.

7. The file object represents an instance of the file class. The file object can be used to open and close files, read text from a file, write text to a file , in general modify a file. If the file assigned to the file object is not found, a File not found exception is generated.

8. The garbage collection is the process of cleaning the objects that are no more used by the java program. Garbage collection is done by the garbage collector program on the JVM. So clearing of unused memory results in good memory management.

 Short answers Inner class Exception Stream Client Server Readers and Writers File object Garbage collection Solution1. In java, just like methods, class variab

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site