About printing of default values
Posted: Thu Dec 21, 2017 4:29 pm
Paul,I gave my exam today and got 75% which is good considering my first oracle certification exam.I had a question in exam which I wanna ask.I am asking here because I don't know where to ask and this is the place where you gave me your last reply.
There was a question which was printing char,boolean and float default values and there were 2 confusing options:-
a. char = 0 b. char =
boolean = false boolean = false
float = 0.0f float = 0.0
I marked a. because I remember you said that char is nothing but an unsigned integer and also because float doesn't have f with it in the second option.I have classes notes which says b. is the correct answer.So,Did I mark the right option or Wrong option?
Sorry for asking here but I am really passionate and you can delete it or I will delete it after my doubt is cleared.
Thank you in Advance.
There was a question which was printing char,boolean and float default values and there were 2 confusing options:-
a. char = 0 b. char =
boolean = false boolean = false
float = 0.0f float = 0.0
I marked a. because I remember you said that char is nothing but an unsigned integer and also because float doesn't have f with it in the second option.I have classes notes which says b. is the correct answer.So,Did I mark the right option or Wrong option?
Sorry for asking here but I am really passionate and you can delete it or I will delete it after my doubt is cleared.
Thank you in Advance.