Purchase Solution

Java examples of method overloading and equality checking

Not what you're looking for?

Ask Custom Question

Please see the attachment.

Purchase this Solution

Solution Summary

This solution discusses two Java concepts. First, it explains the concept of comparing two different reference objects. Second, it describes the process of method overloading.

Solution Preview

1. There are numerous ways to test for equality. == works fine for
primitive types, but not for objects such as strings, etc. Why is
this so? Discuss why == doesn't work when utilizing Strings but
does for integers and doubles.

All object variables are actually "object references". That is, the
variable is not really the object but instead is a reference to the
object. It is possible to have two different variables that refer to
the same object. The == operator performs a "reference equals"
operation. If two different object variables are compared with ==
the result ...

Purchase this Solution


Free BrainMass Quizzes
C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.