Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Explain please  RSS feed

 
RAM KUMAR M.
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
program:

class A
{
public static void main(String args[])
{
boolean a=false;
boolean b=false;
boolean c=false;
boolean d=true;
System.out.println(a&=b);
System.out.println(" ");
System.out.println(c=c||d);
}
}


output is

false true


I didn't understand this program
any body explain
pls..
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[CODE]
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!