Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Paul Clapham
Sheriffs:
paul wheaton
Tim Cooke
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Piet Souris
Bartenders:
Mike London
Forum:
Programmer Certification (OCPJP)
What's wrong with this
Chandrakanth
Ranch Hand
Posts: 60
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
boolean b1 = false;
boolean b2=false;
boolean result1 = (b2!=b1=!b2); ///this exp is giving compiler error
System.out.println(result1);
Vishwas Hegde
Ranch Hand
Posts: 212
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
(b2!=b1=!b2);
Look at this carefully.... you'll get the answer.
Regards
Vishwas
SCJP1.4
SCJA
Vasile V. Alaiba
Greenhorn
Posts: 4
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can not have an expression as the left hand of an assignment.
Your education begins where what is called your education is over.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Explain me this Programm
conditional operator precedence
Operators/Assignment
Wrappers question
JQPlus Trial Version - Quest. #33
More...