Click to See Complete Forum and Search --> : Java Programmer Certification Girus Please help


Maria4
May 3rd, 2000, 09:35 AM
Hi,

In java programmers certification they ask us to write some keyword(just like fill in the blanck).
Now my question is
1.whether we should enclose our answer in double quotes ex. if answer is abstract
then it should be like "abstract" or just abstract
2. If the want us to write method name
Ex actionPerformed
Which is the correct answer
a. actionPerformed()
b. actionPerformed
c. "actionPerformed()"

3. If it is statement then it should end with semicolon, Programs with curley braces
Ex.
1.class Hello{ }
2. class Hello
3. "class Hell0{}"

Which one is the write answer. Is there any way i can find out these things?

Gurus please let me know.
Thanks in advance

dogbear
May 3rd, 2000, 10:42 AM
Maria4,

Quick answers to those questions:
1) Almost every character(including double quotes) have a specific meaning in Java. So I would stay clear away from any answers that have quotes in them unless the question has something to do with Strings.
2) Method names are simply a name(without spaces) such as actionPerformed and open and close parentheses straight afterwards. So the answer is actionPerformed(). Again, no double quotes.
3) The statement is followed by curly brackets, so the answer is class Hello{}.

These are fundemental to writing in Java and I would strongly recommend that you read(or do) a tutorial on the Java programming language.
It's fairly straight-forward, but can definitely get hairy at times.

Hope this helps you out.

Regards,
dogBear

RAJIV MALLIK
May 7th, 2000, 12:51 AM
DEAR MARIA,

it would have been better if you had made the question more clear.I think i may be able t help then.
any what i think is
1.abstract
2.actionPerformed()
3.class Hello{ }

do let me know whether it was useful or not

good luck
regards and thanks
rajiv