Dear All,
Hey,
I am not able to understand the usage of keyword 'this'. Can somebody suggest a link or explain me in a very detailed manner about the functionality of the keyword 'this'.
Bye,
Tualha Khan
From JQPlus
Question ID :953836219840
Write a line of code that declares a variable named 'layout' of subclass of class LayoutManager and initializes it with a new object, which when used with a container can lay out components in a rectangular grid having 2 columns and 4 rows.
(Use space only where necessary)
My Answer (as exactly typed in the filling area):
GridLayout layout=new GridLayout(4, 2);
(Notice the line terminator (
in the end)
Answers Suggested by the Software:
GridLayout layout = new GridLayout(4, 2); //spaces between layout = new
LayoutManager layout=new GridLayout(4, 2);
LayoutManager layout=new GridLayout(4,2); //space between 4 and 2 is removed
LayoutManager layout=new GridLayout(4,2); //Exactly as Above
GridLayout layout=new GridLayout(4,2) //no space in 4,2 and no line terminator (
Is my answer wrong? I have not used any quotes, just the spaces I thought to be fit. Somebody (maybe moderators) solve the confusion relating to fill in the blank type of questions.
Bye,
Tualha Khan