babul bansal

Greenhorn
+ Follow
since Aug 11, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by babul bansal

Hi

The new K & B SCJP 6 book is not available in our area here.
But I have got K & B SCJP 5 book and I have studied that book.

But I want to give SCJP 6 exam.

Can anyone, who has studied SCJP 6 book of K & B, is there anything special or is it very different from their older edition book.
If yes, than what are the additions other than the SCJP 6 objectives?

Thanks

:roll:
Hi

Yes you will be told how many choices to select.
If there is only one option then definitely there will be only radio buttons.

All the best

Babul
Well this is a blunder mistake

Thanks for correcting me.
Well this is a blunder mistake

Thanks for correcting me.


F:\scjp>javac child.java
child.java:6: child is not abstract and does not override abstract method

display() in child
public class child extends parent{
^
child.java:7: abstract methods cannot have a body
public abstract void display(){
^
2 errors

What is this error?
I was thinking about to do the same, but on which email should I do this.

Please let me know.

Thanks
Hi

Today was my SCJP 5 exam at prometric centre of SSI, Chandigarh in Sector-34 SCO 118-119.

But it was not conducted due to the miscommunication between their employees.I and my friend were the two persons who scheduled the exam day before yesterday(means on Tuesday).I called them 2 weeks before too to schedule my exam but they wanted me to call them only 2 days before. So I did according to them.

My place is around 3-4 hours away from center in other city, and as it was totally a heavy rainy day, I found it really frustrating when after reaching the centre they told me that there is no empty slot today and I cannot give the exam today.

It was a lot of inconvenience for me and my friend. The important point is I never expected this from Prometric Center who conduct lots of other important certifications.

Finally we rescheduled the exam on 30th August.

Just wanted the take the prometric center employees towards right direction where lot of hard work in studies,time and money is involved.

Thank you

Babul Bansal

I dont know where to post this topic, but I just posted to tell you about my bad experience with prometric center.
Hi

Is there negative marking in SCJP 5 exam?
If yes, what is the marking scheme?

Thanks.
:roll:
I am trying to solve questions of K & B scjp 5 LEVEL as they said that you will find questions of this type. But unable to solve them correctly.

The main problem is:
1.In multiple answers, at least my one answer is always wrong, whether there are 2 right options or three which really messed my whole question.
2.I am unable to even get collections and thread questions.Is there any special way to treat them.

Please help me out guys.

Babul
I have my exam on 14th, I have given mock exams but unable to score more than 50-55%, which is very depressing. Unable to understand how should i prepare now, these are the last days and confused about how to increase the score. It actually made me now more confusing and am unable to build the stamina to solve more questions now.Please share your experiences and tell me how to increase the score, I found collections and threads topics not confusing but unable to solve their questions at all. That's the hardest hit.

Babul Bansal
Preparing for SCJP 5
Well I check the code, its a question given in the Kathy Sierra book under Self Test-12th question.

I am again posting the question with options and answer.
Given:

1. class Eco {
2. public static void main(String[] args) {
3. Eco e1 = new Eco();
4. Eco e2 = new Eco();
5. Eco e3 = new Eco();
6. e3.e = e2;
7. e1.e = e3;
8. e2 = null;
9. e3 = null;
10. e2.e = el;
11. e1 = null;
12. }
13. Eco e;
14. }

At what point is only a single object eligible for GC?

a)After line 8 runs.

b)After line 9 runs.

c)After line 10 runs.

d)After line 11 runs.

e)Compilation fails.

f)Never in this program.

g)An exception is thrown at runtime

ANSWER:
G is correct. An error at line 10 causes a NullPointerException to be thrown because e2 was set to null in line 8, If line 10 was moved between lines 7 and 8, then F would be correct, because until the last reference is nulled none of the objects is eligible, and once the last reference is nulled, all three are eligible.

1. class Eco {
2. public static void main(String[] args) {
3. Eco e1 = new Eco();
4. Eco e2 = new Eco();
5. Eco e3 = new Eco();
6. e3.e = e2;
7. e1.e = e3;
8. e2 = null;
9. e3 = null;
10. e2.e = el;
11. e1 = null;
12. }
13. Eco e;
14. }


Can anyone explain me the islands of isolation topic, I found it very confusing?

import java.util.*;

public class Dates2 {
public static void main(String []) {
Dates d1 = new Dates(1000000000000L);
System.out.println("Ist date: "d1.toString());
}
}

F:\scjp>javac Dates2
error: Class names, 'Dates2', are only accepted if annotation processing is expl
icitly requested
1 error



What this error says?
How will this code compile on jdk1.6?