JAVA EXAMPLE PROGRAMS

JAVA EXAMPLE PROGRAMS

Checkout for Promo Codes

Publish your article or example on Java2Novice.com

If you want to publish a java article or java example, please contact me at [email protected]

We will help you in the process of publishing your post and be a member of Java2Novice Team ;-)

And the best part is every post published and approved on java2novice.com is paid! The total amount you going to receive depends on quality of the post, but the important is - you always receives something for your job.


Below are some tips for get your post approved and published on Java2Novice.com:

  1. java2novice.com is a web site for java sample programs, an example with point to point description would be really great.
  2. Please, do not send duplicated content (i.e. cross-posted elsewhere). As every site on the web, we are interested in publishing original content.
  3. Organize your article in to smaller sections or examples.
  4. Write an example about any topic only if you really know about that.
  5. We reserve the right to make editorial changes to grammar and technical content.
  6. Once the article is published at java2novice.com, please do not republish it in another website.
  7. We will review all posts submitted and provide you feedback immediately.

Thank you so much for your interest in helping others.

Java2Novice Team

Knowledge Centre
When to use LinkedList or ArrayList?
Accessing elements are faster with ArrayList, because it is index based. But accessing is difficult with LinkedList. It is slow access. This is to access any element, you need to navigate through the elements one by one. But insertion and deletion is much faster with LinkedList, because if you know the node, just change the pointers before or after nodes. Insertion and deletion is slow with ArrayList, this is because, during these operations ArrayList need to adjust the indexes according to deletion or insetion if you are performing on middle indexes. Means, an ArrayList having 10 elements, if you are inserting at index 5, then you need to shift the indexes above 5 to one more.
Famous Quotations
It is amazing what you can accomplish if you do not care who gets the credit.
-- Harry Truman

About Author

I'm Nataraja Gootooru, programmer by profession and passionate about technologies. All examples given here are as simple as possible to help beginners. The source code is compiled and tested in my dev environment.

If you come across any mistakes or bugs, please email me to [email protected].

Most Visited Pages

Other Interesting Sites

Reference: Java™ Platform Standard Ed. 7 - API Specification | Java™ Platform Standard Ed. 8 - API Specification | Java is registered trademark of Oracle.
Privacy Policy | Copyright © 2020 by Nataraja Gootooru. All Rights Reserved.