Skip to main content

Getting Your Feet Wet

  • Chapter
  • First Online:
  • 2917 Accesses

Abstract

This is the last introductory chapter in the book. After this one, we get to the serious business. The previous chapter left you with a complete development environment configured for writing Java code. It is time to make use of it. The following topics are covered in this chapter:

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    Since this book covers Java notions up to Java 11, you can install JDK 11 and work with it, if it has been released by the time you get this book. While writing the book, I installed a new JDK as soon as it was available, but tried to keep the version 10 as a constant version throughout the book, as to avoid confusion.

  2. 2.

    Also called code assistance

  3. 3.

    Oracle JShell user guide: https://docs.oracle.com/javase/9/jshell/toc.htm

  4. 4.

    If you are worried that you will forget the keywords and meaning for modules, print the cheat sheet at http://files.zeroturnaround.com/pdf/RebelLabs-Java-9-modules-cheat-sheet.pdf and keep it handy.

  5. 5.

    The chapter03.iml is an IntelliJ IDEA project file.

  6. 6.

    When JARs are hosted on a repository, such as The Maven Public Repository, they are also called artifacts.

  7. 7.

    I am deliberately avoiding the term module for now to avoid confusion between project modules and Java modules.

  8. 8.

    The most popular are logging libraries like Log4J. ( https://logging.apache.org/log4j/2.x/ ) and Logback ( https://logback.qos.ch/ )

  9. 9.

    A great article about The Jar Hell in case you want to know more, but you might want to read it later, after you have written a little code of your own. See https://tech-read.com/2009/01/13/what-is-jar-hell/

  10. 10.

    I will not mention nested classes right now, as they are not really crucial for understanding this section. But in the downloadable Appendix, there is a small section about nested and local classes that you might find useful.

  11. 11.

    I know it seems confusing that there are two names referring to the lack of access modifiers, but as you might read other books or blog posts that refer to this situation, it is better to have all the possibilities listed here.

  12. 12.

    Aside from that, we can also define other Java object types, which are referred to as nested, but we’ll cross that bridge when we come to it.

  13. 13.

    Creating a subclass is covered in Chapter 5.

  14. 14.

    I depicted the table to avoid the hassle of navigating to this URL: https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html

  15. 15.

    The full history of the Jigsaw project can be found at http://openjdk.java.net/projects/jigsaw/

  16. 16.

    Unless you rename directories containing sources for a module to the module name. Having actual directories for modules is unavoidable when the sources in the root directory of a project must be split into different modules.

  17. 17.

    How to use jlink is not an object of this book. The focus of the book is learning the Java programming language; thus, the technical details of the Java platform will be kept to a minimum, just enough to start writing and executing code confidently.

  18. 18.

    Because IntelliJ IDEA is an awesome editor, you can generate the main method, by typing psvm and pressing the Tab key.

  19. 19.

    Next to the Run menu item, a combination of keys is depicted that can be used to run the class.

  20. 20.

    Oracle Magazine from September 2017 can be accessed at http://www.javamagazine.mozaicreader.com/SeptOct2017#&pageSet=29&page=0

  21. 21.

    Creating lists this way was introduced in Java 9

  22. 22.

    Specifying what type of elements are in a list by using <> was introduced in Java 5 and it’s called generics

  23. 23.

    The whole expression used to do this is called a lambda expression. This type of syntax was introduced in Java 8, together with the forEach method.

  24. 24.

    Currently, only the JDK 10 is available at https://docs.oracle.com/javase/10/

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Iuliana Cosmina

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Cosmina, I. (2018). Getting Your Feet Wet. In: Java for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3778-6_3

Download citation

Publish with us

Policies and ethics