Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / deepak divvela

String hostname=Inetaddress.getAddress("portno of tcs
mail").getHostName();

Is This Answer Correct ?    8 Yes 2 No

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

Answer / abhilash

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

Is This Answer Correct ?    4 Yes 3 No

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

Answer / ajay agarwal

String hostname=Inetaddress.getAddress("portno of tcs
mail").getHostName();

Is This Answer Correct ?    1 Yes 0 No

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

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

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

Answer / ss

String ipAddress=InetAddress.getByName
("www.tcs.com").getHostAddress();

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

Which java version is latest?

0 Answers  


What is the difference between serialization and deserialization?

3 Answers   ABC,


What is the use of bufferedreader?

0 Answers  


How 'java' got its name and what it stands for?

11 Answers   Wipro,


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.

0 Answers  


What is a dynamic array in java?

0 Answers  


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

0 Answers  


What is scope & storage allocation of global and extern variables? Explain with an example

0 Answers   IBS,


Can we print null in java?

0 Answers  


Is Cegonsoft Pvt.Ltd. a good Institute?

4 Answers  


What are different types of arrays?

0 Answers  


What is static variable and static method?

32 Answers   Accenture, Prolific, Prolifics, TCS, TNH,


Categories