logo

Crowdly

Browser

Add to Chrome

Object Oriented Development (MESIIN472925)

Looking for Object Oriented Development (MESIIN472925) test answers and solutions? Browse our comprehensive collection of verified answers for Object Oriented Development (MESIIN472925) at learning.devinci.fr.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Which of the following is the correct way to declare a constant in Java?

97%
0%
3%
View this question

Consider the code :

public class Test {

    public static void main(String[] args) {

        int[] a = {1, 2, 3};

        int[] b = a;

        b[0] = 99;

        System.out.println(a[0]);

    }

}

what will be printed?

0%
6%
94%
0%
View this question
In a Java web application, which component actually executes the Java code on the web server?
100%
0%
0%
0%
View this question

Given the following code :

class PolymorphismExample {

    void display(int a) {

        System.out.println("Method with int parameter: " + a);

    }

    void display(String a) {

        System.out.println("Method with String parameter: " + a);

    }

    public static void main(String[] args) {

        PolymorphismExample obj = new PolymorphismExample();

        obj.display("10 is an integer");

    }

}

What is the output of the following code?

0%
6%
94%
0%
View this question

To call the constructor Person( String firstName, String lastName) of a class "Person" from another constructor Person(String firstName) of the same class, we use the instruction this.Person(firstName, "Not defined")

0%
100%
View this question

The Open/Closed Principle states that a class should be:

3%
0%
97%
View this question

The Dependency Inversion Principle recommends that:

100%
0%
0%
View this question

Which example follows the Interface Segregation Principle?

0%
0%
0%
100%
View this question

What does the “S” in SOLID stand for?

0%
0%
100%
0%
View this question

What will be printed?

public class Test {

    public static void main(String[] args) {

        String s1 = "Java";

        String s2 = new String("Java");

        System.out.println(s1 == s2);

        System.out.println(s1.equals(s2));

    }

}

100%
0%
0%
0%
View this question

Want instant access to all verified answers on learning.devinci.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome