Home / Questions / Identify the statements listed below as assignment, increment, method invocation or object creation statements. System.out.println("Java"); costPrice = 457.50; Car hybrid = new Car(); petrolPrice++;
Explanatory Question

Identify the statements listed below as assignment, increment, method invocation or object creation statements.

  1. System.out.println("Java");
  2. costPrice = 457.50;
  3. Car hybrid = new Car();
  4. petrolPrice++;

👁 66 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

  1. Method Invocation
  2. Assignment
  3. Object Creation
  4. Increment