---
title: "Why will javac not accept x = x     y"  
description: "Why will javac not accept x = x     y"  
author: "Anonymous User"  
published: 2013-05-10  
updated: 2013-05-10  
canonical: https://www.mindstick.com/forum/858/why-will-javac-not-accept-x-x-y  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# Why will javac not accept x = x     y

Hi Mindstickians!\
From the [perspective](https://answers.mindstick.com/qa/48594/who-is-the-writer-of-the-jawaharlal-nehru-and-the-indian-polity-in-perspective) of [Compiler](https://www.mindstick.com/articles/27/just-in-time-compiler) Theory, why would the javac compiler not [accept](https://yourviews.mindstick.com/view/81278/we-have-to-accept-that-roger-federer-is-the-richest-one) a statement of the [form](https://www.mindstick.com/forum/6/multi-form-mfc-application) x = x+++++y but accept x = x+++ ++y ?\
Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!

## Replies

### Reply by AVADHESH PATEL

Hi Jeet!\
Java has the syntax x++ and ++y so the second one is interpreted as x++ + ++y so it is accepted. the first cannot be accepted using that rule.


---

Original Source: https://www.mindstick.com/forum/858/why-will-javac-not-accept-x-x-y

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
