top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the word operators in Java and c++?

0 votes
768 views
What are the word operators in Java and c++?
posted Jun 25, 2017 by Priya Kanojiya

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
could not get your question, are you looking at the differences between operator in Java and C? Please comment accordingly...
No.I want to ask u that.java have four word operators.which one is that?
Java has following operators -
Simple assignment: =
Arithmetic: +   -   *     /   %
Unary: +   -   ++     --  !
Relational: ==   !=   >     >=   <   <=
Conditional: &&     ||   
Ternary: ? :
Type comparison: instanceof
Bitwise and Bit shift: ~     <<   >>   >>>   &     ^   |

But I am still not sure what are you looking for..
Like c have sizeof () operator.similarly I want to ask u about Java word operators.
But there is no such method in the standard Java SE class library.

The designers' view is that it is not needed in Java, since the language removes the need for an application to know about how much space needs to be reserved for a primitive value, an object or an array with a given number of elements.

Not sure if this answers your question.
No.
Thanks
operators that can be written as a string like sizeof() in c/c++ and instanceof operator in java that is already mentioned by Salil.
Maybe you want a common string form operator that is present in both java and c++ ? is it true?

Similar Questions
+8 votes

Memory leak risks are higher in java or C++?? Explain it.

0 votes

Given a sentence and a word, remove all occurrences of the word in the sentence.

For example, removing “is” from the sentence “This is a boy.” becomes “Th a boy.”

...