Abstract
In the previous chapter, you learned about classes, methods, and interfaces. In this chapter, we explore various aspects of a class and its members (variables and methods). You will learn how to organize your classes into an application. You will also learn what can happen to variables when you pass them as arguments in a method call. Another important issue covered in this chapter is from where in the application you can access a class or its members. This depends upon the access modifiers assigned to a class or its members. Modifiers modify (further specify) the behavior of a class or its members, and you can specify them when you write the code. Finally, you’ll learn how memory management is performed in Java. You instantiate a class into an object, and the object occupies some memory. You can free the memory from the object when you no longer need it, which is called garbage collection in Java.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Paul Sanghera, Ph.D.
About this chapter
Cite this chapter
(2006). Java Language Fundamentals. In: SCJP Exam for J2SE 5. Apress. https://doi.org/10.1007/978-1-4302-0173-1_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0173-1_4
Publisher Name: Apress
Print ISBN: 978-1-59059-697-5
Online ISBN: 978-1-4302-0173-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)