Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help in solving Java Problems  RSS feed

 
Val Gueorguiev
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Team,
I thought I have build enough Java knowledge but when I encountered these two questions I kind of stumbled:
Question1............
You wish to build a system for tracking paperwork at a large company. There are 2 types of objects stored. The first is
"Paper," this is a single document with information on it. The second is a "Folder," the folder can contain information and it can also contain an unlimited amount of "Paper" and ether
"Folders" within it. "Folders" may be within other "Folders" up
to 20 levels. Please DESCRIBE/layout a data structure(s) that that could be used to store this information, and provide a brief overview of how each would be used. No code is necessary.
Question2........
You wish to build an internet site that will be used for collecting, storing and reporting information about chemicals. You will need to store the following: Name (i.e. Charcoal), Color (i.e. Black), Flammable temperature (i.e. 120 degrees C), Weight per cc (i.e. 2.5). The site will be restricted to certain users by password, and a history must be kept (each
change a user makes must be stored as being done by a particular user). If you could design and build such a site using any tools you choose, what tools would you select? Please explain your design for such a system as concisely as possible.

Any help or hints will be greatly appreciated.
Thanx in advance.

[This message has been edited by Val Gueorguiev (edited January 29, 2001).]
 
Val Gueorguiev
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No responses!!!???
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first one sounds like a directory structure to me.
The second is wide open. Depends on the user base. However not knowing that info, I would use an Oracle database with a servlet front-end.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Val,
These problems really don't hinge too much on knowledge of Java... these questions could be asked about C/C++, Perl, or ASP. They deal more with programming and system design in general.
For example, in question 1 all you would really have to say is, "I would make a Folder class that would have a Vector (or other structure) for holding the Paper in the Folder, and I would have another Vector (or other structure) to hold other Folders in the current Folder. To restrict the maximum depth of the folders to 20 I would also have to save what level the current folder was in and restrict adding new folders to any Folder on level 20." Barring any Java specific terminology, this solution could be implemented in any language. (Well, any OO language for this solution...)
The second question can have really any answer... "I would use a database with ASP...", "I would use J2EE with JDBC...", "I would use JavaBeans...". Basically, the answer needs to show a knowledge of two things: 1. How you will store the info. And 2. The security issue with the password. Again, this is not specific to Java... the solution could use any language or software you desired... Also, they probably want you to be able to defend your design in some way, i.e "I feel that <technology A> would be better at this than <technology B> because of..." This shows that you know several solutions to a problem, and can choose the appropriate one for the job. It also shows that you are not tied to any one technology, and you are not just spouting off buzzwords...
By the way, did these questions come from a book or from an interview? (Sorry, just nosy... )
HTH,
-Nate
 
Val Gueorguiev
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I'm greatly appreciate your response.
Eventhough I'm certified Java Programmer I also thought that these questions target actually your knowledge of overall OO Web Technology and also architecture.
Anyway to answer your queston Nate these are interview questions.
Thanx a bunch again.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!