I have heard about a few classes like HTMLAnchor,HTML Button,HTMLText field........et c.
However, what is the use of those classes? Some say they correspond to HTML controls on the page.
But how do I use it....and ain't these HTML controls independent...I mean they really don't have any OOP relation.Do they?
User Profile
Collapse
-
What is the use of HTMLXXX classes?
-
So if I don't specify the port no. "The Output will be -1. but the port that will be used to access the resource will be 80 i.e HTTP". Am i correct? -
-
So what if I specify the port 23 and the protocol as HTTP
as in case of,
Sorry to say but i was enable to get your point in the previous thread!!!Code:URL u=new URL("http://www.osborne.com:23/index.html");Leave a comment:
-
Is port no. necessary in networking through URL class?
In the following code:
I haven't explicitly specified the Port No. in the URL above, but is it so "that port nos. ain't necessary"...Code:public class URLDemo { public static void main(String args[])throws Exception { URL u=new URL("http://www.google.com"); System.out.println("Port No : "+u.getPort()); } } -
Zaid181294 replied to What is the difference between getPort() and getLocalPort() of the Socket class?in JavaBut isn't a Socket like an end point between two communicating entities.for instance,
server--------------------|socket|-----------------client
So the question arises that how can we have two end-points in a connection.( I seriously can't grab this one!!!)Leave a comment:
-
Zaid181294 started a topic What is the difference between getPort() and getLocalPort() of the Socket class?in JavaWhat is the difference between getPort() and getLocalPort() of the Socket class?
Some may say thatreturns the "Local Port" andCode:getLocalPort()
returns the "remote Port" but what i find interesting yet ironically confusing is that how can be there two ports associated with the same Socket?Code:getPort()
No activity results to display
Show More
Leave a comment: