Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!

Nathan Milota

Ranch Hand
+ Follow
since May 01, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
6
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nathan Milota

I mean, I have been reading the book.  I guess I'm just not comprehending the questions enough.  There are five more mock exams left, so I can hold off on taking the rest.
I took another practice test after doing readings and practice exercises and got only 49%.  I'm not sure why.  I guess I'm just not getting it.  Is it possible that some people just cannot pass the test no matter how hard they study for it?

Junilu Lacar wrote:

Nathan Milota wrote:It is indented and still works just fine.


Java doesn't care about indentation. It's for people who have to read the code that proper indentation and formatting makes a difference. It's just common courtesy to present code that's easy to read if you're asking people to look at it and help you with your programming  problems. Is this really such a difficult concept to understand?




Well, I mean, I could understand a bit more if it was a long class full of code.   It was about 5-10 lines work that takes less than a minute to read, so I was just throwing it together for a quick question, and didn't even use an IDE.   I thought people would kind of get the jist of it.
1 week ago
I cleaned up the code as much as I can.  It is indented and still works just fine.
1 week ago

Junilu Lacar wrote:

Nathan Milota wrote:It was initialized after it was created, so I was just wondering why it wouldn't work.


When you call print() on line 3, it does execute the statement on line 23. However, the instantiation process for B hasn't completed at that point and the value of the instance variable B.number is still 0. It will only be initialized after the superclass A constructor has completed.  Again, you should never call a method from a constructor if that can be overridden by a subclass. The only type of methods that are safe to call from a constructor are private methods and final methods.



It resembled an exam question, which did it in that order and asked what the value of the variable would be on the line the object is created, which was 0.  I was just wondering why it was able to see the variable existed, and use it in a method, but yet not initialize it since it was a class variable.   By the time you call the method in the class, it is correct, but I was wondering at which point it became initialized since it isn't once the class is executed.
1 week ago

Junilu Lacar wrote:

Nathan Milota wrote:The code syntax is just fine here.  



Actually, it's not. What you posted doesn't compile.

Java is case-sensitive. The instructor in my first programming class was very strict on proper formatting and indentation, probably because he had industry experience and knew the importance of readable code. Either standards have fallen drastically or well, I'll just leave it at that...



I fixed that part.  The rest of it is fine.
1 week ago

Junilu Lacar wrote:Never call a method that can be overridden from a constructor. You'll run into that kind variable initialization problem quickly.

See what happens if you put this statement on line 18:



It was more for conceptual and exam purposes.  It calls it correctly when doing the method, but when creating the constructor, it recognizes that the variable exists, but makes it 0.  It was initialized after it was created, so I was just wondering why it wouldn't work.
1 week ago
The code syntax is just fine here.  
1 week ago
If I have a class and a subclass which have the same method, and an object is created based with the reference type being the superclass, which has a constructor which executes the method, it doesn't initialize the variable in the execution of that method, but if I make the object and reference type equal, it does.  

So, at what point is it initialized?  

Here is an example.  

1 week ago
After reading a few chapters in one of the suggested books and going over my first test while taking notes, I took the Test 2 and got a 63%, so much higher than 40%.  So, maybe I'm getting the hang of it a little bit.

The performance report still doesn't give much of an indicator of what topics I need to study the most, as they are scattered and I got some questions right in every category, but no category very strong.  

What was awkward though is that the distribution of the questions by topic, as it wasn't the same as in the first test, as there were almost twice the questions on inheritance on test one than test two.  Is this how the real exam works?   I thought the number of questions per topic would be exactly the same, and on test 2, there weren't any questions on lambdas.  
Six weeks is probably too soon, but it's not as if I'm starting now and shooting six weeks from now, I have been studying for awhile, and studied a bit before I took the test the first time, enough to get almost half the questions right, so I already have a foundation.  However, given my limited resources and the test is not cheap, I'm going to see where I am in a couple weeks from now and if I'm getting better scores on the mock exams.  I have a lot of recap notes from my first practice Enthuware test that I think will help the next attempt.  

I was using a program from Kaplan the first time, that helped me get some of the questions on the exam right, and others that I got right were from guessing or from my knowledge of how java works in the programs I've created so far.   I think the problem though was that I was mostly memorizing the answers to the same questions, and some of the material is not actually covered on the current exam.  
2 weeks ago
47% is 33 questions correct and 46 are needed, so assuming that most of my correct answers were ones that I knew and a few of them were lucky guesses, that's still quite a bit that I need to learn with knowing some of the foundations, which makes since since I get questions right in probably every category, just not the more difficult ones.

I will try reading that book again.  I was hoping to have this test retaken and passed before mid-November, but given that is less than six weeks away from now, reading another book cover to cover, practice coding, and then more mock exams in that window seems unlikely, unless others have been able to do it before.  However, cutting corners is what caused me to fail in the first attempt, so I'm going to try doing what I can, but just don't want what I'm doing to be counter-productive.  
2 weeks ago
So, I find nearly every question where it asks for a result has those options as answer choices.  

However, the problem is that it is hard to detect, because some things I've never heard of or read about are valid syntax and others end up not being when I wasn't sure.

I was wondering if anyone used some kind of check-list when studying that they practiced with to by process of elimination look for anything that throws an Exception at runtime or fails compilation.  Such as, maybe they first check to see if there are any illegal conversions, casting errors, method declarations....

What to look for up and down the list to eliminate that as a possible answer.
The problem is, there really isn't any one topic I miss almost every question on that is more than a couple questions, such as lambdas which make up 2 of the 70 questions, so I can't really pinpoint any specific problem area.  
2 weeks ago
I took the test back in May, and I'm still studying to retake it.  I wasn't able to study most of the summer because of an outing I was on though.

What I found was that the program I was using to study from didn't remotely resemble the actual exam questions, to which I found later many of the concepts on that program no longer apply to the exam.  

The way I'm studying now is that I read the entire Oracle exam guide that is available on amazon, and I'm using Enthuware to practice.  

I scored a little over 50% on the foundations test, and I got 40% on test one.  I think that about matches my knowledge on the last exam since most people score more on the actual exam than the practice exams, but I'm still very confused on a lot of it, and it doesn't look like problems that would ever happen in the real world.  

My plan as of now is to prepare to take it again in the next couple months, and if I fail, I'll try one more time by reviewing the most missed types of questions, but if I fail it a 3rd time, then I'm going to de-rail and work towards another plan to build up my resume, as I cannot spend all my time trying to prepare for one test.
2 weeks ago