Java Objective Questions Answers -Chapter 1
-
22. What is meaning of jar
- java archived
- java array
- java architecture
- none of these
Answer :
Option A
-
23. Inheritance means
- Sub class extends super class
- Sub class extends Base class
- Sub class create object of super class
- All of the above
- 1
- 2
- 3
- 4
Answer :
Option E
-
24. There is no default transaction attribute for an EJB
- False
- True
Answer :
Option B
-
25. x=x+1 is equivalent to
- ++x
- x++
- x=x-1
- None of these
Answer :
Option B
-
26. Which of the following command is used to compile the Java program
- java
- javac
- javap
- none of these
Answer :
Option B
-
27. The class java.sql.Timestamp is associated with
- java.util.Time
- java.sql.Time
- java.util.Date
- None of above
Answer :
Option C
-
28. Which statement is static and synchronized in JDBC API
- executeQuery()
- executeUpdate()
- getConnection()
- prepareCall()
Answer :
Option C