For more SCJP 1.6 dumps please contact :admin@209.97.166.197
Question – 1
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 |
<strong>1. public class A {</strong> <strong>2. int add(int i, int j){</strong> <strong>3. return i+j;</strong> <strong>4. }</strong> <strong>5. }</strong> <strong>6. public class B extends A{</strong> <strong>7. public static void main(String argv[]){</strong> <strong>8. short s = 9;</strong> <strong>9. System.out.println(add(s,6));</strong> <strong>10. }</strong> <strong>11. }</strong> |
Options are
A. Compile fail due to error on line no 2
B. Compile fail due to error on line no 9
C. Compile fail due to error on line no 8
D. 15
Answer :
B is the correct answer.
Cannot make a static reference to the non-static method add(int, int) from the type A. The short s is autoboxed correctly, but the add() method cannot be invoked from a static method because add() method is not static.
Question – 2
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<strong>public class A {</strong> <strong>int k;</strong> <strong>boolean istrue;</strong> <strong>static int p;</strong> <strong>public void printValue() {</strong> <strong>System.out.print(k);</strong> <strong>System.out.print(istrue);</strong> <strong>System.out.print(p);</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test{</strong> <strong>public static void main(String argv[]){</strong> <strong>A a = new A();</strong> <strong>a.printValue();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.0 false 0
B.0 true 0
C.0 0 0
D.Compile error – static variable must be initialized before use.
Answer :
A is the correct answer.
Global and static variable need not be initialized before use. Default value of global and static int variable is zero. Default value of boolean variable is false. Remember local variable must be initialized before use.
Question – 3
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<strong>public class Test{</strong> <strong>int _$;</strong> <strong>int $7;</strong> <strong>int do;</strong> <strong>public static void main(String argv[]){</strong> <strong>Test test = new Test();</strong> <strong>test.$7=7;</strong> <strong>test.do=9;</strong> <strong>System.out.println(test.$7);</strong> <strong>System.out.println(test.do);</strong> <strong>System.out.println(test._$);</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.7 9 0
B.7 0 0
C.Compile error – $7 is not valid identifier.
D.Compile error – do is not valid identifier.
Answer :
D is the correct answer.
$7 is valid identifier. Identifiers must start with a letter, a currency character ($), or underscore ( _ ). Identifiers cannot start with a number. You can’t use a Java keyword as an identifier. do is a Java keyword.
Question – 4
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<strong>package com;</strong> <strong>class Animal {</strong> <strong>public void printName(){</strong> <strong>System.out.println("Animal");</strong> <strong>}</strong> <strong>}</strong> <strong>package exam;</strong> <strong>import com.Animal;</strong> <strong>public class Cat extends Animal {</strong> <strong>public void printName(){</strong> <strong>System.out.println("Cat");</strong> <strong>}</strong> <strong>}</strong> <strong>package exam;</strong> <strong>import com.Animal;</strong> <strong>public class Test {</strong> <strong>public static void main(String[] args){</strong> <strong>Animal a = new Cat();</strong> <strong>a.printName();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Animal
B.Cat
C.Animal Cat
D.Compile Error
Answer :
D is the correct answer.
Cat class won’t compile because its superclass, Animal, has default access and is in a different package. Only public superclass can be accessible for different package.
Question – 5
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<strong>public class A {</strong> <strong>int i = 10;</strong> <strong>public void printValue() {</strong> <strong>System.out.println("Value-A");</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A{</strong> <strong>int i = 12;</strong> <strong>public void printValue() {</strong> <strong>System.out.print("Value-B");</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test{</strong> <strong>public static void main(String argv[]){</strong> <strong>A a = new B();</strong> <strong>a.printValue();</strong> <strong>System.out.println(a.i);</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Value-B 11
B.Value-B 10
C.Value-A 10
D.Value-A 11
Answer :
B is the correct answer.
If you create object of subclass with reference of super class like ( A a = new B();) then subclass method and super class variable will be executed.
Question – 6
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<strong>public enum Test {</strong> <strong>BREAKFAST(7, 30), LUNCH(12, 15), DINNER(19, 45);</strong> <strong>private int hh;</strong> <strong>private int mm;</strong> <strong>Test(int hh, int mm) {</strong> <strong>assert (hh >= 0 && hh <= 23) : "Illegal hour.";</strong> <strong>assert (mm >= 0 && mm <= 59) : "Illegal mins.";</strong> <strong>this.hh = hh;</strong> <strong>this.mm = mm;</strong> <strong>}</strong> <strong>public int getHour() {</strong> <strong>return hh;</strong> <strong>}</strong> <strong>public int getMins() {</strong> <strong>return mm;</strong> <strong>}</strong> <strong>public static void main(String args[]){</strong> <strong>Test t = new BREAKFAST;</strong> <strong>System.out.println(t.getHour() +":"+t.getMins());</strong> <strong>} } </strong> |
Options are
A.7:30
B.Compile Error – an enum cannot be instantiated using the new operator.
C.12:30
D.19:45
Answer :
B is the correct answer.
As an enum cannot be instantiated using the new operator, the constructors cannot be called explicitly. You have to do like Test t = BREAKFAST;
Question – 7
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 |
<strong>public class A {</strong> <strong>static{System.out.println("static");}</strong> <strong>{ System.out.println("block");}</strong> <strong>public A(){</strong> <strong>System.out.println("A");</strong> <strong>}</strong> <strong>public static void main(String[] args){</strong> <strong>A a = new A();</strong> <strong>}</strong> |
Options are
A.A block static
B.static block A
C.static A
D.A
Answer :
B is the correct answer.
First execute static block, then statement block then constructor.
Question – 8
What is the output for the below code ?
1 2 3 4 5 6 7 8 |
<strong>1. public class Test {</strong> <strong>2. public static void main(String[] args){</strong> <strong>3. int i = 010;</strong> <strong>4. int j = 07;</strong> <strong>5. System.out.println(i);</strong> <strong>6. System.out.println(j);</strong> <strong>7. }</strong> <strong>8. }</strong> |
Options are
A.8 7
B.10 7
C.Compilation fails with an error at line 3
D.Compilation fails with an error at line 5
Answer :
A is the correct answer.
By placing a zero in front of the number is an integer in octal form. 010 is in octal form .so its value is 8.
Question – 9
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 |
<strong>1. public class Test {</strong> <strong>2. public static void main(String[] args){</strong> <strong>3. byte b = 6;</strong> <strong>4. b+=8;</strong> <strong>5. System.out.println(b);</strong> <strong>6. b = b+7;</strong> <strong>7. System.out.println(b);</strong> <strong>8. }</strong> <strong>9. }</strong> |
Options are
A.14 21
B.14 13
C.Compilation fails with an error at line 6
D.Compilation fails with an error at line 4
Answer :
C is the correct answer.
int or smaller expressions always resulting in an int. So compiler complain about Type
mismatch: cannot convert from int to byte for b = b+7; But b += 7; // No problem
because +=, -=, *=, and /= will all put in an implicit cast. b += 7 is same as b = (byte)b+7
so compiler not complain.
Question – 10
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 |
<strong>public class Test {</strong> <strong>public static void main(String[] args){</strong> <strong>String value = "abc";</strong> <strong>changeValue(value);</strong> <strong>System.out.println(value);</strong> <strong>}</strong> <strong>public static void changeValue(String a){</strong> <strong>a = "xyz";</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.abc
B.xyz
C.Compilation fails
D.Compilation clean but no output
Answer :
A is the correct answer.
Java pass reference as value. passing the object reference, and not the actual object itself.
Simply reassigning to the parameter used to pass the value into the method will do
nothing, because the parameter is essentially a local variable.
Question – 11
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<strong>public class Test {</strong> <strong>public static void printValue(int i, int j, int k){</strong> <strong>System.out.println("int");</strong> <strong>}</strong> <strong>public static void printValue(byte...b){</strong> <strong>System.out.println("long");</strong> <strong>}</strong> <strong>public static void main(String... args) {</strong> <strong>byte b = 9;</strong> <strong>printValue(b,b,b);</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.long
B.int
C.Compilation fails
D.Compilation clean but throws RuntimeException
Answer :
B is the correct answer.
Primitive widening uses the smallest method argument possible. (For Example if you pass short value to a method but method with short argument is not available then compiler choose method with int argument). But in this case compiler will prefer the older style before it chooses the newer style, to keep existing code more robust. var-args method is looser than widen.
Question – 12
You have a java file name Test.java inside src folder of javaproject
directory. You have also classes folder inside javaproject directory.
you have issued below command from command prompt.
cd javaproject
Which of the below command puts Test.class file inside classes folder ?
Options are
A.javac -d classes src/Test.java
B.javac Test.java
C.javac src/Test.java
D.javac classes src/Test.java
Answer :
A is the correct answer.
The -d option lets you tell the compiler in which directory to put the .class file it
generates (d for destination)
Question – 13
You have two class files name Test.class and Test1.class inside javaproject directory.
Test.java source code is :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<strong>public class Test{</strong> <strong>public static void main (String[] args){</strong> <strong>System.out.println("Hello Test");</strong> <strong>}</strong> <strong>}</strong> <strong>Test1.java source code is :</strong> <strong>public class Test1{</strong> <strong>public static void main (String[] args){</strong> <strong>System.out.println("Hello Test1");</strong> <strong>}</strong> <strong>}</strong> <strong>you have issued below commands from command prompt.</strong> <strong>cd javaproject</strong> <strong>java Test Test1</strong> |
What is the output ?
Options are
A.Hello Test
B.Hello Test Hello Test1
C.Hello Test1
D.Run fails – class not found
Answer :
A is the correct answer.
You must specify exactly one class file to execute. If more than one then first one will be executed.
Question – 14
You have a java file name Test.java .
Test.java needs access to a class contained in app.jar in “exam”
directory.
Which of the follwing command set classpath to compile clean?
Options are
A.javac -classpath exam/app.jar Test.java
B.javac -classpath app.jar Test.java
C.javac -classpath exam Test.java
D.None of the above
Answer :
A is the correct answer.
javac -classpath exam/app.jar Test.java is the correct command to set exam/app.jar in classpath.
Question – 15
What will be the result of compiling the following code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<strong>public class SuperClass {</strong> <strong>public int doIt(String str, Integer... data)throws Exception{</strong> <strong>String signature = "(String, Integer[])";</strong> <strong>System.out.println(str + " " + signature);</strong> <strong>return 1;</strong> <strong>}</strong> <strong>}</strong> <strong>public class SubClass extends SuperClass{</strong> <strong>public int doIt(String str, Integer... data)</strong> <strong>{</strong> <strong>String signature = "(String, Integer[])";</strong> <strong>System.out.println("Overridden: " + str + " " +</strong> <strong>signature);</strong> <strong>return 0;</strong> <strong>}</strong> <strong>public static void main(String... args)</strong> <strong>{</strong> <strong>SuperClass sb = new SubClass();</strong> <strong>sb.doIt("hello", 3);</strong> <strong>}</strong> <strong>} </strong> |
Options are
A.Overridden: hello (String, Integer[])
B.hello (String, Integer[])
C.Complilation fails
D.None of the above
Answer :
C is the correct answer.
Unhandled exception type Exception.
Question – 16
What happens when the following code is compiled and run.
Select the one correct answer.
1 2 3 4 |
<strong>for(int i = 2; i < 4; i++)</strong> <strong>for(int j = 2; j < 4; j++)</strong> <strong>if(i < j)</strong> <strong>assert i!=j : i; </strong> |
Options are
A.The class compiles and runs, but does not print anything.
B.The number 2 gets printed with AssertionError
C.compile error
D.The number 3 gets printed with AssertionError
Answer :
A is the correct answer.
When if condition returns true, the assert statement also returns true. Hence AssertionError does not get generated.
Question – 17
What happens when the following code is compiled and run.
Select the one correct answer.
1 2 3 |
<strong>for(int i = 2; i < 4; i++)</strong> <strong>for(int j = 2; j < 4; j++)</strong> <strong>assert i!=j : i;</strong> |
Options are
A.The class compiles and runs, but does not print anything.
B.The number 2 gets printed with AssertionError
C.compile error
D.The number 3 gets printed with AssertionError
Answer :
B is the correct answer.
When i and j are both 2, assert condition is false, and AssertionError gets generated. .
Question – 18
1 2 3 4 5 |
<strong>try{</strong> <strong>File f = new File("a.txt");</strong> <strong>}catch(Exception e){</strong> <strong>}catch(IOException io){</strong> <strong>}</strong> |
Is this code create new file name a.txt ?
Options are
A.True
B.False
C.Compilation Error
D.None
Answer :
C is the correct answer.
IOException is unreachable to compiler because all exception is going to catch by Exception block.
Question – 19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<strong>class A {</strong> <strong>A(String s) {</strong> <strong>}</strong> <strong>A() {</strong> <strong>}</strong> <strong>}</strong> <strong>1. class B extends A {</strong> <strong>2. B() { }</strong> <strong>3. B(String s) {</strong> <strong>4. super(s);</strong> <strong>5. }</strong> <strong>6. void test() {</strong> <strong>7. // insert code here</strong> <strong>8. }</strong> <strong>9. }</strong> |
Which of the below code can be insert at line 7 to make clean compilation ?
Options are
A.A a = new B();
B.A a = new B(5);
C.A a = new A(String s);
D.All of the above
Answer :
A is the correct answer.
A a = new B(); is correct because anonymous inner classes are no different from any other class when it comes to polymorphism.
Question – 20
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<strong>interface A {</strong> <strong>public void printValue();</strong> <strong>}</strong> <strong>1. public class Test{</strong> <strong>2. public static void main (String[] args){</strong> <strong>3. A a1 = new A() {</strong> <strong>4. public void printValue(){</strong> <strong>5. System.out.println("A");</strong> <strong>6. }</strong> <strong>7. };</strong> <strong>8. a1.printValue();</strong> <strong>9. }</strong> <strong>10. } </strong> |
Options are
A.Compilation fails due to an error on line 3
B.A
C.Compilation fails due to an error on line 8
D.null
Answer :
B is the correct answer.
The A a1 reference variable refers not to an instance of interface A, but to an instance of an anonymous (unnamed) class. So no compilation error.
Question – 21
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<strong>class A {</strong> <strong>class A1 {</strong> <strong>void printValue(){</strong> <strong>System.out.println("A.A1");</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> <strong>1. public class Test{</strong> <strong>2. public static void main (String[] args){</strong> <strong>3. A a = new A();</strong> <strong>4. // INSERT CODE</strong> <strong>5. a1.printValue();</strong> <strong>6. }</strong> <strong>7. }</strong> |
Which of the below code inserted at line 4, compile and produce the
output “A.A1”?
Options are
A.A.A1 a1 = new A.A1();
B.A.A1 a1 = a.new A1();
C.A a1 = new A.A1();
D.All of the above
Answer :
B is the correct answer.
correct inner class instantiation syntax is A a = new A(); A.A1 a1 = a.new A1();
Question – 22
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
<strong>public class A {</strong> <strong>public void printValue(){</strong> <strong>System.out.println("Value-A");</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A{</strong> <strong>public void printNameB(){</strong> <strong>System.out.println("Name-B");</strong> <strong>}</strong> <strong>}</strong> <strong>public class C extends A{</strong> <strong>public void printNameC(){</strong> <strong>System.out.println("Name-C");</strong> <strong>}</strong> <strong>}</strong> <strong>1. public class Test{</strong> <strong>2. public static void main (String[] args) {</strong> <strong>3. B b = new B();</strong> <strong>4. C c = new C();</strong> <strong>5. newPrint(b);</strong> <strong>6. newPrint(c);</strong> <strong>7. }</strong> <strong>8. public static void newPrint(A a){</strong> <strong>9. a.printValue();</strong> <strong>10. }</strong> <strong>11. }</strong> |
Options are
A.Value-A Name-B
B.Value-A Value-A
C.Value-A Name-C
D.Name-B Name-C
Answer :
B is the correct answer.
Class B extended Class A therefore all methods of Class A will be available to class B except private methods. Class C extended Class A therefore all methods of Class A will be available to class C except private methods.
Question – 23
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
<strong>public class A {</strong> <strong>public void printName(){</strong> <strong>System.out.println("Value-A");</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A{</strong> <strong>public void printName(){</strong> <strong>System.out.println("Name-B");</strong> <strong>}</strong> <strong>}</strong> <strong>public class C extends A{</strong> <strong>public void printName(){</strong> <strong>System.out.println("Name-C");</strong> <strong>}</strong> <strong>}</strong> <strong>1. public class Test{</strong> <strong>2. public static void main (String[] args) {</strong> <strong>3. B b = new B();</strong> <strong>4. C c = new C();</strong> <strong>5. b = c;</strong> <strong>6. newPrint(b);</strong> <strong>7. }</strong> <strong>8. public static void newPrint(A a){</strong> <strong>9. a.printName();</strong> <strong>10. }</strong> <strong>11. }</strong> |
Options are
A.Name-B
B.Name-C
C.Compilation fails due to an error on lines 5
D.Compilation fails due to an error on lines 9
Answer :
C is the correct answer.
Reference variable can refer to any object of the same type as the declared reference OR can refer to any subtype of the declared type. Reference variable “b” is type of class B and reference variable “c” is a type of class C. So Compilation fails.
Question – 24
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
<strong>public class C {</strong> <strong>}</strong> <strong>public class D extends C{</strong> <strong>}</strong> <strong>public class A {</strong> <strong>public C getOBJ(){</strong> <strong>System.out.println("class A - return C");</strong> <strong>return new C();</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A{</strong> <strong>public D getOBJ(){</strong> <strong>System.out.println("class B - return D");</strong> <strong>return new D();</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>A a = new B();</strong> <strong>a.getOBJ();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.class A – return C
B.class B – return D
C.Compilation fails
D.Compilation succeed but no output
Answer :
B is the correct answer.
From J2SE 5.0 onwards. return type in the overriding method can be same or subtype of the declared return type of the overridden (superclass) method.
Question – 25
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
<strong>public class A {</strong> <strong>private void printName(){</strong> <strong>System.out.println("Value-A");</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A{</strong> <strong>public void printName(){</strong> <strong>System.out.println("Name-B");</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test{</strong> <strong>public static void main (String[] args) {</strong> <strong>B b = new B();</strong> <strong>b.printName();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Value-A
B.Name-B
C.Value-A Name-B
D.Compilation fails – private methods can’t be override
Answer :
B is the correct answer.
You can not override private method , private method is not availabe in subclass . In this
case printName() method a class A is not overriding by printName() method of class B.
printName() method of class B different method. So you can call printName() method of class B.
Question – 26
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<strong>import java.io.FileNotFoundException;</strong> <strong>public class A {</strong> <strong>public void printName() throws FileNotFoundException {</strong> <strong>System.out.println("Value-A");</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A{</strong> <strong>public void printName() throws NullPointerException{</strong> <strong>System.out.println("Name-B");</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test{</strong> <strong>public static void main (String[] args) throws Exception{</strong> <strong>A a = new B();</strong> <strong>a.printName();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Value-A
B.Compilation fails-Exception NullPointerException is not compatible with throws
clause in A.printName()
C.Name-B
D.Compilation succeed but no output
Answer :
C is the correct answer.
The overriding method can throw any unchecked (runtime) exception, regardless of exception thrown by overridden method. NullPointerException is RuntimeException so compiler not complain.
Question – 27
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
<strong>public class A {</strong> <strong>public A(){</strong> <strong>System.out.println("A");</strong> <strong>}</strong> <strong>public A(int i){</strong> <strong>this();</strong> <strong>System.out.println(i);</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A{</strong> <strong>public B (){</strong> <strong>System.out.println("B");</strong> <strong>}</strong> <strong>public B (int i){</strong> <strong>this();</strong> <strong>System.out.println(i+3);</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test{</strong> <strong>public static void main (String[] args){</strong> <strong>new B(5);</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.A B 8
B.A 5 B 8
C.A B 5
D.B 8 A 5
Answer :
A is the correct answer.
Constructor of class B call their superclass constructor of class A (public A()) , which execute first, and that constructors can be overloaded. Then come to constructor of class B (public B (int i)).
Question – 28
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<strong>1. public interface InfA {</strong> <strong>2. protected String getName();</strong> <strong>3. }</strong> <strong>public class Test implements InfA{</strong> <strong>public String getName(){</strong> <strong>return "test-name";</strong> <strong>}</strong> <strong>public static void main (String[] args){</strong> <strong>Test t = new Test();</strong> <strong>System.out.println(t.getName());</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.test-name
B.Compilation fails due to an error on lines 2
C.Compilation fails due to an error on lines 1
D.Compilation succeed but Runtime Exception
Answer :
B is the correct answer.
Illegal modifier for the interface method InfA.getName(); only public and abstract are Permitted
Question – 29
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<strong>public class D {</strong> <strong>int i;</strong> <strong>int j;</strong> <strong>public D(int i,int j){</strong> <strong>this.i=i;</strong> <strong>this.j=j;</strong> <strong>}</strong> <strong>public void printName() {</strong> <strong>System.out.println("Name-D");</strong> <strong>}</strong> <strong>}</strong> <strong>1. public class Test{</strong> <strong>2. public static void main (String[] args){</strong> <strong>3. D d = new D();</strong> <strong>4. d.printName();</strong> <strong>5.</strong> <strong>6. }</strong> <strong>7. }</strong> |
Options are
A.Name-D
B.Compilation fails due to an error on lines 3
C.Compilation fails due to an error on lines 4
D.Compilation succeed but no output
Answer :
B is the correct answer.
Since there is already a constructor in this class (public D(int i,int j)), the compiler won’t supply a default constructor. If you want a no-argument constructor to overload the with arguments version you already have, you have to define it by yourself. The constructor D() is undefined in class D. If you define explicit constructor then default constructor will not be available. You have to define explicitly like public D(){ } then the above code will work. If no constructor into your class , a default constructor will be automatically generated by the compiler.
Question – 30
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<strong>public class A {</strong> <strong>public void test1(){</strong> <strong>System.out.println("test1");</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A{</strong> <strong>public void test2(){</strong> <strong>System.out.println("test2");</strong> <strong>}</strong> <strong>}</strong> <strong>1. public class Test{</strong> <strong>2. public static void main (String[] args){</strong> <strong>3. A a = new A();</strong> <strong>4. A b = new B();</strong> <strong>5. B b1 = new B();</strong> <strong>6. // insert code here</strong> <strong>7. }</strong> <strong>8. }</strong> |
Which of the following , inserted at line 6, will compile and print
test2?
Options are
A.((B)b).test2();
B.(B)b.test2();
C.b.test2();
D.a.test2();
Answer :
A is the correct answer.
((B)b).test2(); is proper cast. test2() method is in class B so need to cast b then only test2() is accessible. (B)b.test2(); is not proper cast without the second set of parentheses,the compiler thinks it is an incomplete statement.
Question – 31
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<strong>1. public class Test {</strong> <strong>2. public static void main(String... args) {</strong> <strong>3. int x =5;</strong> <strong>4. x *= 3 + 7;</strong> <strong>5. System.out.println(x);</strong> <strong>6. }</strong> <strong>7. }</strong> |
Options are
A.22
B.50
C.10
D.Compilation fails with an error at line 4
Answer :
B is the correct answer.
x *= 3 + 7; is same as x = x * (3 +7) = 5 * (10) = 50 because expression on the right is always placed inside parentheses.
Question – 32
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<strong>1. public class Test {</strong> <strong>2. enum Month { JAN, FEB, MAR };</strong> <strong>3. public static void main(String... args) {</strong> <strong>4. Month m1 = Month.JAN;</strong> <strong>5. Month m2 = Month.JAN;</strong> <strong>6. Month m3 = Month.FEB;</strong> <strong>7. System.out.println(m1 == m2);</strong> <strong>8. System.out.println(m1.equals(m2));</strong> <strong>9. System.out.println(m1 == m3);</strong> <strong>10. System.out.println(m1.equals(m3));</strong> <strong>11. }</strong> <strong>12. }</strong> |
Options are
A.true true true false
B.true true false false
C.false false true true
D.Compilation fails with an error at line 10
Answer :
B is the correct answer.
m1 and m2 refer to the same enum constant So m1 == m2 returns true BUT m1 and m3 refer to different enum constant So m1 == m3 returns false. m1.equals(m2) returns true because enum constant value is same (JAN and JAN). m1.equals(m3) return false because enum constants values are different (JAN and FEB).
Question – 33
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 |
<strong>1. public class Test {</strong> <strong>2. public static void main(String... args) {</strong> <strong>3. int [] index = new int[5];</strong> <strong>4. System.out.println(index instanceof Object);</strong> <strong>5. }</strong> <strong>6. }</strong> |
Options are
A.true
B.false
C.Compilation fails with an error at line 3
D.Compilation fails with an error at line 4
Answer :
A is the correct answer.
An array is always an instance of Object
Question – 34
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>int a =5 , b=6, c =7;</strong> <strong>System.out.println("Value is "+ b +c);</strong> <strong>System.out.println(a + b +c);</strong> <strong>System.out.println("String "+(b+c));</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Value is 67 18 String 13
B.Value is 13 18 String 13
C.Value is 13 18 String
D.Compilation fails
Answer :
A is the correct answer.
If the left hand operand is not a String then + operator treat as plus BUT if left hand operand is a String then + perform String concatenation.
Question – 35
What is the output for the below code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
<strong>public class A {</strong> <strong>public A() {</strong> <strong>System.out.println("A");</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A implements Serializable {</strong> <strong>public B() {</strong> <strong>System.out.println("B");</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) throws Exception {</strong> <strong>B b = new B();</strong> <strong>ObjectOutputStream save = new ObjectOutputStream(new</strong> <strong>FileOutputStream("datafile"));</strong> <strong>save.writeObject(b);</strong> <strong>save.flush();</strong> <strong>ObjectInputStream restore = new ObjectInputStream(new</strong> <strong>FileInputStream("datafile"));</strong> <strong>B z = (B) restore.readObject();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.A B A
B.A B A B
C.B B
D.B
Answer :
A is the correct answer.
On the time of deserialization , the Serializable object not create new object. So constructor of class B does not called. A is not Serializable object so constructor is called.
Question – 36
What is the output for the below code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<strong>public class A {</strong> <strong>public A() {</strong> <strong>System.out.println("A");</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) throws Exception {</strong> <strong>A a = new A();</strong> <strong>ObjectOutputStream save = new ObjectOutputStream(new</strong> <strong>FileOutputStream("datafile"));</strong> <strong>save.writeObject(a);</strong> <strong>save.flush();</strong> <strong>ObjectInputStream restore = new ObjectInputStream(new</strong> <strong>FileInputStream("datafile"));</strong> <strong>A z = (A) restore.readObject();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.A A
B.A
C.java.io.NotSerializableException
D.None of the above
Answer :
C is the correct answer.
Class A does not implements Serializable interface. So throws NotSerializableException on trying to Serialize a non Serializable object.
Question – 37
What will be the result of compiling and run the following code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<strong>public class Test {</strong> <strong>public static void main(String... args) throws Exception {</strong> <strong>Integer i = 34;</strong> <strong>int l = 34;</strong> <strong>if(i.equals(l)){</strong> <strong>System.out.println(true);</strong> <strong>}else{</strong> <strong>System.out.println(false);</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.true
B.false
C.Compile error
D.None of the above
Answer :
A is the correct answer.
equals() method for the integer wrappers will only return true if the two primitive types and the two values are equal.
Question – 38
What will be the result of compiling and run the following code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<strong>public class Test {</strong> <strong>public static void main(String... args) throws Exception {</strong> <strong>File file = new File("test.txt");</strong> <strong>System.out.println(file.exists());</strong> <strong>file.createNewFile();</strong> <strong>System.out.println(file.exists());</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.true true
B.false true
C.false true
D.None of the above
Answer :
B is the correct answer.
creating a new instance of the class File, you’re not yet making an actual file, you’re just creating a filename. So file.exists() return false. createNewFile() method created an actual file.so file.exists() return true.
Question – 39
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<strong>public class A {}</strong> <strong>public class B implements Serializable {</strong> <strong>private static A a = new A();</strong> <strong>public static void main(String... args){</strong> <strong>B b = new B();</strong> <strong>try{</strong> <strong>FileOutputStream fs = new</strong> <strong>FileOutputStream("b.ser");</strong> <strong>ObjectOutputStream os = new</strong> <strong>ObjectOutputStream(fs);</strong> <strong>os.writeObject(b);</strong> <strong>os.close();</strong> <strong>}catch(Exception e){</strong> <strong>e.printStackTrace();</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Compilation Fail
B.java.io.NotSerializableException: Because class A is not Serializable.
C.No Exception at Runtime
D.None of the above
Answer :
C is the correct answer.
No java.io.NotSerializableException, Because class A variable is static. static variables are not Serializable.
Question – 40
What will happen when you attempt to compile and run the following code
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<strong>1. public class Test extends Thread{</strong> <strong>2. public static void main(String argv[]){</strong> <strong>3. Test t = new Test();</strong> <strong>4. t.run();</strong> <strong>5. t.start();</strong> <strong>6. }</strong> <strong>7. public void run(){</strong> <strong>8. System.out.println("run-test");</strong> <strong>9. }</strong> <strong>10. }</strong> |
Options are
A.run-test run-test
B.run-test
C.Compilation fails due to an error on line 4
D.Compilation fails due to an error on line 7
Answer :
A is the correct answer.
t.run() Legal, but does not start a new thread , it is like a method call of class Test BUT t.start() create a thread and call run() method.
Question – 41
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<strong>class A implements Runnable{</strong> <strong>public void run(){</strong> <strong>System.out.println("run-a");</strong> <strong>}</strong> <strong>}</strong> <strong>1. public class Test {</strong> <strong>2. public static void main(String... args) {</strong> <strong>3. A a = new A();</strong> <strong>4. Thread t = new Thread(a);</strong> <strong>5. t.start();</strong> <strong>6. t.start();</strong> <strong>7. }</strong> <strong>8. }</strong> |
Options are
A.run-a
B.run-a run-a
C.Compilation fails with an error at line 6
D.Compilation succeed but Runtime Exception
Answer :
D is the correct answer.
Once a thread has been started, it can never be started again. 2nd time t.start() throws java.lang.IllegalThreadStateException.
Question – 42
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
<strong>class A implements Runnable{</strong> <strong>public void run(){</strong> <strong>try{</strong> <strong>for(int i=0;i<4;i++){</strong> <strong>Thread.sleep(100);</strong> <strong>System.out.println(Thread.currentThread().getName());</strong> <strong>}</strong> <strong>}catch(InterruptedException e){</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test {</strong> <strong>public static void main(String argv[]) throws Exception{</strong> <strong>A a = new A();</strong> <strong>Thread t = new Thread(a,"A");</strong> <strong>Thread t1 = new Thread(a,"B");</strong> <strong>t.start();</strong> <strong>t.join();</strong> <strong>t1.start();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.A A A A B B B B
B.A B A B A B A B
C.Output order is not guaranteed
D.Compilation succeed but Runtime Exception
Answer :
A is the correct answer.
t.join(); means Threat t must finish before Thread t1 start.
Question – 43
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
<strong>public class B {</strong> <strong>public synchronized void printName(){</strong> <strong>try{</strong> <strong>System.out.println("printName");</strong> <strong>Thread.sleep(5*1000);</strong> <strong>}catch(InterruptedException e){</strong> <strong>}</strong> <strong>}</strong> <strong>public synchronized void printValue(){</strong> <strong>System.out.println("printValue");</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test extends Thread{</strong> <strong>B b = new B();</strong> <strong>public static void main(String argv[]) throws Exception{</strong> <strong>Test t = new Test();</strong> <strong>Thread t1 = new Thread(t,"t1");</strong> <strong>Thread t2 = new Thread(t,"t2");</strong> <strong>t1.start();</strong> <strong>t2.start();</strong> <strong>}</strong> <strong>public void run(){</strong> <strong>if(Thread.currentThread().getName().equals("t1")){</strong> <strong>b.printName();</strong> <strong>}else{</strong> <strong>b.printValue();</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.print : printName , then wait for 5 seconds then print : printValue
B.print : printName then print : printValue
C.print : printName then wait for 5 minutes then print : printValue
D.Compilation succeed but Runtime Exception
Answer :
A is the correct answer.
There is only one lock per object, if one thread has picked up the lock, no other thread can pick up the lock until the first thread releases the lock. printName() method acquire the lock for 5 seconds, So other threads can not access the object. If one synchronized method of an instance is executing then other synchronized method of the same instance should wait.
Question – 44
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<strong>public class B {</strong> <strong>public static synchronized void printName(){</strong> <strong>try{</strong> <strong>System.out.println("printName");</strong> <strong>Thread.sleep(5*1000);</strong> <strong>}catch(InterruptedException e){</strong> <strong>}</strong> <strong>}</strong> <strong>public synchronized void printValue(){</strong> <strong>System.out.println("printValue");</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test extends Thread{</strong> <strong>B b = new B();</strong> <strong>public static void main(String argv[]) throws Exception{</strong> <strong>Test t = new Test();</strong> <strong>Thread t1 = new Thread(t,"t1");</strong> <strong>Thread t2 = new Thread(t,"t2");</strong> <strong>t1.start();</strong> <strong>t2.start();</strong> <strong>}</strong> <strong>public void run(){</strong> <strong>if(Thread.currentThread().getName().equals("t1")){</strong> <strong>b.printName();</strong> <strong>}else{</strong> <strong>b.printValue();</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.print : printName , then wait for 5 seconds then print : printValue
B.print : printName then print : printValue
C.print : printName then wait for 5 minutes then print : printValue
D.Compilation succeed but Runtime Exception
Answer :
B is the correct answer.
There is only one lock per object, if one thread has picked up the lock, no other thread can pick up the lock until the first thread releases the lock. In this case printName() is static , So lock is in class B not instance b, both method (one static and other no-static) can run simultaneously. A static synchronized method and a non static synchronized method will not block each other.
Question – 45
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<strong>class A extends Thread{</strong> <strong>int count = 0;</strong> <strong>public void run(){</strong> <strong>System.out.println("run");</strong> <strong>synchronized (this) {</strong> <strong>for(int i =0; i < 50 ; i++){</strong> <strong>count = count + i;</strong> <strong>}</strong> <strong>notify();</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test{</strong> <strong>public static void main(String argv[]) {</strong> <strong>A a = new A();</strong> <strong>a.start();</strong> <strong>synchronized (a) {</strong> <strong>System.out.println("waiting");</strong> <strong>try{</strong> <strong>a.wait();</strong> <strong>}catch(InterruptedException e){</strong> <strong>}</strong> <strong>System.out.println(a.count);</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.waiting run 1225
B.waiting run 0
C.waiting run and count can be anything
D.Compilation fails
Answer :
A is the correct answer.
a.wait(); put thread on wait until not get notifed. A thread gets on this waiting list by executing the wait() method of the target object. It doesn’t execute any further instructions until the notify() method of the target object is called. A thread to call wait() or notify(), the thread has to be the owner of the lock for that object.
Question – 46
Which of the following statements about this code are true?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
<strong>class A extends Thread{</strong> <strong>public void run(){</strong> <strong>for(int i =0; i < 2; i++){</strong> <strong>System.out.println(i);</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> <strong>public class Test{</strong> <strong>public static void main(String argv[]){</strong> <strong>Test t = new Test();</strong> <strong>t.check(new A(){});</strong> <strong>}</strong> <strong>public void check(A a){</strong> <strong>a.start();</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.0 0
B.Compilation error, class A has no start method
C.0 1
D.Compilation succeed but runtime exception
Answer :
C is the correct answer.
class A extends Thread means the anonymous instance that is passed to check() method has a start method which then calls the run method.
Question – 47
HashMap can be synchronized by _______ ?
Options are
A.Map m = Collections.synchronizeMap(hashMap);
B.Map m = hashMap.synchronizeMap();
C.Map m = Collection.synchronizeMap(hashMap);
D.None of the above
Answer :
A is the correct answer.
HashMap can be synchronized by Map m = Collections.synchronizeMap(hashMap);
Question – 48
What is the output for the below code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
<strong>import java.util.LinkedList;</strong> <strong>import java.util.Queue;</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>Queue q = new LinkedList();</strong> <strong>q.add("newyork");</strong> <strong>q.add("ca");</strong> <strong>q.add("texas");</strong> <strong>show(q);</strong> <strong>}</strong> <strong>public static void show(Queue q) {</strong> <strong>q.add(new Integer(11));</strong> <strong>while (!q.isEmpty ( ) )</strong> <strong>System.out.print(q.poll() + " ");</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Compile error : Integer can’t add
B.newyork ca texas 11
C.newyork ca texas
D.None of the above
Answer :
B is the correct answer.
” q was originally declared as Queue<String>, But in show() method it is passed as an untyped Queue. nothing in the compiler or JVM prevents us from adding an Integer after that. If the show method signature is public static void show(Queue<String> q) than you can’t add Integer, Only String allowed. But public static void show(Queue q) is untyped Queue so you can add Integer.Y poll() Retrieves and removes the head of this queue, or returns null if this queue is empty.
Question – 49
What is the output for the bellow code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<strong>import java.util.Iterator;</strong> <strong>import java.util.Set;</strong> <strong>import java.util.TreeSet;</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>Set s = new TreeSet();</strong> <strong>s.add("7");</strong> <strong>s.add(9);</strong> <strong>Iterator itr = s.iterator();</strong> <strong>while (itr.hasNext())</strong> <strong>System.out.print(itr.next() + " ");</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Compile error
B.Runtime Exception
C.7 9
D.None of the above
Answer :
B is the correct answer.
| Without generics, the compiler does not know what type is appropriate for this TreeSet, so it allows everything to compile. But at runtime he TreeSet will try to sort the elements as they are added, and when it tries to compare an Integer with a String it will throw a ClassCastException.
? Exception in thread “main” java.lang.ClassCastException: java.lang.String cannot be
cast to java.lang.Integer.
Question – 50
What is the output for the below code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<strong>import java.util.Iterator;</strong> <strong>import java.util.TreeSet;</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>TreeSet s1 = new TreeSet();</strong> <strong>s1.add("one");</strong> <strong>s1.add("two");</strong> <strong>s1.add("three");</strong> <strong>s1.add("one");</strong> <strong>Iterator it = s1.iterator();</strong> <strong>while (it.hasNext() ) {</strong> <strong>System.out.print( it.next() + " " );</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.one three two
B.Runtime Exception
C.one three two one
D.one two three
Answer :
A is the correct answer.
h TreeSet assures no duplicate entries.it will return elements in natural order, which, for Strings means alphabetical.
Question – 51
If we do
ArrayList lst = new ArrayList();
What is the initial capacity of the ArrayList lst ?
Options are
A.10
B.8
C.15
D.12
Answer :
A is the correct answer.
/** * Constructs an empty list with an initial capacity of ten. */ public ArrayList()
{ this(10); }
Question – 52
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<strong>package bean;</strong> <strong>public class Abc {</strong> <strong>public static int index_val = 10;</strong> <strong>}</strong> <strong>package com;</strong> <strong>import static bean.Abc.index_val;</strong> <strong>public class Test1 {</strong> <strong>public static void main(String... args) {</strong> <strong>System.out.println(index_val);</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.10
B.compile error, index_val not defined
C.Compile error at import static bean.Abc.index_val;
D.None of the above
Answer :
A is the correct answer.
The static import construct allows unqualified access to static members without inheriting
from the type containing the static members. J2SE 5.0 onwards it allows static import like
import static bean.Abc.index_val; and can be use directly System.out.println(index_val);
Question – 53
Which of the following statement is true about jar command?
Options are
A.The jar command creates the META-INF directory implicitly.
B.The jar command creates the MANIFEST.MF file implicitly.
C.The jar command would not place any of your files in META-INF directory.
D.All of the above are true
Answer :
D is the correct answer.
All statements are true.
Question – 54
You have a class file name Test.class inside javaproject directory.
Test.java source code is :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<strong>import java.util.Properties;</strong> <strong>class Test {</strong> <strong>public static void main (String[] args){</strong> <strong>Properties p = System.getProperties();</strong> <strong>System.out.println(p.getProperty("key1"));</strong> <strong>}</strong> <strong>}</strong> <strong>you have issued below commands from command prompt.</strong> <strong>cd javaproject</strong> <strong>java -D key1=value1 Test</strong> <strong>What is the output ?</strong> |
Options are
A.value1
B.null
C.Run successfully but no output
D.Run fails – java.lang.NoClassDefFoundError: key1=value1
Answer :
D is the correct answer.
-D option , pair must follow immediately, no spaces allowed. In this case
there is space between -D and key1=value1 So java.lang.NoClassDefFoundError:
key1=value1.
Question – 55
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
<strong>public class A {</strong> <strong>public void printValue(){</strong> <strong>System.out.println("A");</strong> <strong>}</strong> <strong>}</strong> <strong>public class B extends A {</strong> <strong>public void printValue(){</strong> <strong>System.out.println("B");</strong> <strong>}</strong> <strong>}</strong> <strong>1. public class Test {</strong> <strong>2. public static void main(String... args) {</strong> <strong>3. A b = new B();</strong> <strong>4. newValue(b);</strong> <strong>5. }</strong> <strong>6. public static void newValue(A a){</strong> <strong>7. if(a instanceof B){</strong> <strong>8. ((B)a).printValue();</strong> <strong>9. }</strong> <strong>10. }</strong> <strong>11. }</strong> |
Options are
A.A
B.B
C.Compilation fails with an error at line 4
D.Compilation fails with an error at line 8
Answer :
B is the correct answer.
instanceof operator is used for object reference variables to check whether an object is of
a particular type. In newValue(b); b is instance of B So works properly.\
Question – 56
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<strong>1. public class Test {</strong> <strong>2. static int i =5;</strong> <strong>3. public static void main(String... args) {</strong> <strong>4. System.out.println(i++);</strong> <strong>5. System.out.println(i);</strong> <strong>6. System.out.println(++i);</strong> <strong>7. System.out.println(++i+i++);</strong> <strong>8.</strong> <strong>9. }</strong> <strong>10. }</strong> |
Options are
A.5 6 7 16
B.6 6 6 16
C.6 6 7 16
D.5 6 6 16
Answer :
A is the correct answer.
i++ : print value then increment (postfix – increment happens after the value of the
variable is used) ++i : increment the print (prefix – increment happens before the value of
the variable is used)
Question – 57
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<strong>1. public class Test {</strong> <strong>2. public static void main(String... args) {</strong> <strong>3. Integer i = 34;</strong> <strong>4. String str = (i<21)?"jan":(i<56)?"feb":"march";</strong> <strong>5. System.out.println(str);</strong> <strong>6. }</strong> <strong>7. }</strong> |
Options are
A.feb
B.jan
C.march
D.Compilation fails with an error at line 4
Answer :
A is the correct answer.
This is nested conditional with unbox. (i<21) is false goto (i<56), (i<56) is true so result
is “feb”.
Question – 58
What is the output ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>Pattern p = Pattern.compile("a+b?c*");</strong> <strong>Matcher m = p.matcher("ab");</strong> <strong>boolean b = m.matches();</strong> <strong>System.out.println(b);</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.true
B.false
C.Compile error
D.None of the above
Answer :
A is the correct answer.
X? X, once or not at all X* X, zero or more times X+ X, one or more times
Question – 59
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 |
<strong>1. public class Test {</strong> <strong>2. public static void main(String[] args){</strong> <strong>3. byte i = 128;</strong> <strong>4. System.out.println(i);</strong> <strong>5. }</strong> <strong>6. }</strong> |
Options are
A.128
B.0
C.Compilation fails with an error at line 3
D.Compilation fails with an error at line 4
Answer :
C is the correct answer.
byte can only hold up to 127. So compiler complain about possible loss of precision.
Question – 60
What is the output for the below code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<strong>1. public class Test {</strong> <strong>2. int i=8;</strong> <strong>3. int j=9;</strong> <strong>4. public static void main(String[] args){</strong> <strong>5. add();</strong> <strong>6. }</strong> <strong>7. public static void add(){</strong> <strong>8. int k = i+j;</strong> <strong>9. System.out.println(k);</strong> <strong>10. }</strong> <strong>11. }</strong> |
Options are
A.17
B.0
C.Compilation fails with an error at line 5
D.Compilation fails with an error at line 8
Answer :
D is the correct answer.
i and j are instance variable and attempting to access an instance variable from a static method. So Compilation fails .
Question – 61
Which collection class grows or shrinks its size and provides indexed
access to its elements, but methods are not synchronized?
Options are
A.java.util.ArrayList
B.java.util.List
C.java.util.HashSet
D.java.util.Vector
Answer :
A is the correct answer.
| ArrayList provides an index to its elements and methods are not synchronized.
Question – 62
What is the output of bellow code ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
<strong>public class Bean{</strong> <strong>private String str;</strong> <strong>Bean(String str ){</strong> <strong>this.str = str;</strong> <strong>}</strong> <strong>public String getStr() {</strong> <strong>return str;</strong> <strong>}</strong> <strong>public boolean equals(Object o){</strong> <strong>if (!(o instanceof Bean)) {</strong> <strong>return false;</strong> <strong>}</strong> <strong>return ((Bean) o).getStr().equals(str);</strong> <strong>}</strong> <strong>public int hashCode() {</strong> <strong>return 12345;</strong> <strong>}</strong> <strong>public String toString() {</strong> <strong>return str;</strong> <strong>}</strong> <strong>}</strong> <strong>import java.util.HashSet;</strong> <strong>public class Test {</strong> <strong>public static void main(String ... sss) {</strong> <strong>HashSet myMap = new HashSet();</strong> <strong>String s1 = new String("das");</strong> <strong>String s2 = new String("das");</strong> <strong>Bean s3 = new Bean("abcdef");</strong> <strong>Bean s4 = new Bean("abcdef");</strong> <strong>myMap.add(s1);</strong> <strong>myMap.add(s2);</strong> <strong>myMap.add(s3);</strong> <strong>myMap.add(s4);</strong> <strong>System.out.println(myMap);</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.das abcdef
B.das abcdef das abcdef
C.das das abcdef abcdef
D.das
Answer :
A is the correct answer.
implemented ‘equals’ and ‘hashCode’ methods to get unique result in Set.
Question – 63
What will happen when you attempt to compile and run the following code
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<strong>class A implements Runnable{</strong> <strong>public void run(){</strong> <strong>System.out.println("run-A");</strong> <strong>}</strong> <strong>}</strong> <strong>1. public class Test {</strong> <strong>2. public static void main(String argv[]){</strong> <strong>3. A a = new A();</strong> <strong>4. Thread t = new Thread(a);</strong> <strong>5. System.out.println(t.isAlive());</strong> <strong>6. t.start();</strong> <strong>7. System.out.println(t.isAlive());</strong> <strong>8. }</strong> <strong>9. }</strong> |
Options are
A.false run-A true
B.false run-A false
C.true run-A true
D.Compilation fails due to an error on line 7
Answer :
A is the correct answer.
Once the start() method is called, the thread is considered to be alive.
Question – 64
What will happen when you attempt to compile and run the following code
?
1 2 3 4 5 6 7 8 9 10 |
<strong>1. public class Test extends Thread{</strong> <strong>2. public static void main(String argv[]){</strong> <strong>3. Test t = new Test();</strong> <strong>4. t.run();</strong> <strong>5. t.start();</strong> <strong>6. }</strong> <strong>7. public void run(){</strong> <strong>8. System.out.println("run-test");</strong> <strong>9. }</strong> <strong>10. }</strong> |
Options are
A.run-test run-test
B.run-test
C.Compilation fails due to an error on line 4
D.Compilation fails due to an error on line 7
Answer :
A is the correct answer.
t.run() Legal, but does not start a new thread , it is like a method call of class Test BUT
t.start() create a thread and call run() method.
Question – 65
Which of the following are methods of the Thread class?
1) yield()
2) sleep(long msec)
3) go()
4) stop()
Options are
A.1 , 2 and 4
B.1 and 3
C.3 only
D.None of the above
Answer :
A is the correct answer.
Check out the Java2 Docs for an explanation
Question – 66
What notifyAll() method do?
Options are
A.Wakes up all threads that are waiting on this object’s monitor
B.Wakes up one threads that are waiting on this object’s monitor
C.Wakes up all threads that are not waiting on this object’s monitor
D.None of the above
Answer :
A is the correct answer.
notifyAll() : Wakes up all threads that are waiting on this object’s monitor.A thread waits
on an object’s monitor by calling one of the wait methods.
Question – 67
What is the output for the below code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<strong>import java.util.NavigableMap;</strong> <strong>import java.util.concurrent.ConcurrentSkipListMap;</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>NavigableMap navMap = new</strong> <strong>ConcurrentSkipListMap();</strong> <strong>navMap.put(4, "April");</strong> <strong>navMap.put(5, "May");</strong> <strong>navMap.put(6, "June");</strong> <strong>navMap.put(1, "January");</strong> <strong>navMap.put(2, "February");</strong> <strong>navMap.put(3, "March");</strong> <strong>navMap.pollFirstEntry();</strong> <strong>navMap.pollLastEntry();</strong> <strong>navMap.pollFirstEntry();</strong> <strong>System.out.println(navMap.size());</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Compile error : No method name like pollFirstEntry() or pollLastEntry()
B.3
C.6
D.None of the above
Answer :
B is the correct answer.
Y pollFirstEntry() Removes and returns a key-value mapping associated with the least
key in this map, or null if the map is empty.
Y pollLastEntry() Removes and returns a key-value mapping associated with the greatest key in this map, or null if the map is empty.
Question – 68
What is the output for the bellow code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<strong>import java.io.Console;</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>Console con = System.console();</strong> <strong>boolean auth = false;</strong> <strong>if (con != null)</strong> <strong>{</strong> <strong>int count = 0;</strong> <strong>do</strong> <strong>{</strong> <strong>String uname = con.readLine(null);</strong> <strong>char[] pwd = con.readPassword("Enter %s's</strong> <strong>password: ", uname);</strong> <strong>con.writer().write("\n\n");</strong> <strong>} while (!auth && ++count < 3);</strong> <strong>}</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.NullPointerException
B.It works properly
C.Compile Error : No readPassword() method in Console class.
D.None of the above
Answer :
A is the correct answer.
$ passing a null argument to any method in Console class will cause a
NullPointerException to be thrown.
Question – 69
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<strong>import java.util.ArrayList;</strong> <strong>import java.util.Iterator;</strong> <strong>import java.util.List;</strong> <strong>import java.util.NavigableSet;</strong> <strong>import java.util.TreeSet;</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>List lst = new ArrayList ();</strong> <strong>lst.add(34);</strong> <strong>lst.add(6);</strong> <strong>lst.add(2);</strong> <strong>lst.add(8);</strong> <strong>lst.add(7);</strong> <strong>lst.add(10);</strong> <strong>NavigableSet nvset = new TreeSet(lst);</strong> <strong>System.out.println(nvset.headSet(10,true));</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.Compile error : No method name like headSet()
B.2, 6, 7, 8, 10
C.2, 6, 7, 8
D.None of the above
Answer :
B is the correct answer.
À headSet(10) Returns the elements elements are strictly less than 10.
q headSet(10,false) Returns the elements elements are strictly less than 10.
– headSet(10,true) Returns the elements elements are strictly less than or equal to 10.
Question – 70
What is the output?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<strong>import java.util.ArrayList;</strong> <strong>import java.util.List;</strong> <strong>import java.util.NavigableSet;</strong> <strong>import java.util.TreeSet;</strong> <strong>public class Test {</strong> <strong>public static void main(String... args) {</strong> <strong>List lst = new ArrayList();</strong> <strong>lst.add(34);</strong> <strong>lst.add(6);</strong> <strong>lst.add(2);</strong> <strong>lst.add(8);</strong> <strong>lst.add(7);</strong> <strong>lst.add(10);</strong> <strong>NavigableSet nvset = new TreeSet(lst);</strong> <strong>System.out.println(nvset.lower(6)+" "+nvset.higher(6)+ "</strong> <strong>"+ nvset.lower(2));</strong> <strong>}</strong> <strong>}</strong> |
Options are
A.1 2 7 10 34 null
B.2 7 null
C.2 7 34
D.1 2 7 10 34
Answer :
B is the correct answer.
û lower() Returns the greatest element in this set strictly less than the given element, or
null if there is no such element.
¿ higher() Returns the least element in this set strictly greater than the given element, or
null if there is no such element.
// ]]>
Recommended Books
arun says
May 8, 2011 at 4:49 pmplease send some more SCJP1.6 dumps
Srinivas says
May 16, 2011 at 11:41 amHi,
Can u please send me the SCJP1.6 dumps .I will write the exam in June,2011.
my mail:-damacherlasrinivas@gmail.com
Kiran says
June 30, 2011 at 4:05 pmCould you please send the dumps to my id… Thanks.
Dheerendra says
May 4, 2012 at 11:37 pmSir/madam
please send me dumps mail_dheerendra@in.com .
I shall be thankful to you.
Lucila Centeno says
May 28, 2011 at 5:37 pmKeep posting stuff like this i really like it
ramulamma vengati says
November 9, 2011 at 3:12 pmHi
i found this is helpful and i scored 94%
u can share this with ur frnds
preetham12345 says
November 9, 2011 at 4:02 pmHi
Could you please send me the Dumps to my below ID.
preetamshah.java@gmail.com
Sharmila says
November 16, 2011 at 10:21 pmHi
I have planned to write SCJP by november end.Could you please send me the latest dumps to my below email id?
sharmiy2k@gmail.com
Dinesh says
November 21, 2011 at 1:11 pmHi friend,
I am about to write SCJP by nov 28th.Could you please send me the latest dumps to my email id.
dineshy2k88@gmail.com
Thanks in advance.
Dibya says
August 28, 2012 at 4:14 pmHi
Can you please send me the latest dumps for SCJP 6 as i have planned to attend this exam next month.
Thanks in advance.
Regards,
Dibya
shiva says
August 2, 2012 at 11:19 amHi,
Please some one share recent-2012 SCJP dumps for to ID:mailtoshivoo@gmail.com
Thnx,
Shiva
sooriya.v says
August 21, 2012 at 5:05 pmcan u please send scjp dumps to this id: sooriya.vs@gmail.com
i am gonna write this exam next month which is mandatory for my confirmation.
Verda Keniry says
May 29, 2011 at 12:54 amUseful blog website, keep me personally through searching it, I am seriously interested to find out another recommendation of it.
Shashi says
April 27, 2012 at 8:37 pmHi All,
Please send the latest dumps and exam pattern for SCJP 6…..at mshashi2008@gmail.com
Thanx in Advance….
Regards,
Shashi
Naresh says
June 16, 2012 at 2:24 pmplease share me latest dumps of 1.6
rishi says
May 17, 2011 at 2:41 pmCan u please send me the SCJP1.6 dumps .I will write the exam in June,2011.
my mail:-rishigupta69@gmail.com
Sujitha says
May 17, 2011 at 5:25 pmHi please send the SCJP 1.6 dumps as im planning to take the exam by June.
Please do the needful.
Melba Perkins says
May 27, 2011 at 5:59 pmWhat a great resource!
Alejo says
June 3, 2011 at 9:04 pmHi,
Can u please send me the SCJP1.6 dumps .I will write the exam in July,2011.
Thanks
Santosh says
June 29, 2012 at 3:26 pmCan you please send me SCJP 1.6 dumps to my mail id santukom.wipro@gmail.com. I am planning to write in the month of July, 2012.
Vijay says
May 21, 2011 at 1:37 pmI am vijay . i want to take SCJP exam. So i request u to send the dumps which will be useful for me . I need it this week itself. Please do the needful. My email iD is vjmail88@yahoo.com
Selva says says
May 24, 2011 at 9:44 amI am Selva . i want to take SCJP 1.6 exam. So i request u to send the dumps which will be useful for me . I need it this week itself. Please do the needful. My email iD is selvaji_mca@rediffmail.com
mm sravanthi says
May 24, 2011 at 3:54 pmiam sravanthi,
can u please send me the dumps of scjp1.6
My email ID:sravanthimgt@gmail.com
Ravi Kumar Sharma says
May 25, 2011 at 2:33 pmHi,
Can you please send me the dumps for SCJP 1.6. I will be taking this in July,2011.
My mail id : sharma.ravi70@gmail.com
Thanks in advance.
Madarapu Naveen says
May 27, 2011 at 1:26 pmcan any one send me scjp dumps plz
am planing to take exam.
id – madarapunaveen@gmail.com
srikanth says
May 30, 2011 at 10:05 pmHey ,
I need SCJP 1.6 dumps……….please send me them asap….i am taking test in june 2011
MY EMAIL ID: saif_rahul@yahoo.co.in
R. S. Ravindra says
June 1, 2011 at 8:53 pmHi,
Kindly send me all the SCJP 1.6 dumps available…. I will be taking the test in June/July 2011.
My E-Mail ID :- rsravindra22@gmail.com
sachin says
June 2, 2011 at 12:56 amnice matterial
ken says
June 2, 2011 at 5:51 pmcan u please send me the dumps of scjp1.6
My email ID: bbjavadev@gmail.com
eurostar says
June 8, 2011 at 9:16 pmHi,
Please send me the SCJP Dumps. my email: piyustar07@gmail.com
Thx in advance 🙂
swati says
June 10, 2011 at 4:34 pmHi,
Please send me the SCJP Dumps. my email: swati.pisal2009@gmail.com
Thx in advance
Omkar says
June 12, 2011 at 7:19 pmHi,
Please send me the SCJP Dumps. my email: om24985@gmail.com
Thx in advance
Varun says
June 15, 2011 at 2:03 pmCould you please send me the latest scjp 1.6 dumps. vern.ojha@gmail.com
Prasad says
June 16, 2011 at 2:45 amHi,
Can u please send me the dumps of SCJP 1.6
My email ID:tariprasad@gmail.com
Thanks in advance
Rajesh says
June 20, 2011 at 3:51 pmhai,
I m planning to take the SCJP1.6 on july. can you plz send me the latest dumps.
My Email id— satyarajesh79@gmail.com
Thanks
bsh says
June 20, 2011 at 8:23 pmHi,
Please send me the SCJP Dumps. my email: seungheon.baek@gmail.com
Thx in advance
Naveen says
June 21, 2011 at 11:36 amplease send me SCJP 1.6 dumps as I am going to give my SCJP exam.
my email id is sht006@gmail.com
srinadh says
June 23, 2011 at 12:04 pmhi sir iam planning to write a ocpjp/scjp 1.6 exam with in this month
if u r having a latest dump can u please send the above mail id ASAP .
thanks and regards
srinadh
murali says
June 23, 2011 at 2:18 pmcan u send me new version 1.6 dump question with answer
my email:muralignc@ymail.com
dhanasekar says
June 24, 2011 at 7:08 pmCould you please send me the scjp 1.6 dumps. I am planning to apper exam in july.
Cheers
Dhana
Amutha says
June 27, 2011 at 12:57 pmCan any one please kindly send me the latest SCJP1.6 dump. My Mail id is : amutha.devi@gmail.com
raj says
June 27, 2011 at 9:05 pmhi,
can you please send me more dumps on scjp 1.6 exam.i am planning to sit for it in coming August.It would be really help full.
malyalamv says
June 27, 2011 at 11:26 pmCan u please send me the SCJP1.6 dumps .My Email Id: malyalamv@in.com
Ambrish says
June 29, 2011 at 2:04 pmHi,
Plz send me scjp 1.6 ,i am planning to give it next month
ambersoni.cse@gmail.com
Thanks,
Ambrish
Guruprasath says
July 2, 2011 at 7:23 pmHi Dude,
i am preparing for scjp certification help me by providing dumps to my id guruprasathit@gmail.com
Guruprasath says
July 2, 2011 at 7:29 pmHi Dude,
I am preparing for scjp certification so please help me by providing dumps to my id guruprasathit@gmail.com
hari krishnan says
July 3, 2011 at 5:51 amHi,
Can u please send me the SCJP1.6 dumps .I will write the exam in July,2011..Its help me lot.
my mail id is , harikrishnan.msc@gmail.com
gaurav says
July 3, 2011 at 5:21 pmplz can anyone send me dumps of ocjp 1.6 .i going to give this test in 15 july
my mail address gauravbtl.sitm@gmail.com
Srinath Reddy says
July 5, 2011 at 2:02 pmplease forward me java scjp dumps
kandisrinath@live.com
Varun says
July 5, 2011 at 8:55 pmPlease mail me the dumps for 1.6 exam.. Thanks in Advance.
plzHelp says
July 6, 2011 at 11:58 amKindly send me latest scjp6 dumps, I am planning the exam in july/august.
thanks
Apoorva says
July 7, 2011 at 1:41 amHi,
Please send me the SCJP Dumps. my email: apoorv0308@gmail.com
Thanks in advance
Aravind says
July 7, 2011 at 7:50 pmHi Can you plz send me the dumps
Anu says
July 7, 2011 at 7:55 pmHi,
Can u please send me the SCJP1.6 dumps .I will write the exam in July,2011.
Shruti Sharma says
July 10, 2011 at 4:53 pmhii Can u plz send me some dumps of SCJP1.6
my id is shrutisharma39@gmail.com
Anupam says
July 13, 2011 at 9:08 amDude i’m planning for SCJP 1.6 coming August,,
Can u plz mail me the dumps at agangotia@gmail.com.
PUNIT RANA says
July 13, 2011 at 11:43 pmHii,
Please send the dumps to this id also punitrana2889@yahoo.com. I’ll be very thank full to you.
Regards
Punit
Nadhiya says
July 15, 2011 at 11:12 pmHi,
Can anyone send me the SCJP 1.6 latest dumps.
Please mail me to my id is nadhi.1060@gmail.com.
Thanks
neha says
July 18, 2011 at 12:13 amhi can you send me the latest dump of scjp 6 ,,,,,,i have to give the exam at the 19th of july 2011
my email id is icanseeyou.6@gmail.com
Nirmal says
July 18, 2011 at 11:28 pmHi i need the dumps for scjp 1.6.. i’m taking the exam in Aug…so please help me.. thnaks
santoshi kumari says
July 19, 2011 at 11:43 amHi,
can anyone provide me the scjp dumps.I will be sitting for the exam in the month of august.
my id is kumari.santoshi15@gmail.com.
if anyone have then please send me on my email address.I will be very thankful for u.
sindhu says
July 20, 2011 at 11:34 amHi
Can u please send me the SCJP1.6 dumps .I will write the exam in August ,2011.
Please send the latest dumps to sindhu_allun@yahoo.com.
Thanks in advance.
vijay says
July 21, 2011 at 11:53 amhi
can u please send me the scjp 1.6 dumps.
please send the latest dumps to vijay.it84@gmail.com
thanks in advance
Reply soon ……………………………………………………..
swetha says
July 22, 2011 at 7:12 amHi Friends can some one send scjp1.6 dump to swethaluckyreddy@gmail.com
Thnaks in advance
Sumit Kumar Tiwari says
July 25, 2011 at 12:34 pmI am planning to go for SJP 6 exam.Kindly send me dumps at tiwariliferocks@gmail.com
Thanks in Advance.God bless you.
Suresh babu says
July 27, 2011 at 7:30 pmHi,
Can u please send me the SCJP1.6 dumps ? My mail id is msuresh1808@gmail.com
🙂 😛
amey says
July 29, 2011 at 12:00 pmPlz send me latest scjp6 dumps, I am planning the exam in july/august.
ameyredij@gmail.com
Naresh Yarabati says
August 1, 2011 at 3:58 pmCould you please send the latest SCJP6 dumps to my mail ID: nareshcse7@gmail.com
Buddhadev Ganguly says
August 1, 2011 at 2:51 pmCan anyone help me out,i need to appear the scjp exam and as u all know the dumps are a must to attend the exam,anyone having the scjp1.6 latest dumps can send me to gangulydada06@gmail.com
Thanks in advance.
Naresh Yarabati says
August 1, 2011 at 3:59 pmAll the very best to all guys who are going to attemp for SCJP6.
Best regards,
Naresh.Y
Chennai.
gangulyreference says
August 1, 2011 at 8:46 pmhiiiiii can anyone help me out,i will b appearing the scjp 1.6 exam 310-065 can anyone provide me the latest scjp 1.6 dumps my email address is gangulydada06@gmail.com
Thanks in advance.
Naidu says
August 2, 2011 at 1:12 pmHello there,
planing to take SCJP 1.6 exam on second week of August 2011, could you pls send me dumps pls??
thx in advance for your help!!
Regards
Naidu
venkat says
August 3, 2011 at 10:12 amcan anybody send scjp to me please
venkat says
August 3, 2011 at 10:14 amcan anybody send scjp to me please to this email venkatarao.pidikiti@gmail.com
pratik421989 says
August 3, 2011 at 10:15 amHello everybody,
Plz frwd me SCJP 1.6 dumps on pkanawade7@gmail.com as I am planning to give SCJP in next week.
Waiting for ur mail….
Thnx…
Regards
PratiK
mani says
August 3, 2011 at 6:29 pmplaning to take SCJP 1.6 exam on end of August 2011.so please any one send latest dumps to me. my mail id is manikandanmk1988@gmail.com
Balaji says
August 5, 2011 at 9:56 amHi,
I’m planing to attend SCJP exam in next month.
ASAP pls forward me SCJP dump.
I appriciate your swift response.
Thanks & Regards,
Balaji