logo

Crowdly

Browser

Add to Chrome

* TI505A-2526PSA01 - Java 2 : Programmation générique, fonctionnelle et concurrente (INGE-1-AFRIQUE, INGE-1-AFRIQUE-SEM-A)

Looking for * TI505A-2526PSA01 - Java 2 : Programmation générique, fonctionnelle et concurrente (INGE-1-AFRIQUE, INGE-1-AFRIQUE-SEM-A) test answers and solutions? Browse our comprehensive collection of verified answers for * TI505A-2526PSA01 - Java 2 : Programmation générique, fonctionnelle et concurrente (INGE-1-AFRIQUE, INGE-1-AFRIQUE-SEM-A) at moodle.myefrei.fr.

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

Quelle est la syntaxe correcte d’une lambda en Java ?

View this question

Que

signifie le symbole

<?>

dans une

déclaration générique?

View this question

Quel code transforme une liste de chaînes en liste de leurs majuscules ?

View this question

Soit la méthode suivante d’une classe X :

public static void process(List<? extends Number> list) {

              for (Number n : list)

                            System.out.println(n.doubleValue());

}

Quel appel est valide ?

View this question
Quelle déclaration est correcte ?
View this question

Que retourne list.get(0) pour une variable List<? super Number> list ?

View this question

Quelle est la sortie de ce programme (Pile générique)?

import java.util.Stack;

class Pilegeneric <E>

{

Stack <E> pile = new Stack <E>();

public void push(E obj)

{

pile.push(obj);

}

public E pop()

{

E obj = pile.pop();

return obj;

}

}

public class Test

{

public static void main(String args[])

{

PileGeneric <String> p1 = new PileGeneric <>();

p1.push("Hello");

System.out.print(p1.pop() + " ");

PileGeneric <Integer> p2 = new PileGeneric <>();

p2.push("44");

System.out.println(p2.pop());

}

}

View this question

package exceptions;

import java.io.IOException;

public class ExceptionHandling {

    public static void main(String[] args) {

        try {

            testException(-5);

            testException(-10);

        } catch(IOException e) {

           System.out.print(e.getMessage());

        } finally {

            System.out.print("Releasing resources ");

        }

    }

    public static void testException(int n) throws IOException {

        if (n < 0) {

            throw new IOException("Negative Integer " + n + "FAIL");

        } else if (n > 10) {

            throw new IOException("Only supported for index 0 to 10 ");

        }

    }

}

View this question

Remplacer  ??? pour que le code soit correct en informant l'utilisateur sur l'incident rencontré.

try {

        Fichier fichier = new Fichier();

        fichier.readLine();

} catch (IOException e) {

               System.out.println(e.?????);

}
View this question

Les algorithmes de recherche, de suppression dans une HashMap sont garantis corrects en la présence de

View this question

Want instant access to all verified answers on moodle.myefrei.fr?

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

Browser

Add to Chrome