0

(I was asked this in my interview)

I said yes but when he asked to do it I wasnt able to

  • 1
    Seems like a silly question to me. What insight does the interview hope to gain by asking this? Would `int[] x = { 0 };` count? An array is an object... – Jon Skeet May 16 '23 at 19:29
  • Welcome to Stack Overflow! See the [How to Ask page](https://stackoverflow.com/help/how-to-ask) for help clarifying this question. Include the desired behavior, a specific problem or error and the shortest code necessary to reproduce the issue. Also share what you already investigated on this topic. – aled May 16 '23 at 19:31
  • `Double df = 3.14159` would also do it – yshavit May 16 '23 at 19:31
  • 1
    As a gentle nudge, btw: I found the linked duplicate by googling the exact text of this question's subject line. It was the top result. – yshavit May 16 '23 at 19:35
  • 1
    `"x = " + Math.random()` – Holger May 17 '23 at 15:55

0 Answers0