From 655e235e62dce65e28abea0c0015ff92a10ac06f Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Wed, 30 Mar 2022 12:00:01 -0400 Subject: [PATCH] Update for 30-03-22 12:00 --- tech/Java.wiki | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/tech/Java.wiki b/tech/Java.wiki index 0db4998..dfbe09d 100644 --- a/tech/Java.wiki +++ b/tech/Java.wiki @@ -5,11 +5,33 @@ can run on almost anything. == Data structures == -| C++ DS | Java DS | Notes | -| Vector | ArrayList | Threadsafe | -| Vector | Vector | Not threadsafe; deprecated | -| Deque | Deque | | -| List | ArrayList | Both linked lists | -| +| C++ DS | Java DS | Notes | +| Vector | ArrayList | Threadsafe | +| Vector | Vector | Not threadsafe; deprecated | +| Deque | Deque | | +| List | ArrayList | Both linked lists | +| Map | TreeMap | Red-black tree | +| Set | TreeSet | Red-black tree | +| unordered_set | Hashset | Hashtable | +| unordered_map | Hashmap | Non blocking but race conditions can occour | +| unordered_map | Hashtable | Threadsafe but blocking; deprecated | + + + + +== Classes == + +=== Constructor === + +{{{ + public class MyClass{ + public MyClass(){ + //constructor code here + } + + + } + }}} +