2.7 of 5 9 reviews New York, NY

FJA-US Java Developer Interview Question

I interviewed in Denver, CO and was asked:
"overriding vs. overloading, Interface vs. Abstract, .equals() vs. ==, static vs. final"
Add Tags [?]
Answer Flag Question

Part of a Java Developer Interview Review - one of 4 FJA-US Interview Reviews

Answers & Comments

of 0
Overriding - two methods with the same name, but different input parameters
Overloading - child class has same signature (method name and parameters) as parent class; the parent method's functionality is overridden by the child method's.

Abstract methods do not have implementation, and should be implemented in child classes. All classes that implement an interface MUST override each method in the interface.

== compares references in memory (only use with simple structures like ints), .equals compares the values contained in the objects (use with Strings).

The static keyword is used to define constants, or methods that use no instance variables.
Final variables cannot change, final classes cannot be extended, and final methods cannot be overridden. Static methods are also final, but static variables can be changed; however, There Can Be Only One of a static variable throughout all instances of a class.
- Interview Candidate on Jan 13, 2011 Flag Response

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at FJA-US interview questions and advice. All interview reviews posted anonymously by FJA-US employees and interview candidates.