You have just initialized the Hashtable with initial capacity and loadfactor. There is no key and value in the table, you have to use put method to actually get some size. m.put(new Test17(), "Hello"); System.out.println(m.size());
Modify your code as above and see the output. Hope this helps you.
Cheers,<br />Jay<br /> <br />(SCJP 1.4)<br />Heights of great men were not achieved in one day, they were toiling day and night while their companions slept.