Archive for the ‘J2EE Tutorials’ Category
- In: CSS Tutorials | How to's | HTML Tutorials | HTML5 Tutorials | IoT Tutorials | J2EE Tutorials | J2ME Tutorials | Java Tutorials | JavaScript Tutorials | NetBeans Tutorials | PHP Tutorials | Raspberry Pi Tutorials | Tips & Tricks | Video Tutorials
- Comments Off on How to change editor full screen in NetBeans IDE?
Objectives :
- How to change editor full screen in NetBeans IDE?
NetBeans IDE is having a new and great feature where we can full screen the code editor window.
This small video tutorial shows how to change editor full screen in NetBeans IDE?
Being a trainer, I need to share screen with code and sometime only code nothing else. This is one of the most useful feature for me while teaching Java technologies and UI technologies such as HTML5, CSS, JS, etc. This is why I love NetBeans IDE a lot.
Hope this tutorial is helpful for you as well.
- In: J2EE Tutorials | Java Tutorials
- Comments Off on 7 differences between HashMap and HashTable
Objectives:
- What is HashMap?
- What is HashMap in Java?
- What is HashTable?
- What is HashTable in Java?
- What are the differences between HashMap and HashTable?
- What are the differences between HashMap and HashTable in Java?
HashMap vs HashTable
1. HashMap is non-synchronized. HashTable is synchronized.
2. HashMap is not thread safe. HashTable is thread safe.
3. HashMap allows one null key and any number of null values while HashTable do not allow null keys and null values in HashTable Object.
4. HashMap object values are iterated using iterator. HashTable is only class other than Vector class which uses enumerator to iterate values of HashTable object.
5. The iterator in HashMap is fail-fast iterator while enumerator for HashTable is not.
6. HashMap is much faster and uses less memory than HashTable.
7. HashMap is subclass of AbstractMap class. HashTable is subclass of Dictionary class which is obsolete in 1.7 and not in use anymore.