If you would like to look up the answers for the following quiz questions, you can check our discussion forum. If you don't find an answer in the forum, you may create a post asking for an answer to a particular question.
Which of the following are valid type casts in Java?
☐ int x = Integer.parseInt("123");
☐ int x = (int)
Double.parseDouble("123.47");
☐ int x = (int) 123.47;
☐ int x = (int) "123";
Complete the following code, so that the Book JPA
entity class contains a property named isbn, with
String type and playing the role of the standard
identifier:
@Entity @Table( name="books")
public class Book {
@_________________
___________ isbn;
}Which of the following classes are valid JavaBean classes:
☐
public class Person {
private String name;
public String getName() {return this.name;}
public void setName( String n) {this.name = n;}
}☐
public class Person {
private String name;
public Person() {}
public Person( String n) {this.setName(n);}
public String getName() {return this.name;}
public void setName( String n) {this.name = n;}
}☐
public class Person {
private String name;
public Person( String n) {this.setName(n);}
public String getName() {return this.name;}
public void setName( String n) {this.name = n;}
}☐
public class Person {
String name;
public Person() {}
public Person( String n) {this.setName(n);}
public String getName() {return this.name;}
public void setName( String n) {this.name = n;}
}Complete the following code with the JSF construct which results
in using date as value of the @type attribute
of the rendered input HTML5 element.:
<h:form id="createForm">
...
<h:outputText value="Date of Birth: " />
<h:inputText id="birthDate"
p:________________ value="#{person.birthDate}">
</h:inputText>
...
</h:form>