Computer Science, asked by manitisawant, 7 months ago

give an output of the following code if x=7 and y =11 system.out.println("x==y"+(x==y));

Answers

Answered by Jasleen0599
0

JAVA CODE

if x=7 and y =11

system.out.println("x==y"+(x==y));

​Output:

Error

  • While the second is an equality operation, the first is an assignment operation. Save your time and avoid wasting it by asking queries like this on such websites. Visit Github, download some projects, assemble them, test them, study the Java language's official documentation, examine the code, and then write some code.
  • A character string might be compared to an address, a date, or a number, for example, but are there any comparisons across variables with various datatypes? Are there any comparisons using several modes or varying durations of variables? If so, make sure you are familiar with the conversion guidelines.

#SPJ2

Answered by sourasghotekar123
0

Answer:

CODE IN JAVA

if y=11 and x=7

system.out.println("x==y"+(x==y)) ;

Error:

  • The first is an assignment operation, whereas the second is an equality operation. By posing such questions on such websites, you may save your time and stop wasting it. Visit Github, get some projects, put them together, test them, read the official documentation for the Java programming language, look at the code, and then write some code.
  • Are there any comparisons between variables with different datatypes, despite the fact that a character string can be compared to an address, a date, or a number, for example? Exist any comparisons involving multiple modes or different variable durations? If so, be careful to understand the converting instructions.

#SPJ5

https://brainly.in/question/22428149

Similar questions