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 cover all the important questions of the topics mentioned above.
These core java interview questions are 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 Systems? out and System. err?
Both are used to display messages on the monitor. System. out is used to display normal messages as:
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 the stream concept?
A stream is used to move 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 the java.io package.
Which type of variables can not be serialized?
The static and transient variables can not be serialized.
Once the objects are stored in a file, they can be later retrieved and used as and when needed.
What is de-serialization?
De-serialization is the process of reading back the objects from a file.
What is an 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 a socket?
A Socket is a point of connection between a server and a client on a network.
What is the port number?
A Port number is a 2-byte number that is used to identify a socket uniquely.
So this was all about the Core java interview questions on 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 feedback in the comment section below.
Have a great time!