πŸ€” No result found

πŸ‘‰ Don't loose hope, Try out below methods

Ask on Telegram
  • πŸ’‘ Search Tips
  • ➑️ Type question from start
  • ➑️ Use unique words from question
  • ❌ Don't search full question
Telegram Group πŸ”₯πŸ”₯πŸ”₯ Get answers in minutes
Questions answered : 48 /50
Guy
Guy
Guy
Guy
Guy
+ 4981 more
Verified Answer verified

What will be the output of the program
class Test
{
public static void main(String [] args)
{
Test p = new Test();
p.start();
}

void start()
{
boolean b1 = false;
boolean b2 = fix(b1);
System.out.println(b1 + " " + b2);
}

boolean fix(boolean b1)
{
b1 = true;
return b1;
}
}

πŸ—“ Aug 8, 2024

Answer is "false true"

Comments and Discussions

You don't need to login to post your comment

Comments:
30
Views:
60k
Likes:
120k
votes
Liam Smith 🌐 India
Hello are you the owner of this business?
I was just on your website and I have a question about your business.
Was this answer helpful?
votes
Jasper.ai Support Team 🌐 India
Jasper helps you scale your content creation. All you have to do is put in a bit of information on what you want to write about, and the AI will start creating Your original post.
Check It Out Here ---> jasperespcialoffer.com (You Will Get 10.000 free words if you try it now!)
Was this answer helpful?

Was your question answered?

Thanks for the feedback! βœ…

Want to get famous? πŸ“Έ

Answer question and get 🀩 high-lighted on our homepage.

Just Automated Logo

Β© 2017-2022 Foxoyoβ„’
All rights reserved.

Facebook Connect with us