Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
Java mock tests for SCJP

Java mock tests for SCJP

Ratings: (0)|Views: 290 |Likes:
Published by Thyagarajan
Java mock tests for SCJP
Java mock tests for SCJP

More info:

Published by: Thyagarajan on Oct 07, 2007
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/08/2014

pdf

text

original

 
Sun Certified Java Programmer(SCJP 1.4)
JavaBeat HomeSCJP 1.4 HomeObjectivesForumsMock ExamsOnline Mock ExamResources
Mock ExamsMockQuestions - 1MockQuestions - 2MockQuestions - 3MockQuestions - 4MockQuestions - 5MockQuestions - 6MockQuestions - 7MockQuestions - 8MockQuestions - 9MockQuestions - 10MockQuestions - 11MockQuestions - 12MockQuestions - 13MockQuestions - 14MockQuestions - 15MockQuestions - 16MockQuestions - 17MockQuestions - 18MockQuestions - 19MockQuestions - 20
Mock Exam - Nested ClassesQ1
public class Test1{ private static int i = 10; static class Inner extends Test1{ int i; public void method(){ System.out.println(i); } } public static void main(String args[]){ new Test10.Inner().method(); }}
which of the following statement in //? will print "Inner class"?A1 10A2 0A3 nothing is printed.A4 Compiler error.Q2 which of the following modifiers are applied to the nested classes class?A1 privateA2 protectedA3 publicA4 staticA5All the above.Q3
which of the following modifiers are applied to the top level classes ?
A1 staticA2 privateA3 strictfpA4 abstractA5All the above.Q4 which modifer is uesd to stop overridding a method?A1 finalA2 staticA3 abstractA4 None of the above.
 
Q5
public abstract final class Test5{ public static void main(String args[]){ System.out.println("Modifiers"); }}
what will be the output?A1 ModifiersA2 Compiler errorA3 exception thrown at runtimeA4 None of the aboveQ6 which of the following are valid syntax for a toplevel class?A1
public static class Test6{}
A2
public abstrct class Test6{}
A3
private final class Test6{}
A4
public final class Test6{}
Q7 which of the following are valid syntax for nested classes?A1 private final abstract class Test7{}A2 private final class Test7{}A3 private static class Test7{}A4 protected abstract class Test7{}Q8
public class Test8{ class Inner{ public void method(){ System.out.println("Inner class"); } } public static void main(String args[]){ // ? }}
which of the following statement in //? will print "Inner class"?A1 new Test8.Inner().method();A2 new Test8().Inner().method();A3 new Test8.Inner.method();A4 Compiler error.Q9
public class Test9{ static class Inner{ public void method(){ System.out.println("Inner class"); } } public static void main(String args[]){ // ?

Activity (8)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
dan liked this
vdsaf liked this
sonrakesh liked this
guruhit liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->