Ela Jha

Greenhorn
+ Follow
since Jul 17, 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 Ela Jha

Thanks evryone,i got it.
12 years ago
int i=0;
i=i++;
i=i++;
i=i++;
System.out.println("i "+ i);
Still i=0,Can anybody explain why?i dint get.
12 years ago
Servlet extends HttpServlet or Generic Servlet,
Servlet is a java class but some features which makes it special or servlet.
it is managed by a servlet container example tomcat.
it is used for handelling requests and then passing on the request to the class handelling business logic or to forward to another JSP.
it acts as controller generally not for performing buisness logic.
it handles requests & sends response through HttpResponse object.
12 years ago
Hey,
that's the difference...... really
when we create a string say
String a="abc";
& then perform the operation
a=a+"xyz";
now "abc" string wud still exist in the pool it won't be modified in addition
there wud be a new string created "abcxyz" and get assigned to a.
so in all there wud be two strings in the pool "abc" & "abcxyz"

but when we use StringBuffer then the original string can be modified instead of second string getting created evrytime.
I hope it wud help.
[ August 23, 2006: Message edited by: Ela Jha ]
12 years ago
Here a is created in the String Pool while b is an object created in heap.
== operator compares the object reference so obviously it wud result into false
12 years ago
How can objects have predefined size as it really depends on the number and type of instance variable it holds.
[ August 23, 2006: Message edited by: Ela Jha ]
12 years ago
i got it,thanks Jeroen.
12 years ago
byte b=4; //valid
byte c=5; //vaild
byte d= b+c; //is invalid
Pls explain why though the range of byte is -128 to 127
12 years ago
Thank you all for the answers
12 years ago
Integer i= new Integer("10");
if (i.toString() == i.toString())
System.out.println("Equal");
else
System.out.println("Not Equal");

it prints Not Equal,can anyone explain me why?
12 years ago
Hi ,
i am not getting exactly what is handle to be passsed in the ejbRemove() function while calling from home ,Any help would be appreciated.
Thanks in Advance

This has lock on a single object(this) so all the methods which are synchronized cannot be accessed by another thread

It has lock on an object which can be defined by you let's say a String.
if u have four functions say put,get,push,pop & u want while pushing no thread shud be able to access pop but they can access put or get & vice versa then define single object for push & pop and another object for put & get.Remember lock is on an object
For Example
[/qb]<hr></blockquote>

[ edited to use separate code blocks rather than one big one - the text in between code was treated as an overly long line of code, messing up the display - Jim ]

[ July 17, 2006: Message edited by: Ela Jha ]
[ July 17, 2006: Message edited by: Jim Yingst ]