What is the result?


What is the result?
A. 200.0 : 100.0
B. 400.0 : 200.0
C. 400.0 : 100.0
D. Compilation fails.

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “What is the result?

  1. public class Product {
    double price;
    class Test{
    public void updatePrice(Product product, double price){
    price= price*2;
    product.price=product.price + price;

    public static void main(String[] args) {
    Product prt = new Product();
    double newPrice=100;

    Test test = new Test();

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.