Question
Why SocketUtil is used

Answers

SocketUtil is a class that provides the utility to simplify the creation of streams that are used in network programming. This is used in NetworkClient and HttpClient. It contains the socket related functions. Its main function is to find unusued ports and to check that the ports are in use or not. It is also used to check the localhost address.
- The syntax can be:
isLocalhost
public static boolean isLocalhost(java.lang.String host)
- It checks the host name or IP address by looking for the local machine.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q How to refer a global variable in local procedure?
  • Q When you come across roadworks?
  • Q Share a situation when a project or proposal of yours met resistance or was not adopted in a timely fashion. How did you handle this dilemma ?
  • Q How do i get access to the j2ee session from my remoteobjects?
  • Q How can I invoke another program or command and trap its output?
  • Q What if any unusual objects have you swallowed?
  • Q Explain which of the following is an antifungal, flucytosin, cytosine arabinoside, 5 fluourasil, procarbazine.
  • Q A question on until until (who |grep mary) do sleep(60) done
  • Q The Indian Railways has launched the main arch of the world"s highest bridge over which river?
  • Q Who among these did not get bharat ratna?
  • Q What are the differences between get and post methods in form submitting, give the case where we can use get and we can use post methods?