Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 531635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:19:17+00:00 2026-05-13T09:19:17+00:00

Which of the following give back 63 as long (in Java) and how? 0x0

  • 0

Which of the following give back 63 as long (in Java) and how?

0x0
0x1
0x2
0x4
0x8
0x10
0x20

I’m working with NetworkManager API flags if that helps. I’m getting 63 from one of the operations but don’t know how should I match the return value to the description.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:19:17+00:00Added an answer on May 13, 2026 at 9:19 am

    63 is 32 | 16 | 8 | 4 | 2 | 1, where | is the binary or operator.

    Or in other words (in hex): 63 (which is 0x3F) is 0x20 | 0x10 | 0x8 | 0x4 | 0x2 | 0x1. If you look at them all in binary, it is obvious:

    0x20 : 00100000
    0x10 : 00010000
    0x08 : 00001000
    0x04 : 00000100
    0x02 : 00000010
    0x01 : 00000001
    

    And 63 is:

    0x3F : 00111111
    

    If you’re getting some return status and want to know what it means, you’ll have to use binary and. For example:

    if (status & 0x02) 
    {
    }
    

    Will execute if the flag 0x02 (that is, the 2nd bit from the right) is turned on in the returned status. Most often, these flags have names (descriptions), so the code above will read something like:

    if (status & CONNECT_ERROR_FLAG)
    {
    }
    

    Again, the status can be a combination of stuff:

    // Check if both flags are set in the status
    if (status & (CONNECT_ERROR_FLAG | WRONG_IP_FLAG))
    {
    }
    

    P.S.: To learn why this works, this is a nice article about binary flags and their combinations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following regular expression which is used to give me the tags
I have the following javascript code in place which is used to give hover
I tried the following, all of which fail on function ScrollIntoView and give a
I'm using the following which is working: <?php if ( is_singular() ) {} else
I have the following which works fine: $(document).ready(function() { get_data_for_chart(); function get_data_for_chart() { $.ajax({
I have the following which executes perfectly but NOT in the background as it
I have the following which works in SQL Query Analyzer . select oh.* from
I've one interface which has following method signatures: public interface ITag { int M_Id
I am using the following which works great. I am just wondering if it
I Have a object which the following field : boost::unordered_map<std::string, std::shared_ptr<Foo> > m_liste_; I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.