1) Which of the following is the correct syntax to make a personal info class into a Serializable class
- Public class Personal Info imports Serializable {/* class body */}
- Public class Personal Info extends Serializable {/* class body /*}
- Public class Personal Info implements Serializable {/* class body */}
- Public class Personal Info includes Serializable {/* class body */}
2) The ______ method returns true or false depending upon whether the next row is available (exist) or not in Result Set.
- Getters
- Next ()
- Close ()
- Close ()
3) Let suppose a column has index 5 in the Result Set object. Which of the following statement is used to retrieve the column values
- String name = rs.getlnt (5)
- String = rs.getStrings(4)
- String name = rs.getSting (5)
- String name = getlnt (4)
4) which of the following is NOT true about Paint Component () method>
- It is main method for painting
- By default, it first paints the background
- Tells the component border (if any) to paint
- It performs custom painting (drawing circle, rectangles etc.)
5) By implementing this interface, a class declares that it is willing to be ________ by automatic serialization machinery.
- Decode
- Checked
- Destroyed
- Read
6) Socket is a _____________ communicate channel between hosts.
- Uni-directional
- Bi-directional
- Multi-directional
- Tri-directional
7) In the context of Socket Programming, the client does NOT know about the hostname of the machine on which the server is running.
- False
- True
8) In the context of Java Graphics, which of the following methods we should over ride while painting
- Paint Border ()
- Paint ()
- Paint Component ()
- Paint Children ()
9) How many methods are there in the Serializable interface
- Two
- Zero
- Three
- One
10) Painting is managed by the system, so calling paint Component () directly is NOT recommended at all.
- False
- True