Krishna Bulusu

Ranch Hand
+ Follow
since Jan 27, 2006
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 Krishna Bulusu

thank u martin..
but here the problem is i am getting null when tried to print the redirects....
hi all,
sorry if it is wrong place for this post..

i am facing a serious problem....

i am using HttpClient inorder to get the response from a website. But that website is useing redirects...that means..when i open it browser some four to five redirects r teking place and then the required response is coming....
if i try the same from HttpClient.....i am getting the first redirect as the response....in that response there is link saying that "click here to continue"..i am extracting that link and again request for the responce.....after getting these knid of responses..i am again getting the first page(logn page)......

can anybody help me in this??


thanks in advance!!

regards

krishna.
yeah.....

these questions r from voodoo....u know in all qusetions they don't declare the main as public..they r giving like

static void main(String args[])....

how come it is possible..??

thanks for ur reply....

krishna.
hello,
i came across the fallowing questions in a mock exam....

question 1)

class XTC {

static void main ( String [ ] args ) { // ---> line 1
int x = true ? 10 : 20 ; // ---> line 2
System . out . println ( x ) ; // ---> line 3
}
}

here i have mark....that it will rise an Exception at runtime saying that there is no main method..

but the Answere is : compiles and prints 10 in the console.

question 02)

class ZZY {

protected static void main ( String [ ] ka ) {
Test t = new Test ( ) ;
t . getInner ( ) . doSomething ( ) ;
}
}

Options :

a . Compiler error - class Test . Inner not accessible from ZZY
b . Compiler error - doSomething is declared abstract in Greater
c . Compiler error - doSomething in Inner can't override doSomething of Greater - the access modifier is not present in Greater
d . Compiles & prints " I'm in inner " to the console on execution

how came the Ans is 'd'? here the main methos is protected....won't it give runti,e exception??

plz give me reply....

thanks in advance

krishna.
hi all,

i would like to know about SQL injuctions..
can any one explain me this and give me the link for the aboue....

thanks in advance

regards
krishna.
thank u Ulf...

but in such case where i have loaded two drivers in the same programme...which one will be pramoted .....??
hi,
i have one small doubt...
we will use Class.forName("driver"); to load the driver....

my doubt is can we load two drivers??
like

Class.forName("driver1");
Class.forName("driver2");

will the aboue code compiles and runs or any exception??

thanks in advance

regards,
krishna.
hi,

can anybody explian the difference between runtime polymorphism and compiletime polymorohism....

sorry if i post this in wrong place...

regards
krishna
thank u very much flom...

i got one shortcut for "<<"..
let us say int i=4;
inr result=i<<4 is nothing but 4*2 power 4 ie, 4*16=64.

is it true??

regards,
krishna
hi,
i couldn't understand the Shift operator("<<",">>",">>>") mechanism....
can any one plz explin this.....

thanks in Advance
regards
krishna.
hi mark,

thank u for posting my reply.....
i am preparing for SCJP 1.4.....b'coz...hmmm.....it was there in my previous thread....

krishna.
hi,chen
thank u for ur reply.
so, there won't be any difference on the difficulty level if i select beginer,intermediate and expert right??
plz clarify this.
thank u
krishna.
hi,
I heard that before starting the exam, we have to choose the difficulty level....like..intermediate,advanced..etc....

which one will be better...and the differences between those levels...which one people generally choose.....

plz give me the Answere..

thanks in Advance
regards
krishna.