How to Use Assignment Operator in Java


In this example we will show the method to use assignment operator in Java.

Source Code

package com.beginner.examples;

public class Assignment {
  public static void main(String[] args) {
    int i = 11; // assign
    System.out.println(i);
  }
}

Output:

11
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments