Thread: method calling?
View Single Post
  #1 (permalink)  
Old 01-24-2008, 10:16 PM
frejon26 frejon26 is offline
Member
 
Join Date: Jan 2008
Posts: 7
frejon26 is on a distinguished road
method calling?
hello,
I was wondering in what order are method calls completed on an object?
left to right? or right to left?

say you have a large StringBuffer object with many characters and you want to 1). convert it to a String, 2). get a substring within it and 3). test for an indexOf(".exe");
does it matter how it is written?

string_buff.toString().substring(start,end).indexO f(SPECIAL_EXTENSION);

-thanks.
Reply With Quote
Sponsored Links