YOUR FEEDBACK
The Cloud Wars - Is Guitar Hero a Cloud?
Roland Judas wrote: I am following the cloud discussions for some months n...


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


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

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

About Yakov Fain
Yakov Fain is a managing principal of Farata Systems, consulting, training and product company. He has authored several Java books, dozens of technical articles. SYS-CON Books released his latest co-authored book , "Rich Internet Applications with Adobe Flex and Java: Secrets of the Masters" in Spring 2007. Sun Microsystems has nominated and awarded Yakov with the title Java Champion. He leads the Princeton Java Users Group. Yakov teaches Java and Flex 2 part time at New York University. He is an Adobe Certified Flex Instructor and an Editor-in-Chief of Flex Developers Journal.

Raghu wrote: A message to all,interview questions given here can be generic ONLY.Its not like for 2+ years,4+ years etc.It purely depends on the company and the role for which you are interviewed.Some of the interview questions i faced recently.I was able to clear all the theoretically related so they asked me by giving a scenario. 1. You need to read all the details from say.. www.yahoo.com/index.html, save it in a file in yor local PC. What API will you use in Java and what method?? 2. You are saving a set of employee names and their salaries in a HashMap like that.. How will you sort them in descending order based on the salary? This can be done by implementing the comparator interface. If you need further information,drop a mail 2 graghuu@gmail.com Cheers, Raghu
read & respond »
aruna wrote: Hi, Could you please send me the interview questions in java,jsp,struts,jdbc,c orejava for 1+ yers of experience as software engineer. Thanks you,
read & respond »
Ashvini wrote: Hi, Could you please send me the interview questions in java,jsp,struts,jdbc,c orejava for 2+ yers of experience as software engineer. Thanks you, Ashvini. S
read & respond »
. wrote: these questions are stupid these are moronic questions that idiots that don't know how to interview asks lets get to some real world questions
read & respond »
deepa wrote: Please send me expert level questions on jdbc 4.0
read & respond »
sandeep wrote: try http:/ /www.java-interview.com for all the java related interview questions
read & respond »
shikha wrote: please send me the interview questions in java,jsp,jdbc,corejava for 1+ yers of experience as a software engineer. thanks you,
read & respond »
sreekanth wrote: Thank you very much for such a good article.....as I'm in search of job this article would certainly be helpful for my preparation.
read & respond »
sandeep wrote: please send me the interview questions in java,jsp,jdbc,corejava for 1+ yers of experience as a software engineer. thanks you, sandeep
read & respond »
siddharth wrote: I have 1+ yrs experience of working in java.. please help me by sending the interview questions..
read & respond »
varun wrote: Data Migration/Conversion: It can be used to convert sql server tables into mysql tables
read & respond »
rajyalakshmi.M wrote: I need the type of questions asked in an interview for a job in java/j2ee foe 2+ years experience Thanks
read & respond »
Ranjani wrote: I need the type of questions asked in an interview for a job in java/j2ee with about 2 years experience. Thanks
read & respond »
archana wrote: Hi, Could you please send me the interview questions in java,jsp,struts,jdbc,c orejava for 2+ yers of experience as software engineer. Thanks you, Archana.
read & respond »
sony wrote: I have acquired abt 4-5yrs of Java/J2EE exp and will be attending an interview in the States...Could you pls let me know on what are the tips that I need and pls help me with some questions that they will ask me?
read & respond »
srinivas wrote: plz send j2ee interview questions with 2+ exp
read & respond »
Mitesh wrote: I need to Prepare for Internship as Java Programmer
read & respond »
VANI SARIN (Recruiter at GE Healthcare) wrote: GE Healthcare is hiring Sr. J2EE Developer and Web Client Developers with Ajax and or googleweb toolkit. Please visit www.gecareers.com and enter job #s 756156 and 756161
read & respond »
vani wrote: can u plz send me 2+yrs core,jsp,servlet,jddbc questions
read & respond »
nirupama reddy wrote: hi,plz send me 1+ yrs core,adv,servlets,jsps questions
read & respond »
LATEST JAVA STORIES & POSTS
Saving Your Investment: Transforming J2EE applications into Web 2.0 using GWT
The pressure is on to keep pace with Web 2.0 entrants into the marketplace. Rewriting is expensive; adding AJAX widgets results in a complex, unmaintainable application. Both require you to hire scarce JavaScript developers. Google Web Toolkit -- the SDK that allows you to write
WSRP Really Works! - Part 2
A standard from OASIS called Web Services for Remote Portlets (WSRP) is used so portlets can be decoupled from a portal. In part one (JDJ, Volume. 13, issue 3) of this article, we introduced the relevant standards and specifications and then demonstrated WSRP's capabilities by co
Adobe's Kevin Lynch and Microsoft's Scott Guthrie to Keynote AJAX World RIA Conference & Expo
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe launched AIR 1.0 in February '08 and Microsoft launched Silverlight (September '07). At the 6th International AJAXWorld RIA Conference & Expo in October SYS-CON Events is delighted
Sun Expects Q4 Earnings Above Estimates
On Tuesday evening Sun issued a fourth-quarter guidance range largely above analysts' estimates. The company pre-announced that revenue for its fiscal fourth quarter ended June was $3.725 billion to $3.8 billion, with gross margin in the 44-45% range. Sun expects non-GAAP profits
Virtualization Conference Keynote Webcast Live on SYS-CON.TV
Brian Stevens, the Chief Technology Officer and Vice President of Engineering of Red Hat, delivered his Virtualization Keynote 'The Future of the Virtual Enterprise' at SYS-CON's Virtualization Conference & Expo 2007 West in San Francisco. 'Virtualization is the hottest subject
The Beauty of JavaScript
JavaScript is one of the most interesting and misunderstood programming languages in common use today. Most developers will go their entire careers without realizing its full potential. It's not often that you get a language that supports the feature set that JavaScript does, whi
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

SPONSORED BY INFRAGISTICS
SOA in a JVM: OSGi Service Platform - A Dynamic Component System for Java
There are many forces that influence technological evolution. After a decade of building enterprise
AJAX and Enterprise RIA Tools - JSF, Flex, and JavaFX
2008 is going to be an important year for Rich Internet Applications. Most organizations are deliver
Final Voting Phase on OpenAjax Browser Wishlist
The OpenAjax Alliance is developing an Ajax industry wishlist for future browsers, using a dedicated
AJAX World RIA Conference News - Netflix UI Guru To Present on Crafting Rich Web Interfaces
In every field of design one of the first things students do is learn from the work of others. They
Infragistics Releases CTP UI Components for Microsoft Silverlight Beta 2
Infragistics announced the availability of two Community Technology Preview (CTP) User Interface (UI
Yahoo User Interface 2.5.2 Released
The YUI development team has released version 2.5.2; you can download the new release from SourceFor
ADS BY GOOGLE
BREAKING JAVA NEWS
Domark International, Inc. Completes Its Acquisition of Javaco, Inc.
Domark International, Inc. (OTCBB:DOMK) announced today that it has completed its acqui