Siva Sekhar

Ranch Hand
+ Follow
since Jun 11, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Siva Sekhar

Hi Amit,

Thanks a lot.

I got the solution.
In my program "content" is wrong.
I set the content as "Image" but I am sending Html response.
That is the mistake.
Next as you mentioned I change the source path also.
Once again Thanks a lot....


-sekhar
[ November 05, 2008: Message edited by: Siva Sekhar ]
16 years ago
I tried by changing the "\\" to "/"



and I also tried by giving the path to "./images/nature.jpg"
But the image is not displayed.

I am working on this from last 1 and half day...

16 years ago
Hi...
I am trying to display an image using servlets and tomcat.
My project folder structure is- Tomcat/webapps/sample project/
In that i have images and WEB-INf folders.

I am trying the following code but it is not displaying the image.
can any one help me in this...




[ November 04, 2008: Message edited by: Siva Sekhar ]
[ November 04, 2008: Message edited by: Siva Sekhar ]
16 years ago
HI...Nabila...

Nice score...you did a good job....

Congrats...Enjoy...

16 years ago
dont be upset...
do more and more programs...
Just attempt mock exams...as many as possible...
After each exam analyse yourself...like
which areas are weak and which are stronger...
If a new concept is there just try to understand the logic with your own code...

I think this is your time...go and rock on...
All the best...
Hi...Rahul

Congrats...Its a Great score...

All the Best for the next one...
16 years ago
If we use new keyword like this
String ref = new String("some");

Here new key word creates one object in the memory and the ""(quotes)
creates another object in the pool...

So here 2 objects and one reference is created...
------------------------------------------------
String s1="abc";
String s2="xyz";
String s3=new String("abcd"); //line1
how many object will get created?
Some peole say 4 objects..is it right
------------------------------------------------
As Anoobkumar said...Here 4 objects are created...
3 objects are created using double quotes...
and one is created using constructor...

If line1 is changed as
String s3=new String("abc");

Then in this case 3 objects are created....
Hello...
One of My friends Took the 1.4 Exam...It is easier than the 1.5/1.6...
It is good for you if you go for latest version...

Thanks,
sekhar
SCJP-1.5
Congrats Gihan...
You did a wonderful job...
Your experience will help new ones to take up the challenge...

-Sekhar
16 years ago
HI...mahmoud.metwally

Calling of methods depends upon the Object type but not reference.
But when it comes to varaibles then it depends upon reference(not the object) type
Thanks a lot Devendra sing...
Thank you...sanket...
your explanation is good
sorry...

Now I got the point...
Because of inheritance..it is calling the Taketest1() method...
In that it is printing the super class variacle...
am i correct...?