Webcam Chat QuickBooks Advice international calling cards international phone cards
JavaBeat Certifications Certifications Kits Articles Tutorials Tips QNA Book Store Interview Questions SCJP 1.5 SCJP 1.6 SCWCD 5.0 SCBCD 5.0 SCEA SCJA Feeds
Kaspersky Anti-Virus 2011
350 Mock Questions on SCJP 1.5 - JUST Rs.250 or 7 USD
Send us mail to sales@javabeat.net
more details

SCJA Mock Questions

Question 1
Which of the following options will run the PropertyCheck class and produce the output SCJA ?
public class PropertyCheck {
public static void main(String args[]) {
String myprop = System.getProperty("myprop");
System.out.println(myprop);
}
}
Select the correct answer :

a. java -Dmyprop = SCJA PropertyCheck

b. java PropertyCheck -Dmyprop=SCJA

c. java -Dmyprop=SCJA PropertyCheck

d. java - Dmyprop=SCJA PropertyCheck

e. java -Dmyprop=SCJA PropertyCheck.class
c. is correct.

Question 2
Which of the following options will successfully compile the following code ?
public class CompileCheck {
public static void main(String args[]) {
System.out.println("SCJA Exam");
}
}
Select the correct answer :

a. javac CompileCheck

b. javac CompileCheck.class

c. java CompileCheck.java

d. javac CompileCheck.java

e. java CompileCheck.class
d. is correct.

Question 3
Which of the following classes or interfaces can be found in the java.util package ?
Select all correct answers :

a. List

b. ArrayList

c. Double

d. String

e. Collections
a.,b. and e. are correct.

Question 4
All classes of the java.lang package are available by default and need no special import statements.
Select the correct answer :

a. The statement is true.

b. The statement is false.
a. is correct.

Question 5
Which of the following statements represents a correct way of an import statement at the beginning of a java source file ?
Select all correct answers :

a. import java.util.*;

b. import java.io;

c. import java.util.Enumeration

d. import java.net.URL;
a. and d. are correct.
350 Mock Questions on SCJP 1.5 - JUST Rs.250 or 7 USD
Send us mail to sales@javabeat.net
more details

JavaBeat Website (2004-2009), India
javabeat | advertise | about us | useful resources
Copyright (2004 - 2009), JavaBeat