The name of a Java source file (d) (a) must be the same as the class it defines, ignoring case (b) must use the extension
class (c) has no restrictions (d) must be the same as the class it defines, respecting case 2
Which method must exist in every Java application
(a) (a) main (b) paint (c) init (d) begin 1
Given the following code, how many tokens will be output
(b) StringTokenizer st = new StringTokenizer("this is a test"); while (st
hasMoreTokens()) { stdOut
println(st
nextToken() ); } (a) 1 (b) 4 (c) 0 (d) 3 2
Classes from which of the following packages are implicitly imported into every Java program
(a) java
awt (d) (b) java
io (c) java
util (d) java
lang 3
What is the name of the wrapper class for the type int
(d) (a) integer (b) Int (c) INT (d) Integer 4