Comment on Tutorial - Increment and Decrement Operator By aathishankaran



Comment Added by : prajjawal

Comment Added at : 2013-02-27 12:36:58

Comment on Tutorial : Increment and Decrement Operator By aathishankaran
class Evaluate
{
public static void main(String args[])

{
int y=6;
try
{
int x=++y+2y;
System.out.println("The value is:"+x);
}
catch(Exception e)
{
System.out.println("Error:"+e);
}
}
}
i need to know how this is incorrect......


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. I am using RMS but in my case i have to show 10 re
View Tutorial          By: Hemant at 2012-08-14 05:46:40

2. About the javax.comm.* error, you need to include
View Tutorial          By: Nicolas Tourne at 2011-12-18 15:11:05

3. I used a txt file and stored it under my drawable
View Tutorial          By: Sara at 2014-09-18 16:33:30

4. @Prab, no its 7 since it starts the counting at 0
View Tutorial          By: Shadowfaux at 2009-11-21 15:22:49

5. Really just brilliant...thanks
View Tutorial          By: Ash Singh at 2011-02-21 04:47:20

6. Thanks a lot...I've been trying to fix my apache f
View Tutorial          By: Lázaro at 2010-01-20 03:32:07

7. Protip: you could add some inline assembly with th
View Tutorial          By: Robin Degen at 2011-08-16 23:47:04

8. CTRL+C then CTRL+V :P
Complete Reference ;)

View Tutorial          By: Rahul A at 2012-03-21 14:12:56

9. great example for beginners. Thank you
View Tutorial          By: kumar at 2011-11-24 08:15:14

10. simple and clear , thanks a lot!
View Tutorial          By: Steiner at 2012-01-29 19:44:57