Telefonino.net network
 
| HOMEPAGE | INDICE FORUM | REGOLAMENTO | ::. NEI PREFERITI .:: | RSS Forum | RSS News | NEWS web | NEWS software |
| PUBBLICITA' | | ARTICOLI | WIN XP | VISTA | WIN 7 | REGISTRI | SOFTWARE | MANUALI | RECENSIONI | LINUX | HUMOR | HARDWARE | DOWNLOAD | | CERCA nel FORUM » |

Torna indietro   WinTricks Forum > Software > Programmazione

Notices

Rispondi
 
Strumenti discussione
Vecchio 10-06-2005, 22.09.18   #46
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Quota:
Originariamente inviato da Dav82
Tu su che base hai dato la risposta?

Sei sicuramente più fresco di me sulle collection, così ripasso qualcosa pure io
Io le ho iniziate oggi a studiare e non è che mi siano chiarissime

Ma su che domanda ti riferisci in particolare?

p.s. ne arrivano altre a breve
Downloader non è collegato   Rispondi citando
Vecchio 10-06-2005, 22.11.37   #47
Dav82
Gold Member
Top Poster
 
Registrato: 18-07-2002
Messaggi: 6.399
Dav82 promette bene
All'ultima


però non vale modificare il messaggio mentre io ti sto rispondendo
Dav82 non è collegato   Rispondi citando
Vecchio 10-06-2005, 22.13.27   #48
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Quota:
Originariamente inviato da Dav82
All'ultima


però non vale modificare il messaggio mentre io ti sto rispondendo
Vabbe, io ti stavo ripondendo sulla prima, poi m'è venuto il dubbio
Downloader non è collegato   Rispondi citando
Vecchio 10-06-2005, 22.16.55   #49
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Ho risposto array perchè mi è venuto in mente che se voglio per esempio aggiungere un elemento nell'array devo prima riversare tutti gli elementi dell'array piu quello/i nuovo/i (ovviamente in un certo limite) in un nuovo vettore, occupando piu memoria di quanta non se ne occupi per esempio con il liked-list.

Lo so che con la domanda centra poco, ma in mancanza di altre idee...
Downloader non è collegato   Rispondi citando
Vecchio 10-06-2005, 22.21.18   #50
Dav82
Gold Member
Top Poster
 
Registrato: 18-07-2002
Messaggi: 6.399
Dav82 promette bene
Quota:
Originariamente inviato da Downloader
Ho risposto array perchè mi è venuto in mente che se voglio per esempio aggiungere un elemento nell'array devo prima riversare tutti gli elementi dell'array piu quello/i nuovo/i (ovviamente in un certo limite) occupando piu memoria di quanta non se ne occupi per esempio con il liked-list.

Lo so che con la domanda centra poco, ma in mancanza di altre idee...
Questo in effetti riguarda più il tempo: c'è sempre un trade-off spazio/tempo: che vor dì??? Vuol dire che, normalmente, per risolvere un problema con una tecnica A ci metterai X tempo e K memoria, mentre con una tecnica B ci metterai più d X tempo e meno di K memoria: in un ambito migliori, nell'altro peggiori, è così in tutti i problemi informatici

Sinceramente non saprei cosa rispondere, a questa domanda in particolare. Magari dopo mi riguardo la specifica di queste due collezioni e ti do una risposta su basi più solide
Dav82 non è collegato   Rispondi citando
Vecchio 10-06-2005, 22.57.05   #51
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Quota:
Which statements about the Map interface are true?(4 risp)

-Objects that implements the Map interface can be used to store and manage a collection of objects using hash table storage technology <--

-HasTable and HashMap implement the Map interface <--

-Object that implement the Map interface provide methods to add objects using key values

-Object that implement the Map interface have a put() method that inserts a key and value pair into the map. If the key already exist then the insertion is rejected <--

-Objects that implements the Map interface have a get() method that returns the value associated with a given key or null if the key does not exist in the map <--

-The hashCode method should not be overridden in objects that will be used in a HashMap collection.
Quota:
What type of methods are part of the collection interface? (3 risp)

-add and remove methods <--

-random object creation methods

-count object method <--

-iterator methods <--

-group methods
Quota:

Which of the following phrases are true <for both arrays and collections?

-a single object representing a group of objects <--

-deal with many types of objects

-fixed size or capacity

-easily sorted
Downloader non è collegato   Rispondi citando
Vecchio 10-06-2005, 23.46.36   #52
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Ultima per stanotte, prometto
Quota:
What can be said about the collection framework classes and the interfaces upon which they have build? (??????)

-the collection framework classes allow the user to write their own collections methods.

-the framework classes override the abstract interface methods and add additional concrete methods to facilitate management of collections

-the collections interfaces may be used directly without the need to override any methods at all
-every interface has a corresponding class which should be then used by the programmer

-only those methods which the programmer needs to use must be overridden in the class which implements a collection interface
Downloader non è collegato   Rispondi citando
Vecchio 11-06-2005, 14.39.35   #53
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Quota:
Originariamente inviato da Downloader
Ed ecco puntuali alcune domandine ine ine ine:
The phrase “re-arranging the elements in a collections on some random order” correctly defines which term?
-Sorting
-shuffling
-duplication
-adding
E invece è shuffling

Davvvvvv ma dove sei???
Downloader non è collegato   Rispondi citando
Vecchio 11-06-2005, 17.52.08   #54
Dav82
Gold Member
Top Poster
 
Registrato: 18-07-2002
Messaggi: 6.399
Dav82 promette bene
Quota:
Originariamente inviato da Downloader
E invece è shuffling
T'avevo detto io che bisognava capire ben quel "random"



Mo leggo eh, prima devo finire alcune cosine poi ti dico
Dav82 non è collegato   Rispondi citando
Vecchio 11-06-2005, 18.24.20   #55
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Sono entrambe sbagliate, cosi dovrebbero andar meglio
Quota:
What type of methods are part of the collection interface? (3 risp)

-add and remove methods <--

-random object creation methods

-count object method

-iterator methods <--

-group methods <--
Quota:
Which of the following phrases are true <for both arrays and collections?

-a single object representing a group of objects

-deal with many types of objects

-fixed size or capacity

-easily sorted <--
Downloader non è collegato   Rispondi citando
Vecchio 12-06-2005, 03.55.37   #56
Dav82
Gold Member
Top Poster
 
Registrato: 18-07-2002
Messaggi: 6.399
Dav82 promette bene
Ehm, scusami, oggi sono stato pigro, fra studiare, lavorare, ca@@eggiare sul Forum, non ho guardato le tue domande


Quota:
Which statements about the Map interface are true?(4 risp)

-Objects that implements the Map interface can be used to store and manage a collection of objects using hash table storage technology <--

-HasTable and HashMap implement the Map interface <--

-Object that implement the Map interface provide methods to add objects using key values

-Object that implement the Map interface have a put() method that inserts a key and value pair into the map. If the key already exist then the insertion is rejected <--

-Objects that implements the Map interface have a get() method that returns the value associated with a given key or null if the key does not exist in the map <--

-The hashCode method should not be overridden in objects that will be used in a HashMap collection.
1) Vera: c'è una classe fornita direttamente da Java)
2) Vera (sempre riscontrabile dallo zippone )
3) Falsa: nella specifica di Map non c'è traccia di metodi del genere;
4) Falsa: direttamente dalla Documentation (lo zippone ): "If the map previously contained a mapping for this key, the old value is replaced by the specified value."
5) Vera; piccola precisazione: "A return value of null does not necessarily indicate that the map contains no mapping for the key; it's also possible that the map explicitly maps the key to null. The containsKey operation may be used to distinguish these two cases."
6) eh??? troppo tardi per capire sta cosa!

Probabile cmq che la 4 la diano come Vera

Quota:
What type of methods are part of the collection interface? (3 risp)

-add and remove methods <--
-random object creation methods
-count object method <--
-iterator methods <--
-group methods
Esatto (Y) (se tu avessi lo zippone.... )

Quota:
Which of the following phrases are true <for both arrays and collections?

-a single object representing a group of objects <--
-deal with many types of objects
-fixed size or capacity
-easily sorted
1) vera: sono degli insiemi di oggetti;
2) falsa: una Collection può avere oggetti di classi differenti, mentre un oggetto di classe Array può referenziare solo oggetti di uno stesso tipo;
3) falsa: un oggetto Array ha dimensioni fissate a priori, una Collection no;
4) falsa: sinceramente bisognerebbe intendersi sull'easely, cmq in generale no;
Dav82 non è collegato   Rispondi citando
Vecchio 12-06-2005, 03.59.06   #57
Dav82
Gold Member
Top Poster
 
Registrato: 18-07-2002
Messaggi: 6.399
Dav82 promette bene
Quota:
Originariamente inviato da Downloader
Sono entrambe sbagliate, cosi dovrebbero andar meglio
Mi sono basato sulle tue risposte originarie, cmq se guardi la specifica di Collection, i suoi metodi sono:

add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
Dav82 non è collegato   Rispondi citando
Vecchio 12-06-2005, 04.22.51   #58
Dav82
Gold Member
Top Poster
 
Registrato: 18-07-2002
Messaggi: 6.399
Dav82 promette bene
Quota:
Originariamente inviato da Downloader
What can be said about the collection framework classes and the interfaces upon which they have build? (??????)

-the collection framework classes allow the user to write their own collections methods.

-the framework classes override the abstract interface methods and add additional concrete methods to facilitate management of collections

-the collections interfaces may be used directly without the need to override any methods at all
-every interface has a corresponding class which should be then used by the programmer

-only those methods which the programmer needs to use must be overridden in the class which implements a collection interface
Traduzione, prima di tutto!

Quota:
Che cosa si può dire delle classi del framework Collection e delle interfacce sulle quali queste (le classi del framework) sono costruite?
1) Vera: alla fin fine ogni classe può essere utilizzata come base di partenza per una classe customizzata!
2) Vera: si può sindacare sul fatto che per i metodi di un interfaccia si fa override nel senso strutturale del termine (non si usa la definizione del metodo data nella classe "padre" ma quella data nella classe "figlia") ma non nel senso più comune (cioè quello di ridefinire una implementazione già data, che per le interfacce NON c'è, in quanto un'interfaccia è solo un insieme di signature di metodi), ma la risposta è da dare assolutamente per buona senza la minima ombra di dubbio
3) Falsa: le interfacce NON sono istanziabili! Quindi NON possono essere usate... un'interfaccia è fatta per essere implementata da una classe, altrimenti che interfaccia è? La risposta sarebbe vera se al posto di "interfaces" ci fosse "classes": le classi fornite dal framwork Collection NON sono abstract, e quindi possono essere istanziate e usate tranquillamente
4) Vera: vedi 3
5) Falsa: per poter usare (istanziare) una classe, questa deve NON essere abstract, cioè tutti i metodi devono essere implementati; poi ovviamente quelli che non servono possono essere implementati semplicemente ricopiando la signature con nessuna istruzione nel corpo del metodo, ma devono essere ricopiati nella classe, altrimenti la stessa deve essere dichiarata abstract, e quindi non istanziabile (usabile).


Spero di non aver scritto vaccate o robe incomprensibili

Sono le 4 e mezza di notte

Ciao
Dav82 non è collegato   Rispondi citando
Vecchio 15-06-2005, 14.59.29   #59
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Devo fare l'ultimo esame entro domani qua in Irlanda, e lo devo fare sui thread (cosa sentita una volta sola e mai capita)
Editato...

Ultima modifica di Downloader : 30-06-2005 alle ore 10.01.47
Downloader non è collegato   Rispondi citando
Vecchio 15-06-2005, 15.14.43   #60
Downloader
Gold Member
Top Poster
 
Registrato: 04-09-2002
Loc.: Roma
Messaggi: 4.022
Downloader promette bene
Editato...

Ultima modifica di Downloader : 30-06-2005 alle ore 10.02.17
Downloader non è collegato   Rispondi citando
Rispondi


Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti)
 
Strumenti discussione

Regole di scrittura
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is ON
Gli smilies sono ON
[IMG] è ON
Il codice HTML è OFF

Vai al forum

Discussioni simili
Discussione Autore discussione Forum Risposte Ultimo messaggio
Problemi Java. Armando@56 Software applicativo 4 19-03-2008 15.27.05
Applicazione java pronta per l'uso juggler Programmazione 1 18-12-2006 21.11.18
[NEWS] Java diventa open source! UG0_BOSS Segnalazioni Web 2 14-11-2006 15.27.14
Java 5.0 upd. 10 / 6 RC Thor Archivio News Web 10 14-11-2006 12.56.18
[LINUX] windows media player per linux sacarde Linux e altri Sistemi Operativi 35 19-08-2006 11.55.31

Orario GMT +2. Ora sono le: 01.32.26.


E' vietata la riproduzione, anche solo in parte, di contenuti e grafica.
Copyright © 1999-2017 Edizioni Master S.p.A. p.iva: 02105820787 • Tutti i diritti sono riservati
L'editore NON si assume nessuna responsabilità dei contenuti pubblicati sul forum in quanto redatti direttamente dagli utenti.
Questi ultimi sono responsabili dei contenuti da loro riportati nelle discussioni del forum
Powered by vBulletin - 2010 Copyright © Jelsoft Enterprises Limited.