File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes operators Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "operators" Watch "operators" New topic


ajit a

Joined: Apr 17, 2002
Posts: 7
hi all ..
how to resolve questions like
int a = 6; b = 7,c;
c = a++ + ++b;
thx in advance
... @jit
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Just evaluate the operands from left to right, like this:

You can do a search in this forum and find lots of examples like this.

SCJP Tipline, etc.
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
ajit a:
Welcome to JavaRanch. Please change your name to comply with the naming policy to which you agreed when you registered here..

For your publicly displayed name,
use a first name, a space, and a last name.

You can change your name here:

You can also find the naming policy here:
Thank You!

SCJP 1.4
I agree. Here's the link:
subject: operators
It's not a secret anymore!