Tashi Rautela

Greenhorn
+ Follow
since Jun 27, 2007
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 Tashi Rautela

hi,

is there any way to retrieve key values from hashmap?

Thanks,
Tashi
11 years ago
Hi,

Is there any way to get properties from a file in springs?
Do we have to create separate class for it or we have some readymade class for it??

Thanks,
Tashi
hi,

can you provide me some link where i can get an idea to make a small application using transactions or if you can give me some idea....please.

Thanks,
Tashi
Hi,

Please give me some links where transactions are explained in Springs, where some application related to client transactions are explained.

Thanks,
Tashi
Hey Thanks...you are correct...i could not notice this minor problem...

Thanks,
tashi
Hi all

String test ="This is a test";
String []tokens=test.split("/s");
for (String s :tokens)
{
System.out.println("<"+s+">");
System.out.println("next");
}
System.out.println(tokens.length);


For above question its printing "This is a test" 1
I thought for using "/s" it will split the text & will give
This next Is next a next test
as "space" is our splitter.
Please explain someone...

Thanks a lot...
Tashi
Hi Bert

Its an honour to talk to you..Thanks to javaranch
So how to see the errata page..how to know the errors??I want to see the earlier discussions that happened...

Many Thanks
Tashi
Hi Bert

Its an honour to talk to you..Thanks to javaranch
So how to see the errata page..how to know the errors??I want to see the earlier discussions that happened...

Many Thanks
Tashi
Thanks greg for the explaination...
this means replace function make the new instance always if changes are there & what about rest of the functions like substring,concat etc. Do they also behave in same manner.
Also intern() method is new thing for me...can please tell me what is it...

Thanks,
Tashi
if("String".replace('g','G') == "String".replace('g','G'))
System.out.println("Equal");
else
System.out.println("Not Equal");

--> The above code gives "Not equal" where as the below code gives "Equal"
if("String".replace('G','g') == "String".replace('G','g'))
System.out.println("Equal");
else
System.out.println("Not Equal");

If i give

if("String".replace('t','T') == "STring")

System.out.println("Equal");
else
System.out.println("Not Equal");


It gives Not equal

Not understanding this variation.Can someone please explain it..

Thanks,
Tashi
Also there is concept of isolated objects which is not understandable..please if anyone can explain with example, it would be great help.

following is the code:
class I {
private I other;
public void other(I i) {other = i;}
}
class J {
private void m1() {
I i1 = new I(), i2 = new I();
I i3 = new I(), i4 = new I();
i1.other(i3); i2.other(i1);
i3.other(i2); i4.other(i4);
}
public static void main (String[] args) {
new J().m1();
}}

Which object is not eligible for garbage collection after method m1 returns?

please explain the flow of this program..
Thanks in advance.

Thanks,
Tashi
ok... Thanks again

Thanks,
Tashi
Thanks to Chandra & Manfred to remove my confusion...
But one more thing to ask "null" can go with Number also? I thought compiler is taking it as String only

Thanks,
Tashi
i tried this code:
class A {
public void method(Object o)
{
System.out.println("Object");
}
public void method(String s)
{
System.out.println("String");
}
}

Class B {
public static void main(String arg[])
{
A a = new A();
a.method(null);
}
}

The above code gives "String" as output.....


Thanks,
Tashi
Hi Chandra,
I think in example #1 given by you,it wont give compiler error rather it will go to function which is taking string arg. the same is explained in the link which you provided above for discussion link.

Thanks,
Tashi