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 |
What is mnemonic in assembly language?
What is OOP's Terms with explanation?
State the merge-sort principle and its time complexity.
0 Answers Akamai Technologies,
Can static methods access instance variables in java?
What are the restrictions imposed on method overriding?
What flag up means?
What is java english?
Is java call by reference?
Is java 9 released?
Explain the hierarchy of java exception classes?
Difference between Interface & Abstract class?
What is regex java?