• Home   /  
  • Archive by category "1"

Java Assignments For Students

Java Programming Exercises, Practice, Solution

Java Exercises

Java is the foundation for virtually every type of networked application and is the global standard for developing and delivering embedded and mobile applications, games, Web-based content, and enterprise software. With more than 9 million developers worldwide, Java enables you to efficiently develop, deploy and use exciting applications and services.

The best way we learn anything is by practice and exercise questions. Here you have the opportunity to practice the Java programming language concepts by solving the exercises starting from basic to more complex exercises. A sample solution is provided for each exercise. It is recommended to do these exercises by yourself first before checking the solution.

Hope, these exercises help you to improve your Java programming coding skills. Currently, following sections are available, we are working hard to add more exercises .... Happy Coding!

Note: If you are not habituated with Java programming you can learn from the following :

More to Come !

Popularity of Programming Language
Worldwide, Mar 2018 compared to a year ago:

Source : http://pypl.github.io/PYPL.html

TIOBE Index for March 2018

Source : https://www.tiobe.com/tiobe-index/

List of Exercises with Solutions :

  • HTML CSS Exercises, Practice, Solution
  • JavaScript Exercises, Practice, Solution
  • jQuery Exercises, Practice, Solution
  • jQuery-UI Exercises, Practice, Solution
  • CoffeeScript Exercises, Practice, Solution
  • Twitter Bootstrap Exercises, Practice, Solution
  • C Programming Exercises, Practice, Solution
  • C# Sharp Programming Exercises, Practice, Solution
  • PHP Exercises, Practice, Solution
  • Python Exercises, Practice, Solution
  • Java Exercises, Practice, Solution
  • SQL Exercises, Practice, Solution
  • MySQL Exercises, Practice, Solution
  • PostgreSQL Exercises, Practice, Solution
  • SQLite Exercises, Practice, Solution
  • MongoDB Exercises, Practice, Solution
  • Euler Project

[ Want to contribute to Java exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com. Please avoid copyrighted materials.]

Java for students

Java is a popular and widely used programming language. It was originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems’ Java platform. The language’s syntax has much in common with C and C++, but its object model is simpler and has less low-level facilities. Undoubtedly, one of Java’s strong points is an automatic memory management. The developer determines when objects are created, but it’s a runtime task to free memory, when objects are no longer in use.

Java is a good choice for students, either studying computer science or related subjects. Here we present a collection of Java tutorials helping students to get started with the language, setup a development environment and master the basics.

Java tutorials

  1. Setting up Eclipse: Java’s popular IDE
  2. Hello world program line by line
  3. Variables, types, loops, if statement
  4. Practice. Developing "number guessing game" step by step
  1. True/false, boolean type, logical connectives
  2. Strings
  3. Switch statement
  4. Practice. Menu-driven "bank account" application

Code snippets

  1. Hello world
  2. Number guessing game
  3. Strings comparison
  4. Sum of digits of a number
  5. Convert String to int and int to String
  6. Print command-line arguments
  7. Switch-operated text menu
  8. Decimal to binary converter

Algorithms and data structures

One can not imagine modern programming language, like Java, without integrated algorithms and data structures. Java has extensive utilities library (java.util), which contains hundreds of algorithms and data structures. But it is still important to have basic knowledge on the subject and general ideas of how things work. We would recommend the following resource on the subject: algorithms and data structures. It gives illustrated explanations of many algorithms and data structures. Articles are supplemented with implementations in Java and C++. You might start with the quicksort article to learn the most popular sorting algorithm, applied in practice.


  • Java homework help

    Get quick assistance with your programming homework.

  • Linguazza.com

    The ultimate English language navigator: search words and phrases, see related entities, topic distribution and much more.

One thought on “Java Assignments For Students

Leave a comment

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *