Yik Siew Ngan

Greenhorn
+ Follow
since Oct 19, 2021
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yik Siew Ngan

Is NaN related subject covered in OCA.? I did a related search and it seems to be an OCP subject?  Came across this kind of question in Whizlabs.



If the answer is no,then Whizlabs is really frustrating.

Why is literal with operand being auto cast , despite the rules that state any operand will cause the conversion to int first?  The following example is trying to do an assignment to a byte variable.

1 year ago
Hi Folks, I was wondering in what context this question is referring to when come to the java command.  Is it the typical execution on the .class file?  IBoth '/' or '.' works for me

Answer: C

Which statements about calling the compilation command javac and the execution command java are true?

I. java may use a period . to separate packages.
II. javac takes a .java file and returns a .class file.
III. java may use a slash (/) to separate packages.
A. I only
B. II only
C. I and II
D. I, II, and III

Jeanne Boyarsky wrote:Page 62 covers this. There's an example of adding long and int using a compound assignment.



Thanks Jeanne. I've missed this
Hi,I am currently trying out practice questions to prepare for IZ0-808.  Did the Sybex book by Jean and Scott covered about this?  Because I've only found out the fact that implicit casting happened in this case while answering questions.  Or maybe is covered in chapter 5 later  (or I've overlooked) as I am still in chapter 4.

Hi Folks,
   I really appreciate some help on this study guide review question.

What is the output of the following code snippet?



      I could't quite the idea on how Java evaluate the statement on line 5.  How can (z=false) resulted a boolean to be used in the expression?
Thank you for your answer.  I really appreciate it.
I am trying to figure out the answer. Really appreciate if someone can help.  The question is "How many objects are eligible for garbage collection once //do stuff is reached ?"  The answer is one and it kept me ponder which one is that.