When the port number is changed »



When a new Socket is created new port number should be allocated.
When the service on the same socket is changed, a new port number should be alloted.
Note :- Some alloted port numbers :
port no. Application
13                                    Date and time Services
21                                    FTP,Which transfers files
23                                   Telnet,Which provides remote login
25                                   SMTP,Which delivers mail messages
67                                   BOOTP,Which provides configuration at  boot [...]

Which of the Collection Classes will not allow duplicate values »



Rep) Sets (or) set Classes will not allow duplicate values

Load Factor »



Ques) What is LoadFactor?
Rep) LoadFactor is useful to determine the point where the capacity of the Hashtable (HashMap) will be doubled For Hashtable initial capacity * loadfactory–>11 * 0.75=8
This class implements a hashtable, which maps keys to values. Any non-null object can be used as a key or as a value.To successfully store and retrieve [...]

Collection FrameWork »



Q) What is Collection FrameWork?
Res) A Collection FrameWork represents a class library to handle groups of objects
–> Collection framework is implemented in Java.Util.Package.
–> Collection does’t store copy of all the object, but it stores references of all objects.
–> Collection classes will act upon only referenced datatypes they do not act upon primitive datatypes.