Java | Answer all the questions 1. When you change your database from MySQL to O
ID: 3700459 • Letter: J
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 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
Explanation / Answer
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.
Answer: (a)true
yes it is true because When you change your database from MySQL to Oracle in your Java code using JDBC you do not need to change anything else in your programs.
2. Which of the following APIs used in JDBC is for application programmers?
Answer: (a) JDBC API only
3. In a JavaBean, the name of a property must be the same as the name of an instance variable.
Answer: (a) true
yes In a JavaBean, the name of a property must be the same as the name of an instance variable else it wont instanciate.
4. Variables stored in which of the following scopes have the highest priority to get evaluated?
Answer: (d)application
application Variables stored in which of the following scopes have the highest priority to get evaluated
5. If a JavaBean is not serializable, then it cannot be used in any web application.
Answer: (a)true
yes If a JavaBean is not serializable, then it cannot be used in any web application.
6. If a JavaBean has a property called username, then which of the following must be true?
Answer: (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.
Answer: (a) true
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.
Answer: (a) true
Thanks have a great day.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.