Explain Assignment operator with an example.
5 Likes
Assignment operator (=) is used to assign a literal, value of a variable, the result of any expression or the return value of a method to a variable.
Example:
int a = 10; int b = a * 4;
Answered By
3 Likes
What is meant by Token? Name all the tokens which are used in Java.
What are reserved words? Name at least five reserved words.
Explain Relational operator with an example.
Explain Logical operator with an example.