Pedro Esgueira wrote:
With my "if" I don'I mean to describe an hypothetical sitaution - I'm just describing what seems to me the order of initialization acording to the author's words "If you answered 5, you got it right. Fields and blocks are run first in order, setting number to 3 and then 4. Then.."
Which then leads me to ask: "what is then the role of the main method" (because, from my interpretation of the authors' words, they seem to not be starting with the main method)...
sohail wrote:assignment requires runtime check, so an integer object reference is assigned to int which is primitive type, autoboxing and unboxing can be done at while declaring the variable not at the assignment so error at runtime because if it not initialized it contain null
So null is assigned to int variable nullpointerexception ...
Pedro Esgueira wrote:What is then the role of the main method if we don't start with it, and instead start with
User Kunal wrote:Oh I have another doubt. Can you please answer my very first post?
Yan Digilov wrote:Ah, sorry yall, I am talking about the section ABOVE the sharpen your pencil piece. I mean the one titled "Assignment". It goes "Double d = x;" and there is an Integer and an int pointing to it...
Rafael wrote:Do you know of any java project, preferably some application with social objective, where you can collaborate as a programmer on a voluntary basis?
Shubham, it would be a lot better if you can post the original language in the problem. please don't forget to mention the source(for copyright issues). if it's from some book tell us the book name, page number etc. if you have a link to the original problem you have an option to cite the link also. We really want to help but we need to understand the problem first. As you can see in the previous discussion of this thread, i have guessed something and campbell has something else which is creating ambiguity.Shubham Rai wrote:Intersection means common characters in all the given strings.
I mean characters common among all the String and if their is some character common among the input strings increment the count by 1 additionally if some counted character repeats in any string then it will be counted again if the same character repeats also in all other strings. That's a guess though. let the OP decide if it's what he wants.[Edited]Campbell Ritchie wrote:What's an intersection character?
Campbell Ritchie wrote:Please explain exactly how you are counting letters. I can see c in all three Strings, so I would expect the answer 3.