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

Answer Posted / ss

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

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain enumeration in java?

569


What is the difference between exception and error in java?

493


Write code to implement bubble sort in java?

560


What are synchronized blocks in java?

604


How do you remove duplicates in java?

528






Why we used break and continue statement in java?

559


Differences between traditional programming language and object oriented programming language?

572


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1022


How we can execute any code even before main method?

555


Explain different types of thread priorities ?

626


What is the reason behind using constructors and destructors?

558


Can we force the garbage collection to run?

538


Why local variables are stored in stack?

500


Is singleton class thread safe?

539


Why is java architectural neutral?

617