« first day (15 days earlier)      last day (233 days later) » 

1:18 AM
sure :)
 
 
13 hours later…
2:34 PM
Howcome this returns "15 15" and considered pass by reference? i.stack.imgur.com/gizc7.png
While this returns "false true" and considered pass by value? i.stack.imgur.com/z7M6k.png
 
2:53 PM
@FirstStep If thats true, Indeed that an interesting output. :)
@FirstStep I think Java consider the array as an object.
while primitive remains primitive
This explains the mystery hastebin.com/vixowucuse.cs
Ok my theory is right
115
A: Is an array an object in java

PaulYes. The Java Language Specification section 4.3.1 starts off with: An object is a class instance or an array.

 
3:12 PM
@Enzokie The array was treated as a pointer. C++ does that. How could I miss that !
 
I haven't tried C++ that much so no idea :)
 
4:02 PM
I have an interview - Language Agnostic
but they use Java
I hope I get that job
 
hey yo
@FirstStep you here
 
4:27 PM
@FirstStep here
 
@ColdFire here
sa du?
What's Up Dude
 
you pinged me something to ask java pass by value something right?
 
Well I included a link with the ping and it turned out to be dump mistake that I missed
 
ohk yeah i saw
 
when an array is passed, it is treated as a pointer (reference)
 
4:31 PM
nvm people who dont know java does mistakes
 
I am getting ready for the interview
It is next week - Fingers Crossed
 
nice
\o/
 
:D
 

« first day (15 days earlier)      last day (233 days later) »