If I run the following program, which parses two date strings referencing times one second apart and compares them: public static void main(String[]
Continue ReadingIs Java “Pass-by-Reference” or “Pass-by-Value”?
I always thought Java was pass-by-reference; however I’ve seen a couple of blog posts (for example, this blog) that claim it’s not. I don’t thin
Continue ReadingBest Quant Data Sources
Best Quant Data Sources Economic Data World OECD.StatExtracts includes data and metadata for OECD countries and selected non-member economies.
Continue ReadingWhy Is Char[] Preferred Over String for Passwords?
In Swing, the password field has a getPassword() (returns char[]) method instead of the usual getText() (returns String) method. Similarly, I have com
Continue ReadingImprove INSERT-per-second performance of SQLite?
Optimizing SQLite is tricky. Bulk-insert performance of a C application can vary from 85 inserts-per-second to over 96 000 inserts-per-second! Back
Continue ReadingC++: Binary Search Tree Insertion
void insert(Node*& root, int data) { if (!root){ root = new Node(data); } else if (data < root->data){ insert(root->left,
Continue ReadingWith C arrays, why is it the case that a[5] == 5[a]?
As Joel points out in Stack Overflow podcast #34, in C Programming Language (aka: K & R), there is mention of this property of arrays in C: a[5] =
Continue ReadingBest C Questions
[pt_view id="73f49b1b41"]
Continue ReadingDifferences Between HashMap and Hashtable?
What are the differences between a HashMap and a Hashtable in Java? Which is more efficient for non-threaded applications? dmanxiii Answer: Th
Continue ReadingC++: When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?
What are the proper uses of: static_cast dynamic_cast const_cast reinterpret_cast C-style cast (type)value Function-style cast typ
Continue Reading




