Question
Java | Answer all the questions 1. When you change your database from MySQL to Oracle in your Java code using JDBC, other than changing
Java | Answer all the questions
1. When you change your database from MySQL to Oracle in your Java code using JDBC, other than changing the JDBC drivers name and the database URL, you do not need to change anything else in your programs.
(a)true
(b)false
2. Which of the following APIs used in JDBC is for application programmers?
(a) JDBC API only
(B) JDBC drivers API only
(c) both JDBC API and JDBC drivers API
3. In a JavaBean, the name of a property must be the same as the name of an instance variable.
(a) true
(b) false
4. Variables stored in which of the following scopes have the highest priority to get evaluated?
(a) page
(b) request
(c)session
(d)application
5. If a JavaBean is not serializable, then it cannot be used in any web application.
(a)true
(b)false
6. If a JavaBean has a property called username, then which of the following must be true?
(a) The JavaBean has an instance variable called username.
(b)The JavaBean has a getter called getUsername
7. In any JavaBean, all the getters must have a name that starts with get, then adds the property name with the first character capitalized.
(a) true
(b) false
(c)The JavaBean has a setter called setUsername
8. In a distributed system, when a set of Java objects created in one JVM are trans-fered to another JVM, these objects are required to be serializable so as to work in the system seamlessly.
(a) true
(b) false
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started