System.out.println(""+++k)
i have give statement should i print with the help of System.out.println()int k=1;System.out.println("Hello"+++k);
Java scans the input file for tokens from left to right, so something like a+++k is interpreted as (a++)+k. In your case the post-increment operator ++ cannot be applied to a string value, so you get a compiler error. If what you meant was a+(++k) you should write that.