CodeGym /Courses /Java Multithreading /Practice with operator precedence

Practice with operator precedence

Java Multithreading
Level 1 , Lesson 2
Available

"Hi, Amigo! Bilaabo found tasks for you:"

24
Task
Java Multithreading, level 1, lesson 2
Locked
Determine the network address
1) The IP address and subnet mask are given. You need to calculate the network address: implement the getNetAddress method. Use the bitwise AND operator. Example: IP address: 11000000 10101000 00000001 00000010 (192.168.1.2) Subnet mask: 11111111 11111111 11111110 00000000 (255.255.254.0)
12
Task
Java Multithreading, level 1, lesson 2
Locked
Compare modifiers
Implement the logic of the isModifierSet method, which checks whether the passed allModifiers argument has a specific modifier set (specificModifier). P.S. Before implementing the task, take a look at the Modifier class and the implementation of isPublic, isStatic, and so on.
12
Task
Java Multithreading, level 1, lesson 2
Locked
Everything ingenious is simple!
Simplify. Don't rename variables. Don't leave comments.
Comments (12)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Evgeniia Shabaeva Level 41, Budapest, Hungary
27 November 2024
I'm not quite getting how these tasks are introducing us to multithreading, but they provide kind of gymnastics for the brain. Let's see what's ahead!
Untitled by Anon Level 49, Germany
29 May 2023
For the last task: just experiment with setting some values as false and some values as true and you should see a pattern.
yassin elsaman Level 50, cairo, Egypt Expert
11 January 2023
in first task (the hard one) why we need to add 256 ??
Niko Level 41, Wuhan, China
27 March 2022
第一题:byte转化为int时会被认为是负数,而负数会以补码的形式被储存。补码转换为源码,可做int的加减法:补码和源码相加为0或256。
Melody Ye Level 29, France, France
3 June 2023
谢谢大佬
Agent Smith Level 38
23 September 2020
Despite being easy, one can learn a lot from these nice little tasks. 🙃
Lawson Level 29, Lagos, Nigeria
8 September 2020
Didnt even understood the last task
Ahmad Level 23, Riyadh, Saudi Arabia
5 June 2020
miss easy tasks
MaGaby2280 Level 41, Guatemala City, Guatemala
2 June 2020
These tasks made no sense to me... glad to move on!
14 May 2020
For the last one having a google of Karnaugh maps :D
Sanjay Chauhan Level 28, Delhi, India
29 March 2020
Last task was interesting!!