The Cloud Wars - Is
Guitar Hero a Cloud?
Roland Judas wrote: I am
following the cloud
discussions for some
months n...
Jul. 20, 2008 04:57 PM
|
|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV |
TOP THREE LINKS YOU MUST CLICK ON Java Industry News
Secrets Of The Masters: Core Java Job Interview Questions
JDJ Enterprise Editor Yakov Fain Offers 30 Core Java Questions You Might Expect During Job Interviews
By: Yakov Fain
Jun. 17, 2008 06:00 AM
Digg This!
Page 2 of 2
« previous page
For senior-level developers: ** Q21. What's the difference between a queue and a stack? A. Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule ** Q22. You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces? A. Sometimes. But your class may be a descendent of another class and in this case the interface is your only option. ** Q23. What comes to mind when you hear about a young generation in Java? A. Garbage collection. ** Q24. What comes to mind when someone mentions a shallow copy in Java? A. Object cloning. ** Q25. If you're overriding the method equals() of an object, which other method you might also consider? A. hashCode() ** Q26. You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use: ArrayList or LinkedList? A. ArrayList ** Q27. How would you make a copy of an entire Java object with its state? A. Have this class implement Cloneable interface and call its method clone(). ** Q28. How can you minimize the need of garbage collection and make the memory use more effective? A. Use object pooling and weak object references. ** Q29. There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it? A. If these classes are threads I'd consider notify() or notifyAll(). For regular classes you can use the Observer interface. ** Q30. What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it? A. You do not need to specify any access level, and Java will use a default package access level. The J2EE questions are coming soon. Stay tuned for Yakov Fain on Live SYS-CON.TV. Ask your questions to Yakov on the air! Page 2 of 2 « previous page
LATEST JAVA STORIES & POSTS
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK SPONSORED BY INFRAGISTICS
BREAKING JAVA NEWS
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||