VidyaVikas Yalamanchili

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

Recent posts by VidyaVikas Yalamanchili

Joe Ess wrote:Are you using Weblogic 10.0? There is (or was) a known problem with the server using it's own classes instead of the application's, even when the deployment descriptor specified to prefer the "local" class. We moved to 10.3 after I found that "feature", so I don't know if it was ever fixed.



Yup we are using Weblogic 10MP1 but here the issue is instead of taking the class from jre it is taking from application.
15 years ago
In our application we have jacorb.jar in classpath.Some of the classes are colliding with rt.jar and if i run my application from outside by providing my jar in classpath the collided classes have been taken from rt.jar and out application is working fine.

When we start our application with in Weblogic it is not taking rt.jar first it is taking jacorb.jar only.

Can any one give me a solution where i can point rt.jar as the first jar to take classes from in weblogic(We tried Adding rt.jar into Xbootclasspath and adding rt.jar to classpath in weblogic it didnt worked)
15 years ago
HI,

Creating a Static Referance of a Class used in Singleton.In singleton you The class constructor will be of private.When constructor is private you cant directly create a instance you need to have a static method to ctreate a instance instance variables cant be used in static methods so we use static instance varible to create the class.

I think you got it
HI varun,

I was also having same problem when preparing for the exam.For the first time when i wrote any mock exam i was failing.I was really disapointed at the same time the second time i got good scores as you got.The best way to learn through mock exams is just check the questions where you are doing mistakes.There will be lots of different exams in Whizlabs.Try to analyze common mistakes you are doing in all the exams instead of just remembering the answer.And i am sure the real exam wont be tuff as of these mock exams.check for other mock exam softwares which you download from some of the sites like

javabeat.net

when you fail a exam you can get the scores in individual sections and just revise that section once again.

Ex:if you fail to get what is a correct overriden menthod just go and read method overridden rules you can find those two minute drills in Kathie siera book they are really helpful before going to the exam.It compraises all the fundamental rules.

Go a head
good luck for your exam
Hi fellow ranchers,

I have done SCJP 5.0 just 2 days back when i was preparing for SCJP 5.0 my friend sent me a pdf which contained some SCJP questions i thought the questions are just for preperation as they are in kathie seira book.I didnt have time to go through complete PDF.But after attending the exam i got doubt and checked the complete pdf to my astonishmenet it has complete set of questions.This PDF is already spread through out the net.

So i felt really bad because it means even though a person who is a novice can mug up that pdf and get more than 90%.Then what is good in writing the exam?can it survive its value?I sincearlly request SCJP exam creators from this forum please extend your question bank so that the person who gets the pdf also needs to understand the basics and cant go to exam just by mug up.When ever a new person writing the exam every one search for the new questions to prepare its a common phenomenon as it already spread all over the place there is only one way of killing it change the questions and make the previous exam as preperation software.

I hope this happens to make have the value to SCJP.
Hi all,

I have cleared SCJP 5.0 with 87%.Thank you one and all in ths group for posting real brainers which really helped me in clearing this exams.The topics are really helpful.

with Regards,
VidyaVikas Yalamanchili.
16 years ago
HI

In the above code compare should always return a int.When you operate on characters every character can convert to an int.

you can give int i='a'

which will get i value 97.it is the ascii for a.So when you do s.charAt[1]-s.charAt[1] the sort happens on the second character of the string.
Hi

<? super Object> means you can have Object type or its Super Class type at type where you are mentioning the type.It means whatever the Type you are mentioning in Generic it should be Object or its Super Object T should be Super of Object mens Super Classtype not SubClass type.But this method will allow you to add thngs to The collection that type.But The method with following Declaration gives compilation error when you try to add the Objects.<? extends Object>.It menas the type can be either Object or its SubClass.Just remeber its Declaration for type only.

When you gave decleration as <? super Object> you need to specify the type in method call.When you specify the the type then you can add only those type objects or the Objects which satisfy IS-A.

I think this will answer your Question.

Please correct me if i am wrong.

Originally posted by jeya prabha:
HI ,
Now i can understand this.
for my understanding
: queue.add("one");
R2: queue.add("Four");
R3: queue.add("two");
R4: queue.add("four");
R5: queue.add("five");
R6: queue.add("FIVE");
R7: queue.add("three");
R8:

R10:System.out.println(queue.peek());
R11:System.out.println(queue.size());

if i am directly peek this means
the output is FIVE .
is it correct?
please help me out.
thanks.



Hi yes thats true.If you are not adding FIVE and add Five then peek will be Five
16 years ago
HI,

The Natural Order is Alphabetical Order only.For Strings Capitals are first after that Small Letters thats why in yiur programmes FIVE got polled first and it got removoed the next element is Four not five because F is capita Letter.So it gave Four as next output but peek wont take the element out.So the length is 6.

I think it explains why your output is FIVE Four 6


Originally posted by jeya prabha:
i can not understand this.
how it comes ?
what it means natural order?
is it means alphabetical order?
please help me out


[ September 03, 2008: Message edited by: VidyaVikas Yalamanchili ]
16 years ago