Object a = new Integer[10]; Object[] b = new Integer[10]; 

What interesting dialogue can this code lead to?

  • What do you have in mind? Code as code. - Nofate
  • At the interview, here is the link: javenue.info/post/89 - spbsmile
  • one
    ))) snatched a piece of text, if I didn’t read about it in the topic, I wouldn’t have thought about the dialogue =) - Gorets
  • if they ask me at the interview what happens when Object o = new Object (); o.wait (); I'll get up, turn around and leave. In fact, such questions that carry censorship heresy make me feel that the company is engaged in some kind of censorship - Viacheslav

2 answers 2

What, in fact, are employers asking such questions? Or is it just boring to the employer who wants to talk about "high" programming?

If in the case, then a Object, and b an array, the programmer’s efforts to explain to the stupid Java compiler in different contexts depends on this, that in essence we want to process the same baytik.

  • "a Object, and b an array," Ыыыы =) well, in general it is clear) - Gorets
  • "yyyy =)" - but in simple Russian words, how will it be? - avp

http://stackoverflow.com/questions/9277813/the-behaviour-of-equals-method-in-java

Google for this query: "Object a = new Integer [];" + "Object [] b = new Integer [];" quotes and plus are also needed.

  • ))) plus is no longer working in Google) - Gorets