Faculties from U.P., Haryana, Punjab, Chandigarh and Delhi can apply for scholarship. LEARN MORE

Select Your Style

Choose your layout

Color scheme

Java – A Practical Approach

Java – A Practical Approach

Java – A Practical Approach

About the course

E & ICT Academy introduces an online course on Java Programming. The objective of this course is to provide a practical approach to Java programming. This course covers the insights of Java programming well supported by a practical implementation of concepts. The course lectures are demonstrated through videos which will create a virtual classroom environment for participants. The participant taking this course will get well versed with basic programming concepts including Object oriented programming, which is the critical part of Java programming. Taking this course will develop a self-confidence in the participant to create a console based Java application.

The faculty members taking this course can impart their knowledge and learn to the students, to the fellow teachers and train them in Java Programming.

Pre-requisites for learning Java Programming

  1. You should have a 32-bit system where you can install the runtime environment or IDE.
  2. You should also have knowledge of basic programming concepts like variables, data-types functions etc.
  3. Knowledge of Object Oriented Programming concepts (OOPs) is Must.
  4. If you know C++ or any other Object Oriented Programming Language, it’ll be very easy for you to learn Java.

1. Installing The JDK

In order to begin with programming in Java, you need to have Java installed in your system. Java is also known as JDK (Java Development Kit). This lesson attempts to cover the detailed instructions to install JDK 8.0 in Windows. After the Java installation, you’ll need to set the environment variables, which has been covered in this lesson as well.

2. Using Exercise File

This lesson will help you to download the source code that has been included in this course for your reference. You’ll get the detailed instructions to download the exercise files and unzip them to any location of your choice and use them for practice purpose.

3. Running a Java Program

This lesson covers in detail, how to write your first Java program, which is technically a Hello World program. You’ll learn how to write the first program in Java using a very common windows text editor called as notepad++, then compile that program using command prompt followed by running the same program to get the output as Hello World.

4. Command Line Argument

This lesson covers the details of how you can display the command line arguments by providing them at runtime. You’ll learn about the significance of String args[] in this lesson and how you can get the command line argument displayed on the console when you run your Java program.

5. Downloading Eclipse

You need to install Java to do any Java programming on your system; however it could be very tedious task to compile and run the program each time using command prompt. So, you can make your task easy by using an Integrated Development Environment or IDE. This lesson will cover the detailed procedure of downloading and installing a famous Java IDE known as Eclipse. The latest version which is Oxygen has been taken for the demonstration in this course. After the installation is complete, you’ll learn to create a project in Eclipse.

6. Hello India

This lesson covers the details of creating, compiling, and executing your first java program using the Eclipse IDE. You’ll learn to create a Java class and write your first Java program followed by running that program on eclipse and displaying Hello India on console.

7. Variables

This lesson will deal with variables. Variables are defined on basis of predefined data types, classes and user define datatypes. Variables in Java can be defined anywhere in the code (inside a class, inside a method or as a method argument) and can have different modifiers. Depending on these conditions variables in Java are Instance Variable, Static Variable, Local Variable, and Method Parameter. An instance variable is associated with an instance of the class (also called object). Access works with these objects. Instance variables can have any access control and can be marked final or transient. Instance variables marked as final cannot be changed after a value has been assigned to them.

8. Getting User Input

This lesson attempts to cover the details of getting input from the user. If you want to accept input from the user to perform any operations, that can be done by using the Scanner class which belongs to the package java.util. In order to use this class, you need to import it and after importing it, you can create an instance of this class which allows you to accept input from the user.

9. Building a Basic Calculator

This lesson will cover the implementation of input from the user to build a simple calculator. You’ll learn to build an application which will enable the user to enter a couple of numbers and perform a simple addition of two numbers and display the result of addition of two numbers on the console.

10. Math Operators

This lesson will cover the implementation of mathematical operators to perform different mathematical operations. These operators are + for addition, - for subtraction, * for multiplication, / for division and % for remainder.

11. Increment Operators

This lesson will cover the increment operators. The increment operators increment the value of the variable by one. They are defined in two types of notations which are prefix and postfix notations. Like increment operators, there are decrement operators as well, these decrease the value of the variable by one and follow the same notations as increment operators. Apart from these, you’ll also learn about the assignment operators in this lesson.

12. If Statement

This lesson will cover the conditional statement known as if-else statement. An if-else statement is used to implement a condition in the program. The if statement contains a condition which is evaluated, and when the condition is true, statement in the code block of if statement is executed. Otherwise, when the condition is false, the statement inside the code block of else statement is executed. You’ll learn in detail the syntax and implementation of if-else statement in this lesson.

13. Logical Operators

This lesson will cover the logical operators. Logical operators are also sometimes referred to as “Boolean operator”. In Java programming, logical operators are those operators which return a Boolean result that is based on the Boolean result of one or two other expressions. These expressions which make use of the logical operators are referred to as “compound expressions” because the effect of the logical operators is to let you combine two or more condition tests into a single expression. Statement is known as if-else statement. An if-else statement is used to implement a condition in the program. The if statement contains a condition which is evaluated, and when the condition is true, statement in the code.

14. Switch Statement

This lesson covers the details of implementing a switch statement in a program. A switch statement allows a variable to be tested for equality against a list of values. Each of these values is referred to as case, the variable which is switched on is evaluated for each case.

15. While Loop

This lesson will cover the details of implementing a while loop. A loop statement allows us to execute a statement or group of statements multiple. A while loop is a repetition control structure that allows you to write a block of code which is executed until a specific condition evaluates to false. This is also a common loop used to iterate a part of the program several times. If the number of iteration is not fixed, it is recommended to use while loop.

16. Using Multiple Classes

This lesson will cover the details of using more than one class in an existing project or. In earlier lessons, the entire work was done using a simple class named ICT, however, you’ll learn to add more than one classes in the project along with the benefits of using multiple classes which is very significant when dealing with a bigger project which consists of different modules.

17. Use Methods with Parameters

This lesson will cover the details of using methods. In Java, a method is referred to as a collection of executable statements which are combined together to perform a desired operation. For example, if you invoke the method println() of System.out class, then the system actually executes several statements in order to display a message on the console. Methods are of two types, parameterized and non-parameterized, where the former accepts no arguments and the latter accepts arguments. You’ll learn to create your own methods with or without return values, invoke a method with or without parameters, and apply method abstraction in the program design.

18. Many Methods and Instances

This lesson will cover something called method overloading. In earlier lesson you learned about methods and creating your own methods. Method overloading is the concept in Java which allows you to create more than one versions of the same method, but different from each other in terms of the arguments that they accept and they could be different in terms of the return types as well. You’ll learn to create multiple methods and you’ll also learn to invoke these methods using different instances of the same class.

19. Constructors

This lesson will cover all about constructors. A constructor in Java is a block of code which is same as a method which is invoked when the instance of an object is created. However, there are some differences between a constructor and method. The first difference is that a constructor doesn’t have a return type and the constructor always has the same name as the name of the class. Unlike methods, constructors are not considered members of a class and a constructor is called automatically when a new instance of an object is created.

20. Nested If Statements

This lesson will cover all about Nested-If statement. In Java or any other programming language, when the if or if-else statement is embedded inside another if block or else block, then this is referred to as nested-if statement. In this lesson, you’ll learn to implement the nested if statement in your code with the help of a demonstration.

21. Else If Statement

This lesson will cover all about Else-If statement. In Java or any other programming language, the else-if statement is statement is used to implement multiple decisions which is not possible in case of traditional if-else statement which is limited to only a couple of decisions. You can combine an else and an if to make an else if and test a whole range of mutually exclusive possibilities.

22. Conditional Operators

This lesson will cover all about conditional operators. In Java, the conditional operator is also referred to as ternary operator, which is the only operator that takes three operands. Java conditional operator is a one liner replacement for if-else statement and used very frequently by the Java programmers to implement conditions in a single line. You can make use conditional operator to replace switch also.

23. Simple Averaging Program

This lesson will implement the learning of earlier lessons here and will cover the details by demonstrating a simple program to calculate the average of ten inputs which are given by the user and display the average of these inputs on the console. The program will make use of the Scanner class to take inputs from the user and will also use mathematical operators for computing the sum and average of these ten inputs from the user and display the output on the console.

24. For Loops

This lesson will cover the details of for loop. A loop statement allows you to execute a statement or group of statements multiple times and, for loop is the most widely used loop in Java and all other programming languages to iterate a part of the program several times. If the number of iteration is fixed, it is recommended to use for loop.

25. Compound Interest Program

This lesson will demonstrate the simple program to calculate the number of subscribers which are added per day at a specific rate. This program is similar to a program which computes the compound interest on a specific amount after a fixed period of time at a specific rate and it uses the same expression to calculate the number of subscribers added on a daily basis.

26. Do While Loops

This lesson will cover the details of do-while loop which is also another type of loop used in Java and other programming languages. The do-while loop is used to iterate a part of the program several times. If the number of iteration is not fixed and you must have to execute the loop at least once, it is recommended to use do-while loop.

27. Math Class Methods

This lesson will cover the different methods which belong to Math class in Java and are capable of performing some desired mathematical operations. Complex mathematical operations can be performed by simply calling the methods of the Math class which is a built in class in Java. Some of the popular methods of this class are abs(), ceil(), floor(), max(), min(), pow(), sqrt() etc. You’ll learn to implement these methods in your code in order to produce the desired output.

28. Random Number Generator

This lesson will deal with something called a random number, which can be generated easily in Java using the Random class which is a built-in class in Java. The random class in Java belongs to the package java.util and can be imported in your program. You’ll learn to create the object of the Random class and through that object, you’ll be able to generate random numbers.

29. Introduction to Arrays

This lesson will cover in detail about the arrays. Arrays are very important in every programming language. The Java array is a collection of similar type data elements which are stored in continuous memory locations. However, only fixed set of elements can be stored in array. You’ll learn to declare and initialize an array and you’ll also learn to display the elements of the array by using the loops.

30. Creating An Array Table

This lesson will cover more details of the arrays and how you can display the array elements in a tabular form which will have a table header where the element will be displayed on the console with the corresponding index in the form of a table. You’ll learn to create the array table step by step in this lesson.

31. Summing Elements of Arrays

This lesson will cover further details of the arrays. If you want to perform certain operations with the arrays, these can be done very easily, these operations can be like adding the array elements together and displaying the sum of these elements. In this lesson, you’ll learn to add the array elements together by looping through the array using a loop and then adding these array elements and displaying the sum of these elements together.

32. Array Elements As Counters

This lesson will cover in the detail, how you can use the array elements to display the count of occurrence of any particular number. In this lesson, you’ll get a scenario to roll a dice 1000 times and then count the frequency of occurrences of numbers which will appear on the dice each time when it is rolled. This program will make use of the array as well as the random number generator which you’ve learned in earlier lesson.

33. Enhanced For Loop

This lesson will cover in the detail a different type of loop which is an enhanced for loop. This loop is also known as for-each loop. The enhanced for-loop is a popular feature introduced with the Java SE platform in version 5.0. It has a simple structure allows you to simplify code by presenting for-loops that visit each element of an array/collection without explicitly expressing how you go from element to element.

34. Arrays in Methods

This lesson will cover how arrays can be used in methods as well. In earlier lessons, you’ve already covered about the methods in detail. In this lesson, you’ll learn to create a method which will accept an array as an argument and increment each element of the array by a fixed number, then you’ll learn to invoke this method to see the desired output.

35. Multidimensional Arrays

This lesson will cover in detail about the multi-dimensional arrays. I earlier lessons, you’ve already learned about the arrays, which are very important in every programming language. The Java array is a collection of similar type data elements which are stored in continuous memory locations. The arrays are categorized as Single dimensional arrays and multidimensional arrays. Multidimensional arrays are 2D, 3D, 4D arrays etc. You’ll learn to declare and initialize a 2D array in this lesson and you’ll also learn to access the elements of the multi-dimensional array by using the loop.

36. Table for Multi Arrays

This lesson will cover in detail about representing the elements of the two dimensional array in the form of a table. You’ll learn to create an array and display the elements of array in tabular form with the help of some basic formatting which you can do easily.

37. Variable Length Arguments

This lesson will cover all about variable length arguments. When you create a method, you set it in such a way that it accepts certain parameters which can be passed while invoking the method. These parameters or arguments are fixed. However, when you aren’t sure about how many arguments you wish to pass in the method, then you declare a method which is set to accept variable length arguments. This is done by simply putting three dots in between the datatype and the identifier. In this lesson, you’ll learn to implement this in detail.

38. Time Class

This lesson will cover all about the time class. In order to display the time in 24 hour format or military format, you can build your application to display the time in the desired format. In this lesson, you’ll learn this in detail, how you can build an application which allows you to set the time and display the same time in 24 hour format or military format.

39. Display Regular time

This lesson will be covering further what has been covered in previous chapter. You’ll learn to build your application to display the time in 12 hour format or the regular format. As done in earlier lesson, you’ll be allowed to set the time and display the same time in 12 hour format or regular format.

40. Public, Private and this

This lesson will cover the details of the keywords Public, Private and this. The public and private keywords are also referred to as the access modifiers which allow access to the class, fields and methods. You’ll learn in detail about these keywords and you’ll also learn about their practical implementation.

41. Multiple Constructors

In earlier lesson, you learned about method overloading. This lesson will cover something called constructor overloading. Constructor overloading is the concept in Java which allows you to create more than one versions of the same constructor, but different from each other in terms of the arguments that they accept. In this lesson, you’ll learn to create multiple constructors and you’ll also learn to call these constructor methods.

42. Set and Get Methods

This lesson will cover something called getters and setters. Getters and Setters are also known as Get and Set methods in Java which help in achieving encapsulation which is an important concept of Object Oriented Programming. In Java, getter and setter are two conventional methods that are used for retrieving and updating value of a variable. If you want that the fields which are declared in the class remain unmodified by the other users, these can fields can only be accessed through the methods, then getters and setters are created to restrict access to the fields of the class. In this lesson, you’ll learn to create the getters and setters.

43. Building Objects for Constructors

In earlier lesson, you learned about something called as constructor overloading, in which you created multiple copies of the constructor. However, different in terms of the arguments that they accept. In order to access these copies of constructors, you’ll need separate objects which call respective constructor methods. This lesson will cover in detail, how you can create objects for these multiple constructors. In this lesson, you’ll learn to build these objects in detail.

44. toString

This lesson will cover the details of a built-in method of each and every class which is known as the toString() method. This method returns the string representation of the object. If you print any object, java compiler internally calls the toString() method on the object. In order to get the desired output, you can also override this method. In this lesson, you’ll learn to override this method to get the string displayed in the desired format.

45. Composition

This lesson will cover Composition which is an interesting and tricky topic in Java. Composition in java is the design technique to implement has-a relationship in classes. You can use java inheritance or Object composition in java for code reuse. Java composition is achieved by using instance variables that refers to other objects. In this lesson, you’ll learn to implement the concept of composition in detail.

Q1. Who is our Instructor?

Ans. All our instructors are domain experts from the Industry or are from world-renowned academic Institutes and have at least 10-12 yrs of relevant experience in their domains. They are subject matter experts and are trained by E & ICT Academy for providing online training so that participants get a great learning experience.

Q2. What are the payment options?

Ans. You can pay by Credit Card, Debit Card or Net Banking from all the leading banks. We use a SBI Payment Gateway. Additionally, you may send us a cheque with appropriate details or use wire transfer.

Q3. How to get my queries resolved?

Ans. You can email us at ict@iitk.ac.in

Q4. What internet speed is required to attend the LIVE classes?

Ans. 1Mbps of internet speed is recommended to attend the LIVE classes. However, we have seen people attending the classes from a much slower internet.

Q5. How soon after signing up would I get access to the learning content?

Ans. As soon as your payment is verified, you will immediately get access to our course content in the form of a complete set of previous class recordings, PPTs, PDFs and assignments. You can start learning right away.

Q6. What are the system requirements?

Ans. Your system should have a 4GB RAM, a processor better than core 2 duo and operating system can be of 32bit or 64 bit.

Q7. Will Windows system work?

Ans. Yes, to work on Android on your Windows, you must install Java Development Kit (JDK) & Android Studio on your Windows Machine.

Q8. What are the prerequisites to start learning Mobile Computing?

Ans. You must have basic working knowledge of Java. Please check prerequisite.

Create Your Account

Click on 'Register' link on the menu bar

Registration is required for course enrollment and scholarship request.

Check Your Email Inbox

Click on activation link in the email

You will get an activation link in the mail. Click on it and follow the instructions to complete your registration.

Login to Your Account

Click on 'Login' link on the menu bar

Login with your username and password. You will be redirected to your dashboard.

Browse Courses

Click on 'Courses' link on the menu bar

You can browse available courses from Home Page or by clicking Courses link on menu bar. Navigating to a course will give you two options: 1.Direct Enrollment 2. Scholarship Enrollment

Scholarship Enrollment

Click on 'Scholarship Enrollment' in the course

Logged in user can fill their details in the 'Scholarship Application' available in each course.

We will mail you further details after processing your application based on your academic and professional record.

Note:
1. Click on 'login' link and enter your username and password. or
2. Click on 'Register' link for registering on our website.

Scholarship Eligibility:
1. Faculties from the states of Haryana, Punjab and U.P. and U.T.s of Chandigarh and Delhi are eligible for partial or full scholarship.
2. Also the candidates belonging to SC / ST category can also avail full scholarship of Rs. 12,500(You need to submit SC / ST certificate in a format prescribed by the Central Govt. :
https://www.iitk.ac.in/doaa/admissions/sc-st.pdf).

Direct Enrollment

Click on 'Direct Enrollment ' in the course

After processing your scholarship request, we will send you the necessary details.

You can directly enroll for the course by clicking on ‘Direct Enrollment’, if you do not require scholarship.

Please Login or Register to fill the Scholarship form.

Scholarship Application

Under Graduate

Post Graduate

Ph.D.

Category

Other Information

+

*CGPA to percentage conversion formula:

Equivalent Percentage = CGPA obtained X 9.5 X (10/CGPA Scale)
Example: If CGPA obtained is 8.00 on the scale of 10, then Equivalent
percentage will be 8.00 X 9.5 X (10/10) = 76%,
or If CGPA is 3.7 out of 4, then Equivalent percentage will be 3.7 X 9.5 X (10/4) = 87.88%

Disclaimer:

We urge you to provide correct information to your best knowledge. Certificates will be withheld if found that you have misrepresented any data / information.

Lessons

  1. Installing The JDK

  2. Using Exercise File

  3. Running a Java Program

  4. Command Line Argument

  5. Downloading Eclipse

  6. Hello India

  7. Variables

  8. Getting User Input

  9. Building a Basic Calculator

  10. Math Operators

  11. Increment Operators

  12. If Statement

  13. Logical Operators

  14. Switch Statement

  15. While Loop

  16. Using Multiple Classes

  17. Use Methods with Parameters

  18. Many Methods and Instances

  19. Constructors

  20. Nested If Statements

  21. Else If Statement

  22. Conditional Operators

  23. Simple Averaging Program

  24. For Loops

  25. Compound Interest Program

  26. Do While Loops

  27. Math Class Methods

  28. Random Number Generator

  29. Introduction to Arrays

  30. Creating An Array Table

  31. Summing Elements of Arrays

  32. Array Elements As Counters

  33. Enhanced For Loop

  34. Arrays in Methods

  35. Multidimensional Arrays

  36. Table for Multi Arrays

  37. Variable Length Arguments

  38. Time Class

  39. Display Regular time

  40. Public, Private and this

  41. Multiple Constructors

  42. Set and Get Methods

  43. Building Objects for Constructors

  44. toString

  45. Composition