Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Check your spam folder if password reset mail not showing in inbox????

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

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have a permission to add a post.

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

Quearn

Quearn Logo Quearn Logo

Quearn Navigation

  • Home
  • Blog
  • Buy Points
  • Questions For You
  • Badges
  • Communities
  • Quearn Wallet
  • About Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Blog
  • Buy Points
  • Questions For You
  • Badges
  • Communities
  • Quearn Wallet
  • About Us
MCQ
  • 0
MCQExplainer
Asked: March 22, 20212021-03-22T16:07:13+05:30 2021-03-22T16:07:13+05:30In: Education

What will be the output of the following Java code?

  • 0
What will be the output of the following Java code?
java
  • 1 1 Answer
  • 121 Views
  • 0 Followers
  • 0
Answer

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. MCQ Explainer
      2021-03-22T16:07:26+05:30Added an answer on March 22, 2021 at 4:07 pm

      class booloperators { public static void main(String args[]) { boolean var1 = true; boolean var2 = false; System.out.println((var1 & var2)); } } a) 0 b) 1 c) true d) false View Answer Answer: d Explanation: boolean ‘&’ operator always returns true or false. var1 is defined true and var2 is dRead more

      1.     class booloperators {
      2.         public static void main(String args[])
      3.         {
      4.             boolean var1 = true;
      5. 	    boolean var2 = false;
      6. 	    System.out.println((var1 & var2));
      7.         }
      8.     }

      a) 0
      b) 1
      c) true
      d) false
      View Answer
      Answer: d
      Explanation: boolean ‘&’ operator always returns true or false. var1 is defined true and var2 is defined false hence their ‘&’ operator result is false.
      output: 

      $ javac booloperators.java
      $ java booloperators
      false
      See less
      • 0

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Ask A Question

    Explore

    • About Us
    • Badges
    • Blog
    • Cart
    • Checkout
    • Communities
    • Contact Us
    • DMCA
    • FAQ
    • Giveaway Contest
    • Home
    • My account
    • Privacy Policy
    • Quearn Earning Program
    • Quearn Wallet
    • Questions For You!
    • Refund and Return
    • Shop
    • Users
    • Wallet Checkout

    Footer




    Top Members

    Ayaan

    Ayaan

    • 225k Points
    VIP
    Rihaana

    Rihaana

    • 136k Points
    Perfectionist
    GyaniBaba

    GyaniBaba

    • 62k Points
    Professional
    Tahir

    Tahir

    • 49k Points
    Master
    Shreya

    Shreya

    • 48k Points
    Master

    Join Famous Groups

    • Quearn Official
      • Public group

      Quearn Official

    • General Knowledge
      • Public group

      General Knowledge

      • Public group

      Shreya’s World

    • Tvchannel
      • Private group

      Tvchannel



    Quearn

    About

    Quearn is a social questions & Answers Engine which will help you establish your community and connect with other people, Also you Can Earn Money.

    About Us

    • About Us
    • Contact Us
    • Privacy Policy
    • Refund and Return
    • FAQ
    • DMCA

    Follow




    © 2018-2022 Quearn. All Rights Reserved | Developed by ASHAS Industries Proudly 🇮🇳