Java Programmer Certification Objectives
Note : package packname; must be the first non comment statementObjective 1.3
State the correct declaration for a main() methodThe signature or format of the main method is
public static void main(String argv);Note : The ordering of public and static are not important.static public void main(String argv) is validThe return type of any method is mandatory and must come before thename of the method.public void static main(String argv)//Error will not compileObjective 1.4
Select specific elements from the command line arguments of the main()method by using the correct array subscript value.
java program parm1 param2argv --> param1argv --> param2Objective 1.5
Identify Java keywords from a list of keywords and non-keywords.
( const / goto)
Determine the value of a member variable of any type when no explicitassignment has been made to it.A class level variable will always be assigned a default value.A varialbe local to a method will not be assigned a default value.
Page 3 of 4812/14/2011