Preparing for Your Java Interview: The Basics: Technical Questions and Answers (Your Technical Interview Book 4) by KT Lindemann

Preparing for Your Java Interview: The Basics: Technical Questions and Answers (Your Technical Interview Book 4) by KT Lindemann

Author:KT Lindemann [Lindemann, KT]
Language: eng
Format: azw3
Published: 2018-04-19T16:00:00+00:00


Question: What is the Map interface?

Answer:

A Map is a mapping of keys to values. Duplicate keys are disallowed.

The Map interface provides methods for adding, removing, and acting on items in a map:

put

get

Numbers

Question: Describe how numbers are handled in Java?

Answer:

Numbers in Java can either be primitive types or sublcasses of the abstract class Number.

Primitive types include: int, long, float, double

Classes include: Integer, Long, Float, Double

Question: Why might you use a Number instead of a primitive?



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.