I was giving JavaCaps mock exam wherein I came across this question. I marked the answer as 3 and 4 but the answer according to the exam is 1,2,3 . Can you just tell me if I am correct or the answer given in the exam is correct.
1. Which statements are true about GridbagLayout?
1. Weightx and weighty should be 0 and 1.0
2. If fill is both anchor does not make sense
3. It divides its territory into array of cells
4. While constructing GridBagLayout, you wont tell how many rows and columns the underlying grid has.