Cadernos de Questões

Provas Favoritas

Filtros Salvos

Foram encontradas 25 questões.
#2102790

Seja o seguinte programa Java:

import java.util.*;

public class Main {
       public static void main(String[ ] args) {
              Collection a=new TreeSet( );
              Set b=new TreeSet( );
              Set c=(new HashMap( )).values( );
              SortedSet d=new TreeSet( );
              Deque e=new LinkedList( );
       }
}

Qual comando produz um erro de compilação?

  • Collection a=new TreeSet( );
  • Set b=new TreeSet( );
  • Set c=(new HashMap( )).values( );
  • SortedSet d=new TreeSet( );
  • Deque e=new LinkedList( );
Fale com IAgo
IAgo - Assistente IAProva
IA
Olá! Sou o IAgo, seu assistente aqui no IAProvatec 😊
Veja como posso te ajudar:
Agora