Core Java Interview Questions Part 16/Streams and Files and Networking in java.

Hello Friends, In this Blog Post(Core Java Interview Questions) I am going to let you know about a few more interview questions of core java related to Streams and Files and Networking in java.

Core java interview questions covers all the important questions of the topics mentioned above.

These core java interview questions is a great help to remember all the important highlights and important topics from each java chapter.

These interview questions will surely help to understand a few very confusing concepts in java.

What is the difference between System.out and System.err?

Both are used to display message on the monitor. System.out is used to display normal messages as:

System.out.println(“hello”);

System.err is used to display any error messages in the program as:

System.err.println(“This is an error”);

What is the advantage of stream concept?

A stream is used to moving data from one place to another place. This concept can be used to receive data from an input device and send data to an output device.

What is the default buffer size used by any buffered class?

It is 512 bytes.

What is serialization?

Serialization is the process of storing object contents into a file. The class whose objects are stored in the file should implement the ‘serialization’ interface of java.io package.

Which type of variables can not be serialized?

Static and transient variable can not be serialized.

Once the objects are stored into a file, they can be later retrieved and used as and when needed.

What is de-serialization?

De-serialization is a process of reading back the objects from a file.

What is IP address?

An IP address is a unique identification number allotted to every computer on a network or internet. IP address contains some bytes which identify the network and the actual computer inside the network.

What is DNS?

Domain naming service is a service on the internet that maps the IP addresses with corresponding website names.

What is socket?

A Socket is a point of connection between a server and a client on a network.

What is port number?

Port number is a 2 byte number which is used to identify a socket uniquely.

So this was all about the Core java interview questions in this topic.

These Core java interview questions could be a great help in your college viva, academic study, and any job interview.

In the case of any queries, you can write to us at [email protected] we will get back to you ASAP.

Hope! you would have enjoyed this post about core Java Interview Questions Part 16/Streams and Files and Networking in java.

Please feel free to give your important feedbacks in the comment section below.

Have a great time!

Anurag

I am a blogger by passion, a software engineer by profession, a singer by consideration and rest of things that I do is for my destination.