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
/
Java Classes
Java Classes
549 members
Leaderboard
Popular
New
Old
Jesse Haniel
Java Classes
5 January 2025 11:15
Java Constructors
Hi! Today we'll consider a very important topic that concerns our objects. Without exaggeration, we can say you'll use this topic in real life every day! We're talk about constructors. This may be the first time you're hearing this term, but you've actually already used constructors. You just didn't realize it ...
Aditi Nawghare
Java Classes
9 January 2023 11:44
Java Classes and Objects
Hi! Today we will talk about classes in Java. You could say that classes form the cornerstone of Java programming. When you become a programmer, nearly your entire job will be writing your own classes that have various functions. Let's ...
Milan Vucic
Java Classes
26 July 2022 11:50
Java Scanner Class
Hi! Our lesson today will be special! Previously, the process of completing tasks and writing programs was simple: we write some code, run the main() method, the program does what is required, and we're done. But now everything will change! Today we'll learn how to really interact with the program...
Milan Vucic
Java Classes
15 July 2022 8:22
Enum class in Java
Hi! Imagine that you've been given the following task: create a class that implements the days of the week. At first glance, this seems rather straightforward. Everything seems to be fine, but there is one problem: you can pass any text to the constructor of the DayOfWeek class...
Vasyl Malik
Java Classes
17 March 2019 8:29
Specific examples of abstract classes in Java
Hi! In past lessons, we met interfaces and figured out what they're for. Today's topic will echo the previous one. Let's talk about abstract classes in Java. You probably remember what 'abstraction' is — we've already gone over it. :) If you forgot, fear not. Remember: it's a principle of OOP...
John Selawsky
Java Classes
26 March 2020 6:55
Anonymous classes
Hi! In today's lesson, we'll continue to examine the topic of nested classes. Now it's time for the last group: anonymous inner classes. Like the local classes that we talked about in the last lesson, anonymous classes are a kind of inner class... They also have several similarities and differences...
Alex Vypirailenko
Java Classes
24 March 2020 16:45
Enum. Practical examples. Adding constructors and methods
Hi! Today we'll talk about one of Java's special data types: Enum (short for "enumeration"). What makes it special? Let's imagine what we need to implement "months" in a program. Doesn't seem problematic, right? We just need to determine what properties that any month has. Perhaps we first need...
John Selawsky
Java Classes
26 March 2020 7:43
Nested inner classes
Hi! Today we'll take up an important topic: how nested classes work in Java. These internal classes are called nested. They are divided into 2 types: Non-static nested classes (these are also called inner classes), Static nested classes. In turn, inner classes have two distinct subcategories...
John Selawsky
Java Classes
16 January 2020 9:41
Static nested classes
Hi! We continue to explore the topic of nested classes in Java. In the last exercise, we spoke about non-static nested classes, which are also known as inner classes. Today we move on to another group of classes. We'll consider static nested classes. How are they different from other classes?
Artem Divertitto
Java Classes
8 January 2025 16:19
Java Comparator and Comparable
Hi! Today we're going to talk about comparing objects. Hmm... But haven't we already talked this topic more than once? :/ We know how the == operator works, as well as the equals() and hashCode() methods. Comparison is a little different. Previously, we most likely meant "checking objects for equality"...
Oleksandr Miadelets
Java Classes
26 March 2020 9:28
Inner classes in a local method
Hi! Let's talk about another kind of nested classes. I'm talking about local classes (method-local inner classes). Before diving in, we must first remember their place in the structure of nested classes. From our diagram, we can see that local classes are a subspecies of inner classes...
Jesse Haniel
Java Classes
25 August 2022 11:15
Dynamic Proxies in Java
Hi! Today we will consider a rather important and interesting topic: the creation of dynamic proxy classes in Java. It's not very simple, so we'll try to figure it out using examples :) So, the most important question: what are dynamic proxies and what are they for?
Show more
1
2
Please enable JavaScript to continue using this application.