logo

Crowdly

Browser

Add to Chrome

SIS0208 - METODOLOGIA Y PROGRAMACION ORIENTADA A OBJETOS I - GRUPO 4

Looking for SIS0208 - METODOLOGIA Y PROGRAMACION ORIENTADA A OBJETOS I - GRUPO 4 test answers and solutions? Browse our comprehensive collection of verified answers for SIS0208 - METODOLOGIA Y PROGRAMACION ORIENTADA A OBJETOS I - GRUPO 4 at uamvirtual.uam.edu.ni.

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

¿Qué ocurre?

class Persona { String nombre; }

public class Main {

public static void main(String[] args){

Persona p = null;

System.out.println(p.nombre);

}

}

0%
0%
0%
0%
View this question
¿Qué ocurre?

class A {}

class B extends A {}

public class Main {

public static void main(String[] args){

A a = new A();

B b = (B)a;

}

}

0%
0%
0%
100%
View this question
¿Qué imprime?

class Persona {}

public class Main {

public static void main(String[] args){

System.out.println(new Persona());

}

}

0%
0%
50%
50%
View this question
¿Qué imprime?

class Padre { void saludar(){ System.out.println("Padre"); } }

class Hijo extends Padre {

void saludar(){ System.out.println("Hijo"); }

}

public class Main {

public static void main(String[] args){

Padre p = new Hijo();

p.saludar();

}

}

0%
0%
0%
0%
View this question
¿Qué ocurre?

public class Main {

public static void main(String[] args){

int[] arr = new int[2];

System.out.println(arr[2]);

}

}

0%
0%
0%
0%
View this question
¿Cuál es la salida?

public class Main {

public static void main(String[] args){

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

System.out.println(arr[1]);

}

}

0%
0%
0%
0%
View this question
¿Cuál es la salida?

interface I { void m(); }

class C implements I {

public void m(){ System.out.println("ok"); }

}

public class Main {

public static void main(String[] args){

I i = new C();

i.m();

}

}

100%
0%
0%
0%
View this question
¿Qué ocurre?

final class A {}

class B extends A {}

0%
100%
0%
0%
View this question
¿Qué imprime?

class Persona {

private String nombre = "Ana";

public String getNombre(){ return nombre; }

}

public class Main {

public static void main(String[] args){

Persona p = new Persona();

System.out.println(p.getNombre());

}

}

0%
0%
0%
0%
View this question
¿Cuál es la salida?

class A {

int x = 5;

}

public class Main {

public static void main(String[] args){

A a = new A();

System.out.println(a.x);

}

}

0%
0%
0%
0%
View this question

Want instant access to all verified answers on uamvirtual.uam.edu.ni?

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

Browser

Add to Chrome