yogesh gargate

Greenhorn
+ Follow
since Aug 18, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by yogesh gargate

Simply... protected variable/method becomes private to all classes in separate package, except the sub-class and its sub-classes in other package.
Well... i guess its overload.
Hi Prabhakar,

Constructor's name is nothing but the Class's name. And constructor do not contain any return type. (if it is containing then it's method).
You can have method with the class/costructor name. No problem.
But the method is not invoked when you create instance of class, if you want to invoke that method you have to invoke it explicitely.

...yogesh
Hi,
I am puting key-value pair in HashTable like
hash.put("a","a");
hash.put("b","b");
hash.put("c","c");

And retriving it through iterator, like
(Iterator)hash.elements() & (Iterator)hash.keys().

But i am getting result in order,
b, a, c.

Could anybody tell me why this order?

Thanks,
Yogesh
I want to call same service for all request. So what should i provide for service name in service-config.wsdd?
Regards,
yogesh
18 years ago
hi,
simply you can say,
Checked exceptions are those for which compiler forces you to provide some code to handle the exception (try/catch).
Wehere as for unchecked exception you are not forced to provide handler.

Hope this will help you.

Thanks,
Yogesh
Hi Sunita,

You can go for SCJP 1.5 directly. No problem. Just go through the syllabus for 1.4 and 1.5 , see in which you feel confortable, and go for the exam.

About preparation you can refer any Java preparation book for SCJP. But Kathy Sierra & Brates , and Khalid Mughal's books are favourits for the SCJP.

but after preparation, give more time on mock exams to get good result.

Hope this will help you.
Bye.

Thanks & Regards,
Yogesh
Hi
Hi,
Well its always better to give latest exam. But still it's your choice. First of all there are some additional topics in 1.5.
And its importent on which verison you are currently working, if you are working on 1.4, then its better to give 1.4 exam.
About preparation time.... its depends how much time you give everyday. If you have free time you can study entire day, but if you are working, then after job only you can work. so its depends on how much time you spend on preparation than how much days.

One more thing, spend more time on mock exams to score better.

Hopet this will help.

regards,
yogesh
Hi,
instanceof operator is used to compare object to the specific type.
Means object to compare with the same class or its superclass or the class which implements particular interface.
For ex. all folloing if conditions prints "true"


===========================================================================
interface i1
{

}
class base
{

}
class base1 implements i1
{

}

public class InstanceOf extends base1{

public static void main(String[] args)
{
InstanceOf ins = new InstanceOf();
base b = new base();
if (ins instanceof InstanceOf)
System.out.println("true");
if (ins instanceof base1)
System.out.println("true");
if (ins instanceof i1)
System.out.println("true");
if (ins instanceof Object)
System.out.println("true");
}

}

===========================================================================

But if you try to check

if (ins instanceof base)
System.out.println("true");
It will give compile time error.


Hope this will clear your doubts.

thanks & regards,
yogesh
Hi,
Try to understand the meaning of "try" block.
It is the block where exception may occure, if you don't provide any code to handle it, your program will stop. So you need to give the code to handle the exception, and which is given in "catch" block. So there should be "try" with either "catch" or "finally" or both.
Kathy Sierra and Bert Bates 's (Please check the spelings) (K&B)
and Khalid Mughal's are two good books for preparing SCJP exam.

thnaks & regards,
yogesh
Hi Dave Reinhardt ,
I think you are right. Assertions are used when you assuming (certain) that the condition is true. And this is enabled at development and debuging time and not in deployment.

Regards,
yogesh
Thanks for the reply.
Could you please provide me the links for the mock exams.

thanks in advance,
yogesh
hi Group,
I am preparing for SCJP 4 and using Kathy serra & Gate's book for preparation. I just want to know is it sufficit or should i go for other books also?

thanks in advance,
yogesh
Hi Group,
I am preparing for SCJP 1.4. Could you please give me links to study material and mock exams on net.

thanks in advance,
yogesh