PRJ302_-_SP_2024_-_FE_1653.webp
Sakura_desu

PRJ302_-_SP_2024_-_FE_1653.webp

(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&nbsp;&nbsp;'value' attribute of 'setProperty' tag is given as: value=1000
FUOS Mi

Q: 20

Thông tin

Category
PRJ302
Thêm bởi
Sakura_desu
Ngày thêm
Lượt xem
1,498
Lượt bình luận
7
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRJ302_-_SP_2024_-_FE_1653.webp
File size
266.6 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom