Peter Laurinec

Ranch Hand
+ Follow
since Sep 13, 2004
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 Peter Laurinec

Shade a static variable? Never heard of such as term.
Variables in general are not inherited. Therefore it does not matter whether the variable in class B is s or something else, B.s will never be able to compile.

Hope it helps
Indeed a very usefull page.
I can help clarify many doubts concerning enums.
Thanks for pointing out.

Originally posted by Anthony Karta:
Thinking to buy JQPlus 5.0. are they close to real exam question or overkill?

or just enough practice with KB MasterExam (not tried yet) & SelfTest (I found they are hard/tricky).

anyone who use these products, please leave your comment here.

my exam scheduled on 29 Jan 07.

thanks

I don't mind buying couple of them. It's hard to find good and free mock out there. thanks.
[ December 04, 2006: Message edited by: Anthony Karta ]

[ December 04, 2006: Message edited by: Anthony Karta ]




I don't know about JQPLus, but the K&B SelfTest is a good start.
Try out the Master Exam, I (and not only me) have found it really challenging. Master Exam may be even slightly harder that the real exam, but that's good for preparations.
Harder the practise easier on battlefield
So it is as I thought. There is a bug in LearnKey Bonus Exam answer.
I did not think it is possible but as we see nothing is perfect.

Thanks.
Hi everybody.
Maybe I have overlooked something, but the results of this question is somehow unclear to me.

Question


Answers


Stated correct answer is A. But how can be 2 objects having different hashCodes equal? This violates the requirement that if o1.equals(o2) == true then o1.hashCode() == o2.hashCode().

Is there a bug or have I overlooked something? Thanks for help.

Originally posted by Kavitha sp:
Hi all,
This is my first post to this forum, while i was browsing on SCJP 1.5, I found that people are discussing about pros and cons of scjp. I have around 2 years of experience in java. Recently I changed my job and for the past 4 months, I am working for a different technology and not java, I am willing to switch back to java technology. In this regards, I thought it would help me if I complete SCJP to fetch a good job. But after reading the posts here, I am a bit confused as to whether taking the exam will add weight to my resume or not. I am sure it will add weight to my java knowledge. I am planning to take all the exams eventually. Please give your suggestions. It will help me.

thank you,
Kavita.



Well. Other than the certification what really counts is your knowledge. If you are willing to take other exams as well and as you stated exam will add weight to your JAVA knowledge there is no reason to hesite.

Just go for it

Originally posted by Suhas Wadadekar:
I have read many responses from members very eager to take on the challenge of SCJP 1.5....However, hardly has anyone emphasized on why to take (or not take SCJP 1.5).
I have a few doubts:
1. Do I need JDK 1.5 for it?
2. I have heard JDK 1.5 is a Beta version...so is it advisable to take on this exam...how prevelant is it?
3. I would certainly like to have an edge over others by taking 1.5....but will it make me an outcast? Does SCJP 1.5 has equal (or greater) recognition than SCJP 1.4?
4. And what is this K & B book?



There are many reasons why you should/should not take SCJP 1.5 exam. Is depends on anyone's preferences. You may want to do so to improve your skill, to take a challenge of passing this exam and more and more ...
To answer you questions:
1. Well yes, if you want to compile & run Java 5.0 specific features you need a JDK 5.0
2. JDK 5.0 is not in beta for some time
3. hard to say, but basically some paper stating you are certified does not make you an outcast
4. What a question
:roll:
K&B book is a study quide focused on the exam requirements which can help you pass the exam.
Query: "from Person p" will return all persistent objects from the database.
Then you can normally refer to Person attributes(name,add).
This issue was already discussed here, so please search the forum before you post fome question.
A good start is JSCP FAQ or this thread

Originally posted by racarter:
[QB]I am trying to get started with hibernate-annotations but I keep getting this error:

Initial SessionFactory creation failed.java.lang.NoSuchMethodError: org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List V

Hmm, I thing that your annotations are wrong. Can you post here more information, first about your annotations and second about the error you are getting?

Yes sure.
When you want to use a second-level cache (in your case EHCache), there need to be additional configuration file present according to concrete cache implementation.
In this case you should place ehcache.xml to the same location as your hibernate.cfg.xml.
After this everything should be working. If you have more difficulties on using second-level cache with hibernate try to read this article.

Peter
In case of such as error you should post whole error message otherwise it is hard to suggest.
I think this might be that you dont have the Hibernate3 classes in classpath.
Please locate your log4j.xml file a search log appenders for hibernate classes. There you change logging level to higher lever (for example WARN or ERROR).

You can find more info about log4j levels in Log4j manual

Hope this helps.
Hey.
You do not create new instance of a class in a query.
If you are trying to query 2 columns from some class the query should look like this:
Hi.
I am not sure whether I understand your question correctly.
Please ask a Meaningful question next time.

You usually use Set in one-to-many association that is inverse to many-to-one associaton between 2 classes.