By Ramakrishna on Dec 17, 2008 in JAVA UTIL QUESTIONS | 0 Comments
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 [...]
By Ramakrishna on Nov 8, 2008 in JAVA UTIL QUESTIONS | 0 Comments
Rep) Sets (or) set Classes will not allow duplicate values
By Ramakrishna on Nov 6, 2008 in LoadFactor | 0 Comments
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 [...]
By Ramakrishna on Nov 6, 2008 in Collection FrameWork, Uncategorized | 0 Comments
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.