psr krishna

Greenhorn
+ Follow
since Oct 05, 2000
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 psr krishna

hi harpal ji
Dont panic about SWINGS in new exam. They will not come at all in your exam and forget about that .Try to concentrate on your given Exam Objectives without any fear.OK!!Ofcourse your friend might be have wrong memory about swings in new exam.It is silly.
All the best for your exam.

---shivaram.p

hi

Extreemly, excellant your performance at SCJP2 new exam.
It is a dreaming feat that you have achieved.All the best
wishes for your future.
---shivaram.p
23 years ago
hi friends,
thanks for compliments and AJITH : thanks for your EXCEPTION

NOW ONWARDS I WILL CONTRIBUTE MORE IN TO THIS FORUM WHAT EVER I KNOW.!!!
thanks once again to ajith,rao,aruna,cav,harpal,mahapraputa,deb,manish .
--shivaram.p
hi friends,
come on please contribute on this subject regarding exam .I t will be very useful for future aspirants
If some of the mock exam owners can change their questions style(means toughness level and lenghty) it could be better ,Otherwise the existing mock exams will not solve the new exam purpose.
Can any body bring light on this suggestion???
--shivaram.p

hai friends,
Allow me to say thanks to all of you great individuals.And my special thanks to MAHA,AJITH,PAUL and all great contibutors in this forum. I passed SCJP2 on 24-10-2000 but with very low score(70%)I was very disappointed about my score as i used to score above 90% in all mock exams.It is fair to me if i share some of (no full ) experience about new exam.
1. No short cut to pass exam except hardwork
2.The real exam is completely differant than all available mock exams on the web.
3.I faced lot of coding & lengthy questions(about 25 to 30)with 25 to 40 lines.
4.In exam for 15 to 20 questions there is EXIHIBIT button .If you click on this button u will get another frame in which your question coding will be asked.To answer to this question again you close it and go back to your actual question number for marking
5.So observation about duration of exam was,for every question the average time is 90 seconds.If u read at an average speed y can go 3 words per second that come 3 seconds per line .ther are at least 20 , 40 line questions which take 120 seconds/question.So friends please think about it ,it is fact and make your exam program accordingly.Iam requesting for suggestions from ajith ,maha and all so that it can be better for future aspirants.
6.This scjp2 exam is ment for all people.It is not only for brilliants.The duration of exam is not sifficient with introduction of lengthy codes and lengthy story questions
7.The exam toughness is equalent to khalid mockexam.Please read khalid book
8.For threads u should be very very carefull.

that's all
I once again say thanks to all great contributors on this forum that helped me a lot.
thanks
---shivaram.p

hi
Can anyone clear my doubt
that is...
How an object which is implementing "Serializable" interface is eligible for serialization without inhereting any properties from Serializable interface since Serializable interface do not defined any methods(behaviour).
thanks inadvance
---shivaram
dear all
I believe the answer is just before line 6. why ?--because

very simple
the object will only be gc'ed when

1. all its direct or indirect references are set to null
2. OR it is outof scope of a method provided that it should not have any backup reference some where else in the program
So in our puzzle it is in out of scope just after line 6 .
OK!
IF MY EXPLANATION IS WRONG PLEASE RECTIFY .
---SHIVARAM
hi arpitha and aryan,
many many thanks for your good examples. Now i got the point with clear theory. So once again let me repeat what i understand from your examples.If any misunderstand please correct me! OK!
1. WITH RESPECT TO A SINGLE CLASS PROGRAM THE IMPLEMENTATION OF AN INTERFACE IS NOT A GOOD USE

2. WITH RESPECT TO MULTI CLASS PROGRAM AND PACKAGE LEVEL PROGRAMS THE IMPLEMENTATION OF AN INTERFACE IS VERY GOOD USE BECAUSE OF SOME EVENT NOTIFICATIONS AND SHARING OF SOME COMMANALITY AMONG THE CLASSES WHICH ARE IMPLEMENTING THE CORRESPONDING INTERFACE.
Is it right?
---shivaram
hi all
Still iam not convinced why because?
the real use of inheritance is when your really inheriting one or more defined properties from parent class or interface.But in case of interface the property(method) is (are) completely not implemented,So instead of inheriting that un implemnted methods from interface i can easily give complete implementation for those methods.We can take the case of EVENT LISTENER INTERFACES
For example I can simply write addActionPerformed() and etc., methods with complet implementation as per my need without inhereting from ActionListener interface then it will work.
So now my point is better clear now if iam wrong please pardon .
--thanks
sivarm
hi jesse,
please correct a little mistake in my previous post

byte x=3 is in 8 bit representation so, in binary it is 00000011 OK! then
~x= bit wise inversion is 11111100 OK! after this inversion
when left most bit is 1 it will be considered as a
negative value and it is assigned to x.In JVM the negative numbers will be represented in 2's complement form ,so to get actual number you first again inverse it and add 1 to right significant bit and express your result in nagative value, so this is like this
x: 00000011
~x: 11111100

for result inverse the above ~(~x): 00000011
add 1 to right most bit 1
--------
00000100 which is 4 in
--------
decimal notation and express result in negative i.e.:-4
OK! NOW I THINK YOUR DOUBT IS CLEARED.
---THANKS
SHIVARAM

dear all
I got confused about interface implemantation theory.
my doubt is suppose a
interface crazy{
doit();
eatit();
walk();
}
is there now i will create one class that is..
class just implements crazy{
doit(){System.out.println("doit");}
eatit(){System.out.println("eatit");}
walk(){System.out.println("walk");}
}
so implemented the crazy interface.if i can also define the class without implementing the crazy as foll.
class just{
doit(){System.out.println("doit");}
eatit(){System.out.println("eatit");}
walk(){System.out.println("walk");}

}
if both definations are true what is the use of implementing the interface?I can simply write the required methods with full implemented code without using " implements "word
so anna,ajit and any one please clarify me where is actual use of interface implementation?
---thanks
--sivaram
hi jesse,
The answer for your question is -4. how?
here is explanation....
public class test{
public static void main(String args[]){
byte x=3;
x=(byte)~x;
System.out.println(x);
}
}
A. 3
B. 0
C. 1
D. 11
E. 252
F. 214
G. 124
H. -4

byte x=3 is in 8 bit representation so, in binary it is 00000011 OK! then
~x= bit wise inversion is 11111100 OK! after this inversion
when right most bit is 1 it will be considered as a
negative value and it is assigned to x.In JVM the negative numbers will be represented in 2's complement form ,so to get actual number you first again inverse it and add 1 to last significant bit and express your result in nagative value, so this is like this
x: 00000011
~x: 11111100

for result inverse the above ~(~x): 00000011
add 1 to left most bit 1
--------
00000100 which is 4 in
--------
decimal notation and express result in negative i.e.:-4
OK! NOW I THINK YOUR DOUBT IS CLEARED.
---THANKS
SHIVARAM