| 1600 PMP mock questions | 1400 CAPM mock questions | 800 SCJP 6 mock questions | 600 OCAJP 7 mock questions | 590 OCPJP 7 mock questions | 556 SCWCD 5 mock questions | 500 OCEJWCD 6 mock questions | pdfDownload (java,struts, hibernet etc) | JobsJobs and Walkins |
|
Java online test
JSP online test ORACLE online test Hibernate online test Servlet online test Struts online test EJB online test C online test C++ online test Aptitude online test |
What is the difference between int and Interger? |
|
|
int is primitive type and Integer is Wrapper Class.
For Example : int i=2; Integer i = new Integer (2); You can have question like why we need Wrapper Class(Integer )? Answer is , if you are using Collection objects like Hashtable etc. you can't use int as a key .you have to use object so you can use Integer class. Hashtable ht = new Hashtable (); ht.put(2, "USA") ;// You can do this ht.put(new Integer(2), "USA") ;// you have to do like this. |
Suggested JobsMore Jobs >> |
|
Online Practice TestJava online testJSP online test ORACLE online test Hibernate online test Servlet online test Struts online test EJB online test C online test C++ online test Aptitude online test |