JAVA EXAMPLE PROGRAMS

JAVA EXAMPLE PROGRAMS

Publish Your Article Here

Java Fundamentals


Description:

Here we are trying to give examples for java fundamentals like data types, java variables, static variables, static methods, static blocks, arrays, enum, wrapper classes, etc.

  1. Data Types
  2. Variables
  3. Static variables, methods and static block
  4. Java Static Import
  5. Arrays
  6. Java Loops
  7. Java Enum
  8. Java Integer Wrapper Class
  9. Java Boolean Wrapper Class
  10. Java Math Class Examples
  11. Java ProcessBuilder Class Examples
Knowledge Centre
Difference between Enumeration and Iterator
The functionality of Enumeration and the Iterator are same. You can get remove() from Iterator to remove an element, while while Enumeration does not have remove() method. Using Enumeration you can only traverse and fetch the objects, where as using Iterator we can also add and remove the objects. So Iterator can be useful if you want to manipulate the list and Enumeration is for read-only access.
Famous Quotations
Insanity: doing the same thing over and over again and expecting different results.
-- Albert Einstein

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] or you can comment on the page.

Most Visited Pages

Other Interesting Sites

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