Identify the statements listed below as assignment,
increment, method invocation or object creation statements.
(i) System.out.println(“Java”);
(ii) costPrice = 457.50;
(iii) Car hybrid = new Car();
(iv) petrolPrice++;
Answers
Answered by
9
(i) method invocation
(ii) assignment
(iii) object creation statement
(iv) increment
Hope it helps. Happy coding!!!
Similar questions