puneetsingh

Greenhorn
+ Follow
since Feb 23, 2001
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 puneetsingh

I am from chandigarh and planning to appear in march.Anybody from chandigarh appearing in near furure can contact me and we can discuss,may b over fone or thru mails.As someone from bombay had ritten to form a forum,i thinnk it is a good idea to do so.My mail id is puneetpruthi@usa.net
read the example
public class operat{
public static void main(String args[]){
int i=0;
int []a={3,7};
a[i]=i=9;
System.out.println(i + ""+a[0]+""+a[1]);
}
}
since = opearator is right associative,it shud move from right to left and give arrayindex out of bound.But it does not!!Kindly explain
hi li!!
thanx for your reply.but it says that no temporary string object is created ,but only stringbuffer object is modified.
ie when it gets concatenated like new StringBuffer().append().append()... Only one stringBuffer object is creadted.If u have diff thinking,kindly clarify.
hi li!!
thanx for your reply.but it says that no temporary string object is created ,but only stringbuffer object is modified.
ie when it gets concatenated like new StringBuffer().append().append()... Only one stringBuffer object is creadted.If u have diff thinking,kindly clarify.
hi li!!
thanx for your reply.but it says that no temporary string object is created ,but only stringbuffer object is modified.
ie when it gets concatenated like new StringBuffer().append().append()... Only one stringBuffer object is creadted.If u have diff thinking,kindly clarify.
hi li!!
thanx for your reply.but it says that no temporary string object is created ,but only stringbuffer object is modified.
ie when it gets concatenated like new StringBuffer().append().append()... Only one stringBuffer object is creadted.If u have diff thinking,kindly clarify.
Hi guys,
i am a bit confused abt strings.
str="str"+"str1"+"str2";
first of all,as many have posted this query,how many objects are created here.
Is it one three or none.
Also where this creates any objects or this doesn't create any oblect.
Hi guys,
i am a bit confused abt strings.
str="str"+"str1"+"str2";
first of all,as many have posted this query,how many objects are created here.
Is it one three or none.
Also where this creates any objects or this doesn't create any oblect.
i am still not satisfied with matts reply,thiugh it is right that it will call foob's method.But matt says foob's method is not constructed yet,which i think is wrong because when u do new foob ,the method's and the variables r constructed and that object will have a copy of this class's instance methods and variabls.
if u r clear abt this question kindly mail me at psp74@hotmail.com