Promotion
CodeGym University
Learning
Courses
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
120 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
15 January 2025 13: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
7 January 2025 8:02
Java Final Keyword
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
10 January 2025 10: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
2 April 2025 13:50
Break 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
16 February 2025 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
20 December 2024 18: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
9 April 2025 7: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...
Jesse Haniel
Keywords in Java
2 April 2025 14:22
Continue Statement in Java
The continue statement in Java is commonly used for the following cases. It skips the following statements and moves to the next iteration in the for loop. Continue in while loops hop the following statements and jump to the conditional statement.
Please enable JavaScript to continue using this application.