The negation operator
A unary operator ('unary' means it has only one argument) that you might wish to use at some point is the negation operator. An example is as follows:
int a = 2;
int b = -a;
This has the effect of setting b to the value -2. The single argument for the negation operator appears to the right of the minus sign. We say that this is a prefix operator, which simply means that it appears before the value it takes as an argument.
The compiler is able to distinguish the subtraction operator from the negation operator by the number of arguments it has.
Java Assignment Help - Java Homework Help
Struggling with java programming language? Are you not finding solution for your The negation operator in Java homework and assignments? Live The negation operator in Java experts are working for students by solving their doubts & questions during their course studies and training program. We at Expertsmind.com offer The negation operator in Java homework help, java assignment help and The negation operator in Java projects help anytime from anywhere for 24x7 hours. Computer science programming assignments help making life easy for students.
Why Expertsmind for assignment help
- Higher degree holder and experienced experts network
- Punctuality and responsibility of work
- Quality solution with 100% plagiarism free answers
- Time on Delivery
- Privacy of information and details
- Excellence in solving java programming language queries in excels and word format.
- Best tutoring assistance 24x7 hours