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 |
Is it possible to instantiate the abstract class?
program to find 25 square = 625 here the 625 of last two digits is equal to 25, i don't know excatly what this type of number is called
Why is stringbuffer thread safe?
What is byte code and why is it important to java’s use for internet programming?
Why we override equals() method?
Is list thread safe in java?
whats is the use of final,in which situation final can be used in the application?
Relationship between an event-listener interface and an event-adapter class?
What are the rules for naming an array?
What is hashmap and map?
What is “try and catch” in java
what is difference between abstract and interface? can i give real time example for the two topics?