Top 50+ Java Networking Interview Questions and Answers - 3
Question: 11
In OSI N/W Architecture, the routing is performed by which layer?
Network Layer
Question: 12
How do I convert a numeric IP address like 192.18.97.39 into a hostname like java.sun.com?
By InetAddress.getByName (“192.18.97.39”).getHostName() where 192.18.97.30 is the IP address.
Question: 13
How do I make a connection to URL?
You obtain a URL instance and then invoke openConnection on it.
URLConnection is an abstract class, which means you can’t directly create instances of it using a constructor.
We have to invoke OpenConnection method on a URL instance, to get the right kind of connection for your URL.
Related Questions
Recent Articles
GATE Chemical Engineering Study Materials, Notes 2024-2025 More
GATE Chemical Engineering Questions and Answers More
GATE 2024-2025 Question Paper Pdf Download More
Banking Awareness Questions 2024-2025 More
Computer Quiz Questions for Bank Exams More
Computer Quiz Questions for Bank Exams More
March-28-2024
| Meritnotes
GATE Chemical Engineering Questions and Answers More
March-27-2024
| Meritnotes
GATE 2024-2025 Question Paper Pdf Download More
March-26-2024
| Meritnotes
Banking Awareness Questions 2024-2025 More
March-25-2024
| Meritnotes
Computer Quiz Questions for Bank Exams More
March-24-2024
| Meritnotes
Computer Quiz Questions for Bank Exams More
March-24-2024
| Meritnotes
Trending Posts
Top 50+ Maths IQ Test Questions and Answers More
1000+ Electrical Machines MCQ Questions and Answers Pdf More
1000+ Silicon Valley Bank Aptitude Test Questions and Answers Pdf More
1000+ General Knowledge Questions and Answers 2022 More
100+ Problems on Trains Aptitude Questions and Answers More
Top 500+ TRB Physics Question Paper with Answers More
February-07-2021
| Meritnotes
1000+ Electrical Machines MCQ Questions and Answers Pdf More
February-21-2023
| Meritnotes
1000+ Silicon Valley Bank Aptitude Test Questions and Answers Pdf More
March-28-2023
| Meritnotes
1000+ General Knowledge Questions and Answers 2022 More
March-27-2022
| Meritnotes
100+ Problems on Trains Aptitude Questions and Answers More
August-06-2021
| Meritnotes
Top 500+ TRB Physics Question Paper with Answers More
August-28-2019
| Meritnotes