I want to know the host name and provider name for tcs web
mail
Answers were Sorted based on User's Feedback
Answer / deepak divvela
String hostname=Inetaddress.getAddress("portno of tcs
mail").getHostName();
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / abhilash
String hostname= InetAddress.getByName("portno of tcs
mail").getHostName();
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / ajay agarwal
String hostname=Inetaddress.getAddress("portno of tcs
mail").getHostName();
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shaik baji
import java.net.*;
class GetIPAddress
{
public static void main(String[] args) throws
Exception
{
InetAddress obj = InetAddress.getLocalHost
();
String ipAddress=obj.getHostAddress();
System.out.println(ipAddress);
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ss
String ipAddress=InetAddress.getByName
("www.tcs.com").getHostAddress();
| Is This Answer Correct ? | 0 Yes | 2 No |
Which java version is latest?
What is the difference between serialization and deserialization?
What is the use of bufferedreader?
How 'java' got its name and what it stands for?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What is a dynamic array in java?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What is scope & storage allocation of global and extern variables? Explain with an example
Can we print null in java?
Is Cegonsoft Pvt.Ltd. a good Institute?
What are different types of arrays?
What is static variable and static method?
32 Answers Accenture, Prolific, Prolifics, TCS, TNH,