1) What blogs, publications, and websites do regularly you use to keep up to date with the latest technologies? Do you actively contribute to any of them?
2) In the following example, which features of the Java language are
illustrated in (a) methodOne’s parameter list, and (b) the ‘for’ loop?
class MyNewClass {
public
static void methodOne(String s, String t, Integer ... ii) {
for(int
jj : ii) {
System.out.print(jj
+ " " + s + " " + t);
}
}
}
|
3)
Our clients operate in a global
market, therefore our applications must operate in many different
countries. Name two basic data types
whose format varies between countries, that software must account for.
4)
Simplify the following section
of code.
public void showCollection (Collection collection) {
Iterator ii = collection.iterator();
for(int kk = 0; kk < collection.size(); kk++) {
MyClass one = (MyClass) ii.next();
one.printResult();
}
}
|
5)
What feature of the Java
programming language is the following code an example of? If you’ve used the
feature to solve a problem, please give an example.
Class c = Class.forName("java.lang.String");
Method m[] = c.getDeclaredMethods();
|
6)
What type of design pattern is
this? Can you name one or more potential issues with this pattern?
public class MyObject {
private
static final MyObject INSTANCE = new MyObject();
private MyObject () {}
public static MyObject
getInstance() {
return INSTANCE;
}
}
|
Sei pronto per questo tipo di domande?
Nessun commento:
Posta un commento