Q49.FlowLayout is the default layout manager for which of the following containers. Select all valid answers? a. Panel7 B* O" @. s' A- I% W3 c
b. Applet
2 _9 |9 I! x7 V: Y c. Frame
' B7 V7 I; Y. B$ f d. Dialog
8 M8 A) e5 h) F( y Q50.Using a FlowLayout Manager, which of the following is the correct way to add a component reference b y the variable “c” to a container.
3 i/ K0 ?" T7 G% P4 I+ z a. add(c)
, H: _: i1 j8 \) t# B1 M b. c.add()
9 p4 O; ^0 Y" A v* U+ ?* A: j c. add(“Center”,c)8 p9 R ~- `# E
d. set(c)
) `# [4 @4 I; ]9 w4 G# R Q51.Given the following code snippet
4 A9 i$ S z' r3 P! T 1. class A {
- C2 u% | p. J" S. p 2. public void method(int a, float b) {
. b/ W0 _+ U0 X+ y, O; w 3. // some declaration and etc.
0 J' s4 e) ~* q: e: z2 t2 | 4. }
. @4 p: Y3 E k5 J 5. }
2 R4 e1 j) n% A4 O: I) u# s 6. public class B extends A {
! n. h W5 W1 l8 m" Y, k" e( i 7. //Comment here ?! J& N |) \' x, ?* G2 B# }/ Y5 R8 E
8. }
5 J- \5 |+ N$ S% h" e% Q In class B what all methods can be placed in (// Comment here ?) individually ?
* T8 Z! Q' x$ X$ v; p a. void method(int i, float a)
9 \2 z( o$ w2 k5 o/ n5 ~' M4 d b. public void method(int i, float f)
, ~1 u8 m4 z8 I& i c public void method()
" G' f! W/ z& J' ? d. protected int method(float f, int b)
" m) G3 z, A$ i& Z; ^* ?, b 49. ab
+ U. z V. Z6 q! e% ^8 a S. q& j, H 50. a6 T% b1 m7 v' D. N
51. bcd |