Shiks Sethi

Greenhorn
+ Follow
since Nov 01, 2008
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 Shiks Sethi

I passed SCJP with a fair score of 73%.
Got above 80% in all the sections except Collections/generics and Threads.Guess lack of practice in those areas!

But I PASSED!

Thanks all for your help and support
15 years ago
Congratulations Ankit! You deserved it!
Thanks for helping me understand mnay concepts through your esteemed answers.
I cleared SCJP with 73%.
Did not devote as much time BUT appreciate all the help on forums. K&B Book and Whizlabs exams helped me clear my concepts.

Thanks all for your great and prompt input.
15 years ago
Thanks Clark. I noticed some questions during practice do mention if a value can be used multiple times, but not all...
What is the default assumption if question does not tell you so?
I would say, for API contents questions , you need to open the java API and glance thru most common methods and examples as K&B book does not cover all the API methods in that detail.
This book is a good certification guide but again practicing and running code snippets yourself would take you far.
I am about to give my SCJP in first week of Dec.
Have a question regarding Drag and Drop type questions

Can we use one value multiple times in drag and drop?
Also, if we have dropped wrong value in one box and later on realise it, how can we change it? Would just dropping in the correct value over the wrong value overwrite it?

May be someone who have got their certifications can help clarify.

Thanks again
Source- Whizlabs Practice Test exam

Question

class A{
int x=10;
}

class B extends A{
int x=6;
}

public class CovariantTest{
public A getObject(){
return new A();
}

public static void main(String[] args){

CovariantTest c1= new SubCovariantTest();
System.out.println(c1.getObject().x);
}}

class SubCovariantTest extends CovariantTest{
public B getObject(){
return new B();
}}

What is the output of this program?
Answer is- 10
But, I don't understand why?
c1.getObject() calls getObject() method of SubCovariantTest class - hence it returns Object of type class B. Then why c1.getObject().x returns 10?

Can anyone explain it please?

Thanks in advance
Hi Devaka,

I gave Diagnostic test after downloading Examlab.
Once I got my score report and started to review my answers , I mistakenly closed it and now I cant review the answers on my test.
Is there any way to retrieve my previous score report and answers?
Thanks for pointing out the Errata.

So from what you said-

1. If code has Short story=5; Answer= 1 obj available for GC.
2. If code has Short story=200 Answer= 2 obj available for GC.

Is that rite?

How do i know which values would be cached and which not?
Like you said 5 is one of those values....
So, we still have 2 objects available for GC- correct!

1. Object referenced by c1 reference variable----which can no more be referenced as c1=null.
2. Short Object which c1 object has reference to----which can no more be referenced as c1 cannot be referenced.

Sorry, but I am not very clear on Ramesh's post of Short object from the constant pool.Can anyone clarify that?

Thanks
Hi all

Am taking my SCJP 1.5 in first week of Dec and have finished one pass of K&B Book. Very precise and conceptual one. I have to improve on some topice like enums,generics,regex and would like to practise sectional questions to build more confidence on these topics. Any idea for good website providing free sectional questions?