Q.1] type of assignment operator or syntax?
·
Equal
to [syntax:- =]
Q.2] write a program to Assigment operator can be
use:-
class Assignment {
public static void
main(String args[]) {
int x=4, y=7;
int x=12, y=24;
int y=x, x=y;
System.out.printl( “
the value of Y is=” +y)
}
}
0 Comments