
Comprehensive Java Tutorial: Learn Java Programming from Scratch
Table of Content:
What is programming?
The term programming means to create (or develop) software, which is also called a program. Computer programs, known as software, are instructions that tell a computer what to do.
What is Java?
Java is an object oriented, simple, distributed, interpreted, robust, architecture neutral, portable, high performance, multithreaded, dynamic, powerful and versatile programming language originally developed by Sun Microsystems and released in 1995 for developing software running on the mobile device, desktop computer, and server.
About This Tutorial
This tutorial has been prepared for the beginners to help them understand the basic to advanced concepts of Java Programming language.
Prerequisites for This Tutorial
Java is related to C++, which is a direct descendant of C. Much of the character of Java is inherited from these two languages. From C, Java derives its syntax. Many of Java's object-oriented features were influenced by C++. In fact, several of Java's defining characteristics come from its predecessors (c and c++).
So our suggestion is that, to learn C OR C++ first then come back. if you will have the concepts any one of the language it will help you to understand the java quickly.
Is It Necessary to Learn C, C++ Before Java?
Well, the answer is a definite no. You do not need to learn C, C++ before Java. In fact, you can learn Java without any C, C++ knowledge at all. The two languages follow slightly different paradigms, have a different syntax and are used in different types of software development.
Target Audience
- Students who are pursuing BCA, MCA, B.E/B.Tech (CS/IT/EC/EE/ME/Civil/Any other discipline)
- Students who have "Java Programming" in their curriculum
- Candidates who wish to switch from service based companies to product based
- Candidates who want to continue their career as JAVA developer
- Candidates who are passionate about coding
- Assignment 1: Java program to extract words from a given sentence
- Assignment 2: Write a Java program to get the character (Unicode code point) at the given index within the String.
- Assignment 3: Write a Java program to get the character (Unicode code point) before the specified index within the String.
- Assignment 4: Write a java program to count a number of Unicode code points in the specified text range of a String.
- Assignment 5: Write a java program to compare two strings lexicographically.
- Assignment 6: Write a Java program to create a unique identifier of a given string.
- Assignment 7: Write a java program to get the length of a given string.
- Assignment 8: Write a Java program to create a character array containing the contents of a string.
- Assignment 9: Write a java program to compare two strings lexicographically, ignoring case differences.
- Assignment 10: Write a Java program to concatenate a given string to the end of another string.
- Assignment 11: Write a Java program to concatenate a given string to the end of another string.
- Assignment 12: Write a Java program to compare a given string to the specified character sequence.
- Assignment 13: Write a Java program to create a new String object with the contents of a character array.
- Assignment 14: Write a Java program to check whether a given string ends with the contents of another string.
- Assignment 15: Write a Java program to check whether two String objects contain the same data.
- Assignment 16: Write a Java program to compare a given string to another string, ignoring case considerations.
- Assignment 17: Write a java program to print current date and time in the specified format.
Current Date and Time :
June 19, 2017
3:13 pm - Assignment 18: Write a Java program to get the contents of a given string as a byte array.
- Assignment 19: Write a Java program to get the contents of a given string as a character array.
- Assignment 20: Write a Java program to get the index of all the characters of the alphabet.
Sample string of all alphabet: "The quick brown fox jumps over the lazy dog." - Assignment 21: Write a Java program to get the canonical representation of the string object.
- Assignment 22: Write a Java program to get the last index of a string within a string.
Sample string of all alphabet: "The quick brown fox jumps over the lazy dog." - Assignment 23: Write a Java program to find whether a region in the current string matches a region in another string.
- Assignment 24: Write a Java program to replace all the 'd' characters with 'f' characters.
- Assignment 25: Write a Java program to replace each substring of a given string that matches the given regular expression with the given replacement.
Sample string : "The quick brown fox jumps over the lazy dog."
In the above string replace all the fox with cat. - Assignment 26: Write a Java program to check whether a given string starts with the contents of another string.
- Assignment 27: Write a Java program to get a substring of a given string between two specified positions.
- Assignment 28: Write a Java program to convert all the characters in a string to lowercase.
- Assignment 29: Write a Java program to convert all the characters in a string to lowercase.
- Assignment 30: Write a Java program to convert all the characters in a string to uppercase.
- Assignment 31: Write a Java program to trim any leading or trailing whitespace from a given string.
- Assignment 32: Vowel Count using Java
- Assignment 33: Vowel Count and Consonant Count using Java
- Assignment 34: Vowel Count Consonant Count and Space Count in Java
- Assignment 35: Vowel count Consonant Count Space Count and Digit count using Java
- Assignment 36: classify a character as a letter, digit, or special symbol using Java
- Assignment 37: Count the number of letters, digits and special symbol using java program
- Assignment 38: check if a number is a perfect number in Java