CodeGym /Java Course /Java Syntax /Useful links from the Professor – 4

Useful links from the Professor – 4

Java Syntax
Level 4 , Lesson 14
Available

"Hi, Amigo. How's it going?"

"Very good, Professor Noodles. I've already learned about the for and while loops. Now I can go wild without repeating myself."

"That's great. I knew I was the best teacher in the world!"

"You shouldn't listen to all these people who say that only practice matters! Theory underpins everything! What's that you're mumbling? That tasks are more important? Whatever, doesn't matter. I offer you three wonderful articles to help you digest the material even better."

Equals and string comparisons

"Comparing objects is different from comparing primitive data types. You've probably already guessed why. With objects, we're passing a reference. But with primitives, we're passing the value. You'll learn the rest from this fascinating article: "Comparing objects". It also has good examples."

Numeric operators in Java

"Here we come to a very important topic: how to operate on numbers in Java. You can do this in different ways. There are the usual arithmetic operations, and the slightly less familiar logical operations. And there are also bitwise operations, which are quite exotic if you're not a nerd. It's time to explore all this, as well as operator precedence in our favorite language. Start reading!"

Bitwise operators

"The previous article told you about different numeric operators in Java, and this article will teach you more about bitwise operators. Don't be too lazy to read and learn this stuff. It's extremely useful for any robot. Bitwise operations lie at the heart of how a computer works."

"And one more thing: if you haven't already started, then start reading the book Head First Java right away. It is simple and understandable—even for a novice programmer like you."

Comments (11)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Harsh Dushyant singh Level 8, Milky-Way
23 October 2021
Noodles Rocks
Dev Level 5, Abuja, Nigeria
12 August 2021
Quite interesting and enlightening!
irades Level 8, Moscow, Russia
29 July 2020
Thanks Professor!
Maryem Vickers Level 7, HT..., United Kingdom
10 August 2020
MhMm!
Renat Mukhametshin Level 16, Pervouralsk, Russain Federation
28 March 2019
very interesting and useful!
Love Patel Level 5, San Leandro, United States
25 February 2019
The bitwise operators are super confusing! Like what do we even need them for? whats their purpose and how do they help? Also I asked a friend who works as a software engineer in silicone valley and he hasn't ever used bitwise operators so far in his coding. He did say to learn them coz some company may ask about it in interview but he said he hasn't needed to use them in real work yet.
Goff Level 8, Berlin, Germany
7 October 2019
Just one example. For you a number is even if you can divide it by 2 and reminder equals 0. For a machine any number is binary. And binary number is even if it's last bit equals 0. There is no need to divide! number&1==0 for evens and ==1 for odds. This check is much better than number%2==0
bob Level 8, Milan, Italy
22 May 2020
hi. good example. why is (number & 1 == 0) better than (number % 2 == 0)?
Maryem Vickers Level 7, HT..., United Kingdom
10 August 2020
The one that attracted me most XD
Kaushal Level 5, Guwahati, India
20 February 2019
"Exotic" operators XD
Maryem Vickers Level 7, HT..., United Kingdom
10 August 2020
XD LOL XD