Tags:Puzzles Questions | 109 views
problem: write the definition for this function without using any built-in functions. if pStr is null, return 0. if pStr contains non-numeric characters, either return 0 (ok) or return the number derived so far (better) (e.g. if its “123A”, then return 123). assume all numbers are positive. plus or minus signs can be considered non-numeric [...]
Tags:Puzzles Questions | 104 views
I don’t know if this is right or not, but it sounds pretty darn close to the best idea I’ve heard yet. From Brad Siemssen: “I assume these are made the same way designs are put in the center of taffy candies. The designs are made by taking advantage of the fact that [...]
Tags:JAVA Questions | 139 views
What are three ways in which a thread can enter the waiting state?Or What are different ways in which a thread can enter the waiting state? A thread can enter the waiting state by the following ways: 1. Invoking its sleep() method, 2. By blocking on I/O 3. By unsuccessfully attempting to acquire an object’s [...]
Tags:JAVA Questions | 339 views
What is the difference between Abstract class and Interface Or When should you use an abstract class, when an interface, when both? Or What is similarities/difference between an Abstract class and Interface? Or What is the difference between interface and an abstract class?1. Abstract class is a class which contain one or more abstract methods, [...]