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

Answer Posted / ajay agarwal

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does thread synchronization occurs inside a monitor?

557


Why is stringbuffer thread safe?

567


What do you understand by the term wrapper classes?

546


What is hasnext in java?

580


Does the order of public and static declaration matter in main method?

619






What are synchronized blocks in java?

604


Why does java does not support multiple inheritance? Explain

549


Can we sort set in java?

542


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

666


What is a instance variable?

583


Is empty .java file name a valid source file name?

587


What is indexof?

547


What are parameters in a method?

585


What’s the difference between the methods sleep() and wait()?

543


How do you sort arraylist in descending order?

578