hybris tech screening
关于
1年前
更新
2
频次
22
题目数
分享
有问题?问问AI帮你修改 改主题:如咖啡问卷改为奶茶问卷
Please finish the quiz in 30-40 minutes
Q1:1. Which methods are utilized to control the access to an object in multi threaded programming?
Q2:2. Constructor has return type
Q3:3. Which of the following is a valid declaration of an object of class Box?
Q4:4. Which of the following statements is correct?
Q5:5. Which cannot directly cause a thread to stop executing?
Q6:6. three guarantee that a thread will leave the running state? 1. yield()2. wait()3. notify()4. notifyAll()5. sleep(1000)6. aLiveThread.join()7. Thread.killThread()
Q7:7. public void test(int x){ int odd = 1; if(odd) { System.out.println("odd"); } else { System.out.println("even"); }} Which statement is true?
Q8:8.public class While { public void loop() { int x= 0; while ( 1 ) /* Line 6 */ { System.out.print("x plus one is " + (x + 1)); /* Line 8 */ } } } Which statement is true?
Q9:9.class Bar { } class Test { Bar doBar() { Bar b = new Bar(); /* Line 6 */ return b; /* Line 7 */ } public static void main (String args[]) { Test t = new Test(); /* Line 11 */ Bar newBar = t.doBar(); /* Line 12 */ System.out.println("newBar"); newBar = new Bar(); /* Line 14 */ System.out.println("finishing"); /* Line 15 */ } } At what point is the Bar object, created on line 6, eligible for garbage collection?
Q10:10.try { int x = 0; int y = 5 / x; } catch (Exception e) { System.out.println("Exception"); } catch (ArithmeticException ae) { System.out.println(" Arithmetic Exception"); } System.out.println("finished"); What will be the output of the program?
Q11:11.You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
Q12:12.interface Base { boolean m1 (); byte m2(short s); } which two code fragments will compile? 1. interface Base2 implements Base {} 2. abstract class Class2 extends Base { public boolean m1() { return true; }} 3. abstract class Class2 implements Base {} 4. abstract class Class2 implements Base { public boolean m1() { return (7 4); }} 5. abstract class Class2 implements Base { protected boolean m1() { return (5 7) }}
Q13:13.Suppose that you would like to create an instance of a new Map that has an iteration order that is the same as the iteration order of an existing instance of a Map. Which concrete implementation of the Map interface should be used for the new instance?
Q14:14. You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?
Q15:15. Which is valid declaration of a float?
Q16:16. Which is true about an anonymous inner class?
Q17:17. A UML Class Diagram does not sufficiently describe an OO system because:
Q18:18. The difference between aggregation and composition is:
Q19:19. Java 5 Generics:
Q20:20. What is the most significant cause of concern for Java Annotations?
Q21:21. NoSql database performance can be restricted by:
Q22:22. Cloud computing:
联系我们
问卷网公众号