Sun Certified Java Programmer 310-065-Lesson 10-Assignments-Part 3 (how we can sort out a list of overloaded methods to choose the correct one to call) | Java courses
In this video, We will see how we can sort out a list of overloaded methods to choose the correct one to call.
"
download the application please visit www.mrbool.com/player
Title: Sun
Certified
Java Programmer 310-065-Lesson 10-Assignments-Part
3 (how we can
sort out a list of overloaded methods to choose the correct
one to call)
Duration: 15 minutes
Summary: In this video, we are continuing our discussion on assignments. We
will see how we can sort out a list of overloaded methods to choose the correct
one to call. Then, we are going to look at few examples that encompass classes,
objects, references and garbage collection. We try to change references and
find out where the reference is pointing to know what the output will be. In
the last example, we will look at the consequences of using un-initialized
variables.
Methodology of the development of example: Good coding standard and simplified design to
prepare for the Java programmer certification exam CX-310-065.
Technology Used: Java - Core Concepts.
Keywords: Sun Certified Java Programmer, static, auto-boxing, Long, Integer,
object, array, garbage collection, initialization.
Add a comment!
[Fechar]
Este post é fechado - você precisa ter acesso ao post para incluir um comentário.
Matthew Casperson
1/17/2012 2:54am
Question 10 clarification
In the video the number of object being created in Question 10 seems to be explained as 5 because a Dozens[3] array, referenced by the variable "da", was created, and each object in that array creates its own array referenced by the variable "dz". This is not correct.
The code creates two new Dozens objects, which you can verify with the two "new Dozens()" statements. Each of these Dozens objects creates an int array referenced by the variable "dz", which is also an object. Finally, the "da" Dozens array is an object, which gives you a total of 5 objects created.
So we have 5 objects created: two Dozens objects each containing 1 int array (for a total of 2 int arrays), and one Dozens array.
Answer it
Mr.Bool Editor
1/25/2012 1:29pm
RE:
We are in contact with the author and he will soon answer.
Answer it
Ayad
1/25/2012 5:38pm
RE:
Thank you for the clarification, Matthew.
After all, we have 3 "new", and 2 of them with arrays, for a total of 5.
Answer it
Help us to improve! Give us your feedback: