This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Which different between these two methods please? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Which different between these two methods please?" Watch "Which different between these two methods please?" New topic
Author

Which different between these two methods please?

André Asantos
Ranch Hand

Joined: Nov 23, 2009
Posts: 234
Which different between these two methods please?



André AS
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

somarValores adds two numbers, like 1+2=3. soma performs a binary AND, like 0110 & 1100 = 0100 (see this).


[My Blog]
All roads lead to JavaRanch
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

These are definitely not the same. For example, 1 + 1 == 2 while 1 & 1 == 1.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

...not to mention the return types.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Which different between these two methods please?
 
Similar Threads
Object Initialization
OOP?
which are the correct answer
Overloading across classes
the first code on interface