Colocviu PPSD
Test Your Knowledge on Parallel Processing and Web Services
Are you ready to challenge your understanding of parallel processing, web services, and Java? This quiz is designed to assess your knowledge across a broad range of topics, from thread management to client-server architecture.
Key Features:
- 20 engaging questions
- Multiple-choice format
- Focus on real-world applications
Fie clasa:
public class Student implements java.lang.Cloneable {
String nume;
String parola = “parolaImplicita”;
// ... Alte date membre
public Object clone() {
try {
return super.clone();
} catch(CloneNotSupportedException e) {return null;}
}
// ...constructori...alte metode
}
Fie obiectul s1 (de tip Student) alocat la adresa ALFA, cu s1.nume alocat la BETA avand valoarea ["Popescu”], si s1.parola alocata la CSI avand valoarea [“parolaPopescu”]. Fie obiectul s2 obtinut prin clonarea obiectului s1. Referintele (adresele) continute de s2, s2.nume si s2.parola sunt:
Fie clasa:
public class Student implements java.lang.Cloneable {
String nume;
String parola = "parolalmplicita";
// ... Alte date membre
public Object clone() {
try {
return super.clone();
} catch (CloneNotSupportedException e) {return null;}
}
// ... constructori ... Alte metode
}
Fie un vector de studenti vs1(de tip Student[]) alocat la adresa AVS1, vector care contine doua elemente(obiecte de tip Student) alocate la adresele AVS1_EO respectiv AVS1_E1. Fie vectorul vs2 obtinut prin clonarea vectorului vs1(vs2=(Student[]) vs1.clone();). Referintele (adresele) continute de vs2, vs2[0] si vs2[1] sunt:
Fie clasa:
public class Student implements java.io.Serializable {
String nume;
transient String parola = “parolaImplicita”;
//...alte date membre
//...constructori...alte metode
}
Fie obiectul s1(de tip Student) alocat la adresa ALFA cu s1.nume alocat la BETA avand valoarea ["Popescu”], si s1.parola alocata la GAMA avand valoarea ["parolaPopescu”]. Se serializeaza obiectul s1 si apoi se deserializeaza (restaureaza) in obiectul s2. Referintele(adresele) continute de s2, s2.nume si s2.parola sunt: