I want to know the host name and provider name for tcs web
mail

Answer Posted / abhilash

String hostname= InetAddress.getByName("portno of tcs
mail").getHostName();

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java free for commercial?

491


What are the differences between the constructors and methods?

579


Explain creating threads by extending thread class ?

580


Is oracle charging for java?

548


How we can make copy of a java object?

653






What is lambda expression in java?

543


What kind of variables can a class consist?

590


What is variable and constant explain with example?

532


Is overriding possible in java?

507


How do you compare two strings lexicographically?

539


what is the volatile modifier for? : Java thread

521


When to use runnable interface vs thread class in java?

526


What are the fileinputstream and fileoutputstream?

569


What does 0 mean in boolean?

542


Is static a keyword in java?

525