Jose Lara wrote:The main problem I have seen from many people is that they don’t actually write code. So do it! Open your Java IDE and write a lot of code! Write these questions that you failed and check by yourself how it is working. Try writting the incorrect answers and check by yourself about the different exceptions, compilations errors, etc. and understand why it is happening.
Jose Lara wrote:“what would happen if I try to pass a char instead of an int as reference in a method?”.
Jose Lara wrote:Seriously, write a lot of code.
Jose Lara wrote:At the time that you are reading it, have your Java IDE open and continue coding. Every situation that comes to your mind, just write it and check by yourself. Take notes about these things if it is necessary.
Jose Lara wrote:About "what would happen if I try to pass a char instead of an int as reference in a method?" it was just an example about some thing that could come to your mind. Of course, there will not be any problem, but I feel useful "to play" with all these things. For example, let's say that we have 2 overloaded methods receiving a char and an int as arguments. Now you assign to a char a number value and try to call the overloaded method. These are for me the kind of things that people should try when coding.
Jose Lara wrote:Thanks for the cows! I don't know for what is that, but it looks nice to have already some animals in my virtual ranch haha