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++;

Single Choice
Views 58

Answer:

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

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.