(Choose 1 answer)
Consider the following java code:
//in file Book.java
package com.bookstore;
public class Book
{ private long isbn;
public Book(){ isbn = 0; }
public long getlsbn(){ return isbn; }
public void setIsbn (long value) { this.isbn= value; }
}
Code for browse.jsp:
<jsp:useBean class="com.bookstore.Book" id="newbook" />
LINE 1: <jsp:setProperty name="newbook" property="isbn" value="1000"/>
Which of the following statements are correct?
A. The isbn property of newbook will be set to 1000.
B. It will throw an exception at request time because "1000" is a string and isbn is a long.
C. It will not compile.
D. The isbn property of newbook will be set to 1000 if 'value' attribute of 'setProperty' tag is given as: value=1000
FUOS Mi
Q: 20