Promotion
CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Group
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
CodeGym
/
Java Blog
/
Keywords in Java
Keywords in Java
66 members
Leaderboard
Popular
New
Old
Aditi Nawghare
Keywords in Java
20 July 2018 15:00
Fixed values in Java: final, constants, and immutable
Hi! You're already familiar with the word "modifier". At a minimum, you've encountered access modifiers (public, private) and the static modifier. Today we'll discuss a special modifier called final. You could say the final modifier "cements" parts of our program where constant, unambiguous, unchanging behaviors ...
Artem Divertitto
Keywords in Java
28 July 2022 12:01
Access Modifiers in Java
Hi! In today's lesson, we'll get acquainted with the concept of access modifiers and consider examples of how to work with them. Of course, saying 'get acquainted' isn't quite right: you are already familiar with most of them from previous lessons. Just in case, let's refresh our memory of the most important...
Oleksandr Miadelets
Keywords in Java
8 January 2020 8:02
Let's Talk About Final Keyword In Java
Java has this keyword — final. It can be applied to classes, methods, variables (including method parameters). For a class, the final keyword means that the class cannot have subclasses, i.e. inheritance is forbidden... This is useful when creating immutable (unchangeable) objects. For example...
Jesse Haniel
Keywords in Java
15 August 2022 9:23
Java this keyword
On CodeGym, students are introduced to the this keyword literally from the first lessons. Over time, its meaning becomes clear. But looking back, many people probably admit to themselves that for a long time they couldn't understand the Zen of this keyword. This article will pull back the curtain covering the secrets...
Pavlo Plynko
Keywords in Java
27 June 2019 8:58
10 things you need to know about the static modifier in Java
In Java, the static modifier means something is directly related to a class: if a field is static, then it belongs to the class; if a method is static, then it belongs to the class. As a result, you can use the class's name to call a static method or reference a static field...
Volodymyr Portianko
Keywords in Java
3 November 2021 15:11
Break and Continue Statement in Java
Break statement in Java is majorly used in the following two cases. 1. Break quits the loop and jumps out of it (both for and while). 2. Break statement exits a case in the switch statement...
Aditi Nawghare
Keywords in Java
14 February 2023 16:37
Static Variables in Java
Static variables or class variables are shared among all instances of a class and can be accessed and modified without creating an instance of the class. Let’s take a deep dive to understand the uses and implementation of static variables in Java...
Aditi Nawghare
Keywords in Java
12 May 2023 17:47
Java protected keyword
In Java, access modifiers control the visibility of classes, methods, and variables. "Protected" is one of these modifiers that restricts the accessibility of a class member...
Jesse Haniel
Keywords in Java
20 November 2020 8:35
Java return Keyword
As we know, the Java language is an object-oriented programming language. In other words, the fundamental concept, i.e. the foundation of the foundation, is that everything is an object. Objects are described using classes. Classes, in turn, define state and behavior. For example, a bank account...
Please enable JavaScript to continue using this application.