Professional Documents
Culture Documents
It404 March 04 2014
It404 March 04 2014
IT-2A
1. Write a Java class with a method which accepts parameters belonging to any
type.
The method should:
a)
b)
c)
d)
Think:
i)
ii)
Return type
iii)
iv)
v)
vi)
vii)
viii)
ix)
java.lang.Object
x)
xi)
soham.jisit@gmail.com
+91-9830-740-684
http://sohamsironline.weebly.com
Page 2 of 2
IT-2A
You learned:
Why to use Object array
Object can be substitute or Proxy to any type
Java 1.5 onwards primitive types automatically
become object of respective Wrapper classes
o Boolean Boolean
o Integer int
o Double double
o Character char
etc.
soham.jisit@gmail.com
+91-9830-740-684
http://sohamsironline.weebly.com