Surveys & Quizzes
Start learning now
All Articles List
18 July 2018 10:14
Numeric operators in Java
Hi! Today we'll consider a very important topic, namely, numeric operators in Java. In programming, numbers are everywhere. If you dig deep and remember high school, you may recall that a computer represents all information in a numerical format: combinations of zeros and ones, also known as binary code ...
4 August 2022 7:18
Java Bitwise operators
You're probably familiar with the word "bit". If not, let's recall what it means :) A bit is the smallest unit of information in a computer. Its name comes from binary digit. A bit can be expressed by one of two numbers: 1 or 0. There is a special binary number system based on ones and zeros ...
11 November 2022 14:11
Widening and Narrowing of primitive types
Hi! As you have progressed through CodeGym, you've encountered primitive types many times. Here is a short list of what we know about them: they are not objects and represent a value stored in memory, there are several kinds, each type has its own range of values ...
21 January 2020 8:25
BigDecimal in Java
Hi! In today's lesson, we'll talk about large numbers. No, I mean REALLY BIG. We have previously repeatedly encountered the table of value ranges for primitive data types. It looks like this...
10 January 2023 10:00
Autoboxing and Unboxing in Java
In Java, a feature of primitives and their wrappers is autoboxing/unboxing. Let's dig into this concept. As we've already learned, Java is an object-oriented language. That means that all programs written in Java are made of objects.
7 March 2022 12:34
Java floor() method
A floor function which is also known as the greatest integer function in maths takes a real number “x” as an input. It returns the greatest integer that is less than or equal to input number x. It is normally denoted as floor(x) or ⌊x⌋. It is used...
9 February 2022 14:46
Integer.MAX_VALUE in Java with Examples
What is Integer.MAX_VALUE in Java? The Integer.MAX_VALUE in Java is a constant that represents the maximum positive integer value...
30 March 2022 10:08
How to convert String to int in Java
In this article we are going to discuss converting String to int (primitive type) and Object type (wrapper) Integer. There are many ways to do it in Java.
29 June 2022 13:43
Java Float Keyword
At some point in the development of computing technology, it became clear that central processing units needed hardware devices to process floating point numbers. Today, all computer architectures can work effectively with such numbers. Of course, in programming languages, you also cannot do...
23 September 2022 7:22
Java Convert Binary to Decimal
Numbers that have only 2 digits, 0 and 1, are called binary numbers. They are expressed only in the base 2 number system. We know that the binary system is the native digital language of modern computers. But we are more accustomed to decimal numbers...
29 March 2022 7:35
How to Convert long to int in Java
In this article we are going to explain how to convert long to int in Java and write some code examples. Since long is a larger data type than int, here we should use type casting for such conversion...
9 May 2022 9:05
Increment and Decrement Unary Operators in Java
Unary operators are those operators in Java that only need a single operand to perform any function. They work on the same principal as unary operations in mathematics...
Terms and Policy
Accept and close