This handbook explains in detail the features of the twenty-first version of the Java language. It guides the reader through all the intricacies of the language, from the absolute basics to advanced constructs. It covers all elements of the language, including those that are only included as a preview and will become a standard part only in a future version. At the same time, it shows how to activate and test these preview constructs.
The explanation is designed so that the book serves as both a textbook and a reference guide. It will therefore be useful for beginners and advanced programmers, who will find explanations for the causes of many problems they encounter daily, along with instructions on how to solve them. It also explains in detail topics that other textbooks omit due to lack of space, thus forcing programmers to sometimes proceed by trial and error.
The described constructs are demonstrated in the JShell environment, which allows for a simple and effective demonstration of the function of most of the topics explained without the unnecessary fluff required when using the classic approach. This allows everyone to easily try out the constructs and possibly experiment with them further, without having to write auxiliary code with test methods and control prints and perform separate compilation. This approach significantly facilitates the use of the handbook in basic programming courses.
Detailed explanation of the language's features from the very basics to advanced, not commonly discussed constructs
In addition to current constructs, it also explains those that are built-in only as a preview and will become standard only in a future version
Uses the built-in JShell REPL environment to demonstrate the explained constructs without unnecessary auxiliary code
Shows how to experiment effectively and get immediate answers using the JShell environment
Ideal as a textbook and a reference guide
Try our cookiesAlza.cz a. s., Company identification number 27082440, use cookies and other data to ensure the proper functioning of the website and, with your consent, also, among other things, to personalize advertising and the content of our websites. By clicking on the “I understand“ button, you agree to the use of cookies and the transfer of data regarding the behavior on the website for displaying targeted advertising on social networks and advertising networks on other websites.
We use 8 categories of cookies on our website:
Technical cookies
These are strictly necessary for the functioning of the website and the features you choose to use. Without them, our website would not work; you wouldn't be able to log in to your user account, for example.
Functionality cookies
These cookies allow us to remember your basic choices and improve the user experience. These include remembering your preferred language or allowing you to stay logged in permanently.
Social media cookies
These cookies allow us to easily link you to your social media profile and, for example, allow you to share products and services with your friends and family.
Content personalisation
These cookies allow us to show you content and ads according to the information we have about you to best meet your needs. This includes what content you have viewed, or on what device you are accessing our website.
Non-personalised advertising
These cookies allow us to show you general ads for products and services.
Personalised advertising
Thanks to these cookies, we and our partners can offer you relevant products and services based on your purchases, your shopping behaviour and your preferences.
Audience metrics
These cookies allow us to optimise our site for your convenience based on how you use it. The aim is to remember or anticipate your choices. This includes, for example, the use of features, their location, or the behaviour on the page.
By giving your consent to the processing of cookies, functionality and analytical cookies will be installed on the device you use to browse the website (click on the "I understand" button for both categories, or you can select only one of the categories by clicking on the "Settings" button). We always install technical cookies on your device, even without your explicit consent, because without them our website would simply not work.
You can revoke your consent to the processing of cookies. In connection with our company's cookie processing, you also have the following rights: the right to access cookies, delete, modify, supplement and correct them, restrict processing and the right to lodge a complaint with the Office for Personal Data Protection. Read more about your rights.