Discussion :: Java.lang Class - Finding the output (Q.No.11)
|Stinger said: (Mar 18, 2011)|
|Never heard of the term "non-shortcut version of the OR operator". Should be labeled "bitwise OR operator"?|
|Raj said: (Jun 5, 2013)|
|Where j is initialized?|
|Costas said: (Jun 7, 2013)|
|I agree this Raj. I think that this should produce a compilation error as j is never initialized and += operator is used.|
|Laughingpig said: (Oct 1, 2013)|
|@Raj, Java guarantee class-level variables are initialized. int's are initialized to 0.|
|Sharad said: (Apr 2, 2014)|
|Why methodB(8) never gets called?|
|Hemanth said: (Sep 8, 2014)|
|Hi @Raj where local where b initialized.
In method methodA().
|Dhamu Bee said: (Jul 31, 2018)|
|What is the value of j += i;?|
|Chandu said: (Jan 2, 2022)|
|Where j is initialized? Anyone, please explain me.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.