Answer:
Following are the output of the given code:
Output:
12 20
Step-by-step explanation:
Description of the code:
- In the java program code, two integer variable "j and k" is defined, that stores a value, that is "10 and 8", in its respective variable.
- After storing the value it uses the "j and k" variable, in this, it increments the value of j with 2, and in the k variable, it adds the value of j and stores the value in k.
- After incrementing the value, the print method is used that prints the value of "j and k", i.e, "12 and 20".