<
jsp:useBean id="myInt" class="java.lang.Integer" />;
The above is supposed to create a Bean , however Integer does not have a constructor with no arguments.
options
1) compilation error
2) runtime error (InstantiationException)
(there are other options which arent relevant as the page wont proceed beyond compilation or throw runtime exception)
answer given is 2. (Whizlabs)
shouldn't 1 be the answer? as the compiler will come to know that Integer doesn't have a no argument constructor.
[ April 20, 2008: Message edited by: Ash More' ]
[ April 20, 2008: Message edited by: Ash More' ]