![]() |
|
#1
|
|||
|
|||
JAVA questions I encountered during an interviewHi,
These are questions I encountered during an interview. With my introductory background, I had no idea what got into them. Could someone tell me where I should start my search for the answers? Appreciate your hints. Write a function in that integrates a globally given function f? What is the danger of using public unsigned integers within a class? In a diamond-shaped inheritance hierarchy, how to ensure that only 1 copy of parent is created? Thanks in advance |
|
#2
|
||||
|
||||
Re: JAVA questions I encountered during an interviewQuote:
Quote:
1. Java doesn't know 'unsigned ints', which is discussed here. 2. Web services and XSD can be problematic with Java: Quote:
Quote:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: JAVA questions I encountered during an interviewIn java programming (or for any languange for that matter), a "diamond-style hierarchy" is a very bad programming technique.
For one, you can't extend from two classes anyways. if you have multiple class that use similar methods, just use an interface. Diamond-style hierarchy is known as the "diamond of death". Justin Fox |
|
#4
|
|||
|
|||
Re: JAVA questions I encountered during an interviewbut if you wanted to know how many copies of a class is made, or restrict them, you would just have a static int and just increment that int on each init() of the object.
JAVA Code:
Justin Fox |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help With Recursive Functions | jonas12rena | C Programming Language | 1 | 31-Jul-2006 11:12 |
| Clueless about video cards, help please | ChicagoBearsFan | Computer Hardware Forum | 8 | 10-Apr-2006 09:49 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The