We have so far presented the basic primitive types (say, boolean, int and long, float and double) of Java and explained how to build homogeneous arrays of these primitive types. Objects are useful for two main reasons:
-
(1) Objects allow one to encapsulate and structure a set of data,
-
(2) Objects provide a set of functions called methods acting on the encapsulated data.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2009 Springer-Verlag London
About this chapter
Cite this chapter
Nielsen, F. (2009). Objects and Strings. In: A Concise and Practical Introduction to Programming Algorithms in Java. Undergraduate Topics in Computer Science. Springer, London. https://doi.org/10.1007/978-1-84882-339-6_5
Download citation
DOI: https://doi.org/10.1007/978-1-84882-339-6_5
Published:
Publisher Name: Springer, London
Print ISBN: 978-1-84882-338-9
Online ISBN: 978-1-84882-339-6
eBook Packages: Computer ScienceComputer Science (R0)