0% found this document useful (0 votes)
13 views

2023 Course Based Internship Format

The document discusses a Java programming certification course that provides beginners with a solid foundation in Java. It covers key Java concepts and techniques through hands-on learning and exercises to build confidence and skills for a career in software development. The course modules teach topics like data types, operators, control structures, object-oriented programming, memory management, and more.

Uploaded by

rakata4583
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

2023 Course Based Internship Format

The document discusses a Java programming certification course that provides beginners with a solid foundation in Java. It covers key Java concepts and techniques through hands-on learning and exercises to build confidence and skills for a career in software development. The course modules teach topics like data types, operators, control structures, object-oriented programming, memory management, and more.

Uploaded by

rakata4583
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 52

SYMBIOSIS UNIVERSITY OF APPLIED SCIENCES

INDORE

An INTERNSHIP REPORT
(Based on certificate course completion)

ON

“Learn Programming with Java - An Interactive Way”

Submitted to “Symbiosis University of Applied Sciences, Indore


As an Internship report for the partial fulfillment of the award of degree of

BACHELOR OF TECHNOLOGY
IN
SCHOOL OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

Submitted To: Submitted By:


Mentor name: Dr. Indrajeet Kumar Student Name: Prem Sharma
Mr. Ankit Saxena Enrollment No.: 2021BTCS010
Designation: Assistant Professor
SYMBIOSIS UNIVERSITY OF APPLIED SCIENCES
INDORE

CERTIFICATE

This is to certify that the Certification Course entitled “Learn Programming with Java - An
Interactive Way”, completed by Prem Sharma, student of 2 nd year towards partial fulfillment of
the degree of Bachelor of Technology in School of Computer Science and Information
Technology in year 2025 Symbiosis University of Applied Sciences , Indore (M.P.). It is a
bonafide record of the work carried by Prem Sharma, during the academic semester 4th

Place: Indore (M.P.)


Date: 18.09 .2023

INTERNAL EXAMINER EXTERNAL EXAMINER


SYMBIOSIS UNIVERSITY OF APPLIED SCIENCES
INDORE

Student Undertaking
I hereby undertake that the course entitled “Learn Programming with Java - An Interactive
Way” has been completed by me from the period 20th June 2023 to 17th August 2023 and the
report so prepared is a record of my learnings during course duration. I further declare that I
have completed the certification course in accordance with the Summer Training / Internship
policy of the University. This report is submitted towards fulfillment of my academic
requirement and not for any other purpose.

I hereby undertake that the material of this report is my own learning and I have not copied
anything from anywhere else. The material obtained from other sources has been duly
acknowledged. I understand that if at any stage, it is found that I have indulged in any
malpractice or the certificate of completion is obtained using any unfair means by me, the
university shall cancel my degree/withhold my result and appropriate disciplinary action shall
be initiated against me.

Prem Sharma
Student Name and Signature Mentor Name & Signature
Enrollment Number: 2021BTCS010
Name of
School: School
of Computer
Science and
Information
Technology
Date:

Head of School Name & Signature


(Dr, Neha Gupta)
SYMBIOSIS UNIVERSITY OF APPLIED SCIENCES
INDORE

ACKNOWLEDGEMENT

The successful completion of any work is generally not an individual effort. It is an


outcome of dedicated and cumulative efforts of a number of persons, each having its own
importance to the objective. This section is a value of thanks and gratitude towards all those
persons who have implicitly or explicitly contributed in their own unique way towards the
completion of the project. For their invaluable comments and suggestions, I wish to thank them
all.
Positive inspiration and right guidance are must in every aspect of life. Especially, when
we arrive at academic stage for instance. For the success of our project a number of obligations
have been taken. We have performed solemn duty of expressing a heartfelt thanks to all who
have endowed us with their precious perpetual guidance, suggestions and information. Any kind
of help directly or indirectly has proved importance to us.

Student Signature
SYMBIOSIS UNIVERSITY OF APPLIED SCIENCES
INDORE

ABSTRACT

Introduction:
The Java Programming certification course offered by Infosys Springboard is designed to
provide beginners with a solid foundation in Java programming. Whether you're new to coding
or looking to expand your skillset, this course equips you with the fundamental concepts and
techniques required to start building Java applications. With a focus on hands-on learning and
practical exercises, you'll gain confidence in your programming abilities and prepare for a
successful career in software development.

Body:
The course begins with a foundational introduction to Java, highlighting its importance in the
realm of programming. Participants will swiftly progress to comprehend data representation,
grasping the nuances of data types, variables, and memory management. Building on this,
learners will dive into programming basics, gaining proficiency in fundamental constructs and
syntax that underpin Java.
The journey continues with an exploration of operators, elucidating the role of arithmetic,
relational, and logical operators in Java programming. Participants will gain insights into type
conversion, a critical aspect of programming languages. The course then delves into control
structures, enabling learners to master decision-making and looping mechanisms.
A pivotal turning point arrives with an introduction to object-oriented programming (OOP).
Learners will unravel the core tenets of OOP and how they shape Java's structure. This
knowledge lays the groundwork for comprehending methods, constructors, and the 'this'
keyword, empowering participants to craft well-structured and organized code.
Memory management and encapsulation follow, shedding light on memory allocation and best
practices for data hiding and security. The course then ventures into practical applications, such
as working with strings and arrays, and harnessing the power of static elements.
As the course progresses, learners will unravel the intricacies of class relationships through
aggregation, association, and inheritance. The concept of polymorphism is demystified,
showcasing its role in flexible and extensible code design. The course also covers essential topics
like exceptions, packages, access modifiers, and unit testing – vital skills for producing reliable
and robust code.

Conclusion:
The Certification Course in Java from Infosys Springboard serves as an essential launching pad
for individuals aspiring to become proficient Java programmers. Through a comprehensive and
structured curriculum, participants will gain a deep understanding of Java's core elements,
enabling them to build reliable, efficient, and well-structured applications. With a strong
emphasis on hands-on practice and real-world application, this course empowers learners to
confidently embark on their journey into the world of Java programming, equipped with a solid
foundation and the skills necessary to excel in software development.
CONTENTS

Chapter 1: INTRODUCTION
1.1 Introduction of the course
1.1.1 Name of the course
1.1.2 Awarding organization
1.1.3 Course outline
1.1.4 Overview of training outcome
1.1.5 Assessment procedure

Chapter 2: COURSE MODULES OF INTERNSHIP


2.1 Module 1
2.2 Module 2
…..

Chapter 3: ASSIGNEMENTS AND ASSESSMENTS


3.1 Assignment 1 – Problem statement, Solution, Assessment and conclusion
3.2 Assignment 2 – Problem statement, Solution, Assessment and conclusion
……

Chapter 4: PROJECTS AND CASE STUDIES


Chapter 5: Attendance Report (In terms of number of hours, assignments and tests attended)

Chapter 6: CONCLUSION (Anticipatory approach)

Chapter 7: Learning Outcome

APPENDIX: (as applicable)

BIBLIOGRAPHY AND REFERENCE (as applicable)

Chapter 1
INTRODUCTION
1.2 Introduction of the course
The Java Programming certification course offered by Infosys Springboard is designed to
provide beginners with a solid foundation in Java programming. Whether you're new to coding
or looking to expand your skillset, this course equips you with the fundamental concepts and
techniques required to start building Java applications. With a focus on hands-on learning and
practical exercises, you'll gain confidence in your programming abilities and prepare for a
successful career in software development.

1.2.1 Name of the course


“Learn Programming with Java - An Interactive Way”
In this course there are many modules for our guidance which will help in gain the
knowledge about java language like,
What is Java?

Java is a high-level, general-purpose, object-oriented, and secure programming language developed by


James Gosling at Sun Microsystems, Inc. in 1991. It is formally known as OAK. In 1995, Sun
Microsystem changed the name to Java. In 2009, Sun Microsystem takeover by Oracle Corporation.

Features of Java

 Simple: Java is a simple language because its syntax is simple, clean, and easy to understand.
Complex and ambiguous concepts of C++ are either eliminated or re-implemented in Java. For
example, pointer and operator overloading are not used in Java.

 Object-Oriented: In Java, everything is in the form of the object. It means it has some data and
behavior. A program must have at least one class and object.

 Robust: Java makes an effort to check error at run time and compile time. It uses a strong
memory management system called garbage collector. Exception handling and garbage collection
features make it strong.
 Secure: Java is a secure programming language because it has no explicit pointer and programs
runs in the virtual machine. Java contains a security manager that defines the access of Java
classes.

 Platform-Independent: Java provides a guarantee that code writes once and run anywhere. This
byte code is platform-independent and can be run on any machine.

 Portable: Java Byte code can be carried to any platform. No implementation-dependent features.
Everything related to storage is predefined, for example, the size of primitive data types.

 High Performance: Java is an interpreted language. Java enables high performance with the use of
the Just-In-Time compiler.

 Distributed: Java also has networking facilities. It is designed for the distributed environment of
the internet because it supports TCP/IP protocol. It can run over the internet. EJB and RMI are
used to create a distributed system.

 Multi-threaded: Java also supports multi-threading. It means to handle more than one job a time.

Data Types in Java


Data types specify the different sizes and values that can be stored in the variable. There
are two types of data types in Java:

Primitive data types: The primitive data types include boolean, char, byte, short, int, long,
float and double.
Non-primitive data types: The non-primitive data types include Classes, Interfaces, and
Arrays.
Java Primitive Data Types
In Java language, primitive data types are the building blocks of data manipulation. These
are the most basic data types available in Java language.
There are 8 types of primitive data types:

boolean data type


byte data type
char data type
short data type
int data type
long data type
float data type
double data type
 Boolean Data Type
The Boolean data type is used to store only two possible values: true and false. This data
type is used for simple flags that track true/false conditions.

The Boolean data type specifies one bit of information, but its "size" can't be defined
precisely.

Example:
Boolean one = false

 Byte Data Type


The byte data type is an example of primitive data type. It isan 8-bit signed two's
complement integer. Its value-range lies between -128 to 127 (inclusive). Its minimum
value is -128 and maximum value is 127. Its default value is 0.
The byte data type is used to save memory in large arrays where the memory savings is
most required. It saves space because a byte is 4 times smaller than an integer. It can also
be used in place of "int" data type.

Example:
byte a = 10, byte b = -20

 Short Data Type


The short data type is a 16-bit signed two's complement integer. Its value-range lies
between -32,768 to 32,767 (inclusive). Its minimum value is -32,768 and maximum value
is 32,767. Its default value is 0.

The short data type can also be used to save memory just like byte data type. A short data
type is 2 times smaller than an integer.

Example:
short s = 10000, short r = -5000

 Int Data Type


The int data type is a 32-bit signed two's complement integer. Its value-range lies
between - 2,147,483,648 (-2^31) to 2,147,483,647 (2^31 -1) (inclusive). Its minimum
value is - 2,147,483,648and maximum value is 2,147,483,647. Its default value is 0.

The int data type is generally used as a default data type for integral values unless if there
is no problem about memory.

Example:
int a = 100000, int b = -200000

 Long Data Type


The long data type is a 64-bit two's complement integer. Its value-range lies between -
9,223,372,036,854,775,808(-2^63) to 9,223,372,036,854,775,807(2^63 -1)(inclusive). Its
minimum value is - 9,223,372,036,854,775,808and maximum value is
9,223,372,036,854,775,807. Its default value is 0. The long data type is used when you
need a range of values more than those provided by int.

Example:
long a = 100000L, long b = -200000L

 Float Data Type


The float data type is a single-precision 32-bit IEEE 754 floating point.Its value range is
unlimited. It is recommended to use a float (instead of double) if you need to save
memory in large arrays of floating point numbers. The float data type should never be
used for precise values, such as currency. Its default value is 0.0F.

Example:
float f1 = 234.5f

 Double Data Type


The double data type is a double-precision 64-bit IEEE 754 floating point. Its value range
is unlimited. The double data type is generally used for decimal values just like float. The
double data type also should never be used for precise values, such as currency. Its
default value is 0.0d.

Example:
double d1 = 12.3

 Char Data Type


The char data type is a single 16-bit Unicode character. Its value-range lies between '\
u0000' (or 0) to '\uffff' (or 65,535 inclusive).The char data type is used to store characters.
Example:
char letterA = 'A'

Operators in Java
Operator in Java is a symbol that is used to perform operations. For example: +, -, *, / etc.
There are many types of operators in Java which are given below:

 Unary Operator
 Arithmetic Operator
 Shift Operator
 Relational Operator
 Bitwise Operator
 Logical Operator
 Ternary Operator
 Assignment Operator

Java Operator Precedence


Java Unary Operator
The Java unary operators require only one operand. Unary operators are used to perform
various operations i.e.:

incrementing/decrementing a value by one


negating an expression
inverting the value of a boolean
Java Unary Operator Example: ++ and --
public class OperatorExample{
public static void main(String args[]){
int x=10;
System.out.println(x++);//10 (11)
System.out.println(++x);//12
System.out.println(x--);//12 (11)
System.out.println(--x);//10
}}
Output:

10
12
12
10
Java Unary Operator Example 2: ++ and --
public class OperatorExample{
public static void main(String args[]){
int a=10;
int b=10;
System.out.println(a++ + ++a);//10+12=22
System.out.println(b++ + b++);//10+11=21

}}
Output:

22
21
Java Unary Operator Example: ~ and !
public class OperatorExample{
public static void main(String args[]){
int a=10;
int b=-10;
boolean c=true;
boolean d=false;
System.out.println(~a);//-11 (minus of total positive value which starts from 0)
System.out.println(~b);//9 (positive of total minus, positive starts from 0)
System.out.println(!c);//false (opposite of boolean value)
System.out.println(!d);//true
}}
Output:

-11
9
false
true

Java Arithmetic Operators


Java arithmetic operators are used to perform addition, subtraction, multiplication, and
division. They act as basic mathematical operations.

Java Arithmetic Operator Example


public class OperatorExample{
public static void main(String args[]){
int a=10;
int b=5;
System.out.println(a+b);//15
System.out.println(a-b);//5
System.out.println(a*b);//50
System.out.println(a/b);//2
System.out.println(a%b);//0
}}
Output:
15
5
50
2
0
Java Arithmetic Operator Example: Expression
public class OperatorExample{
public static void main(String args[]){
System.out.println(10*10/5+3-1*4/2);
}}
Output:
21

Java Left Shift Operator


The Java left shift operator << is used to shift all of the bits in a value to the left side of a
specified number of times.

Java Left Shift Operator Example


public class OperatorExample{
public static void main(String args[]){
System.out.println(10<<2);//10*2^2=10*4=40
System.out.println(10<<3);//10*2^3=10*8=80
System.out.println(20<<2);//20*2^2=20*4=80
System.out.println(15<<4);//15*2^4=15*16=240
}}
Output:

40
80
80
240
Java Right Shift Operator
The Java right shift operator >> is used to move the value of the left operand to right by
the number of bits specified by the right operand.

Java Right Shift Operator Example


public OperatorExample{
public static void main(String args[]){
System.out.println(10>>2);//10/2^2=10/4=2
System.out.println(20>>2);//20/2^2=20/4=5
System.out.println(20>>3);//20/2^3=20/8=2
}}
Output:

2
5
2
Java Shift Operator Example: >> vs >>>
public class OperatorExample{
public static void main(String args[]){
//For positive number, >> and >>> works same
System.out.println(20>>2);
System.out.println(20>>>2);
//For negative number, >>> changes parity bit (MSB) to 0
System.out.println(-20>>2);
System.out.println(-20>>>2);
}}
Output:

5
5
-5
1073741819

Java AND Operator Example: Logical && and Bitwise &


The logical && operator doesn't check the second condition if the first condition is false.
It checks the second condition only if the first one is true.

The bitwise & operator always checks both conditions whether first condition is true or
false.

public class OperatorExample{


public static void main(String args[]){
int a=10;
int b=5;
int c=20;
System.out.println(a<b&&a<c);//false && true = false
System.out.println(a<b&a<c);//false & true = false
}}
Output:

false
false
Java AND Operator Example: Logical && vs Bitwise &
public class OperatorExample{
public static void main(String args[]){
int a=10;
int b=5;
int c=20;
System.out.println(a<b&&a++<c);//false && true = false
System.out.println(a);//10 because second condition is not checked
System.out.println(a<b&a++<c);//false && true = false
System.out.println(a);//11 because second condition is checked
}}
Output:

false
10
false
11

Java OR Operator Example: Logical || and Bitwise |


The logical || operator doesn't check the second condition if the first condition is true. It
checks the second condition only if the first one is false.

The bitwise | operator always checks both conditions whether first condition is true or
false.

public class OperatorExample{


public static void main(String args[]){
int a=10;
int b=5;
int c=20;
System.out.println(a>b||a<c);//true || true = true
System.out.println(a>b|a<c);//true | true = true
//|| vs |
System.out.println(a>b||a++<c);//true || true = true
System.out.println(a);//10 because second condition is not checked
System.out.println(a>b|a++<c);//true | true = true
System.out.println(a);//11 because second condition is checked
}}
Output:

true
true
true
10
true
11

Java Ternary Operator


Java Ternary operator is used as one line replacement for if-then-else statement and used
a lot in Java programming. It is the only conditional operator which takes three operands.

Java Ternary Operator Example


public class OperatorExample{
public static void main(String args[]){
int a=2;
int b=5;
int min=(a<b)?a:b;
System.out.println(min);
}}
Output:
2

Java Control Statements | Control Flow in Java


Java compiler executes the code from top to bottom. The statements in the code are
executed according to the order in which they appear. However, Java provides statements
that can be used to control the flow of Java code. Such statements are called control flow
statements. It is one of the fundamental features of Java, which provides a smooth flow of
program.

Java provides three types of control flow statements.

1) Decision Making statements


 if statements
 switch statement

2) Loop statements
 do while loop
 while loop
 for loop
 for-each loop
3) Jump statements
 break statement
 continue statement

OOPs (Object-Oriented Programming System)


Object means a real-world entity such as a pen, chair, table, computer, watch, etc. Object-
Oriented Programming is a methodology or paradigm to design a program using classes and
objects. It simplifies software development and maintenance by providing some concepts:

 Object
 Class
 Inheritance
 Polymorphism
 Abstraction
 Encapsulation
Object

Any entity that has state and behavior is known as an object. For example, a chair, pen, table, keyboard,
bike, etc. It can be physical or logical.

An Object can be defined as an instance of a class. An object contains an address and takes up some space
in memory. Objects can communicate without knowing the details of each other's data or code. The only
necessary thing is the type of message accepted and the type of response returned by the objects.

Example: A dog is an object because it has states like color, name, breed, etc. as well as behaviors like
wagging the tail, barking, eating, etc.
Class

Collection of objects is called class. It is a logical entity.

A class can also be defined as a blueprint from which you can create an individual object. Class doesn't
consume any space.

Inheritance

When one object acquires all the properties and behaviors of a parent object, it is known as inheritance. It
provides code reusability. It is used to achieve runtime polymorphism.

Polymorphism in Java

Polymorphism

If one task is performed in different ways, it is known as polymorphism. For example: to convince the
customer differently, to draw something, for example, shape, triangle, rectangle, etc.

In Java, we use method overloading and method overriding to achieve polymorphism.


Another example can be to speak something; for example, a cat speaks meow, dog barks woof, etc.

Abstraction

Hiding internal details and showing functionality is known as abstraction. For example phone call, we
don't know the internal processing.

In Java, we use abstract class and interface to achieve abstraction.

Encapsulation in Java OOPs Concepts

Encapsulation

Binding (or wrapping) code and data together into a single unit are known as encapsulation. For example,
a capsule, it is wrapped with different medicines.

A java class is the example of encapsulation. Java bean is the fully encapsulated class because all the data
members are private here.

Method in Java

In general, a method is a way to perform some task. Similarly, the method in Java is a collection of
instructions that performs a specific task. It provides the reusability of code. We can also easily modify
code using methods. In this section, we will learn what is a method in Java, types of methods, method
declaration, and how to call a method in Java.

What is a method in Java?

A method is a block of code or collection of statements or a set of code grouped together to perform a
certain task or operation. It is used to achieve the reusability of code. We write a method once and use it
many times. We do not require to write code again and again. It also provides the easy modification and
readability of code, just by adding or removing a chunk of code. The method is executed only when we
call or invoke it.

Method Declaration
The method declaration provides information about method attributes, such as visibility, return-type,
name, and arguments. It has six components that are known as method header, as we have shown in the
following figure.

Method in Java

Method Signature: Every method has a method signature. It is a part of the method declaration. It
includes the method name and parameter list.

Access Specifier: Access specifier or modifier is the access type of the method. It specifies the visibility
of the method. Java provides four types of access specifier:

Public: The method is accessible by all classes when we use public specifier in our application.

Private: When we use a private access specifier, the method is accessible only in the classes in which it is
defined.

Protected: When we use protected access specifier, the method is accessible within the same package or
subclasses in a different package.

Default: When we do not use any access specifier in the method declaration, Java uses default access
specifier by default. It is visible only from the same package only.
Return Type: Return type is a data type that the method returns. It may have a primitive data type,
object, collection, void, etc. If the method does not return anything, we use void keyword.

Constructors in Java

In Java, a constructor is a block of codes similar to the method. It is called when an instance of the class is
created. At the time of calling constructor, memory for the object is allocated in the memory.

It is a special type of method which is used to initialize the object.

Every time an object is created using the new() keyword, at least one constructor is called.

It calls a default constructor if there is no constructor available in the class. In such case, Java compiler
provides a default constructor by default.

There are two types of constructors in Java: no-arg constructor, and parameterized constructor.

Rules for creating Java constructor

There are two rules defined for the constructor.

 Constructor name must be the same as its class name


 A Constructor must have no explicit return type
 A Java constructor cannot be abstract, static, final, and synchronized

Types of Java constructors

There are two types of constructors in Java:

1. Default constructor (no-arg constructor)


2. Parameterized constructor
Inheritance in Java

Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a
parent object. It is an important part of OOPs (Object Oriented programming system).

The idea behind inheritance in Java is that you can create new classes that are built upon existing classes.
When you inherit from an existing class, you can reuse methods and fields of the parent class. Moreover,
you can add new methods and fields in your current class also.

Inheritance represents the IS-A relationship which is also known as a parent-child relationship.

Why use inheritance in java


 For Method Overriding (so runtime polymorphism can be achieved).
 For Code Reusability.
Terms used in Inheritance
Class: A class is a group of objects which have common properties. It is a template or blueprint
from which objects are created.
Sub Class/ Class Child: Subclass is a class which inherits the other class. It is also called a
derived class, extended class, or child class.
Super Class/Parent Class: Superclass is the class from where a subclass inherits the features. It
is also called a base class or a parent class.
Reusability: As the name specifies, reusability is a mechanism which facilitates you to reuse the
fields and methods of the existing class when you create a new class. You can use the same
fields and methods already defined in the previous class.

Method Overloading in Java


If a class has multiple methods having same name but different in parameters, it is known as Method
Overloading.

If we have to perform only one operation, having same name of the methods increases the readability of
the program.

Suppose you have to perform addition of the given numbers but there can be any number of arguments,
if you write the method such as a(int,int) for two parameters, and b(int,int,int) for three parameters
then it may be difficult for you as well as other programmers to understand the behavior of the method
because its name differs

Final Keyword in Java

The final keyword in java is used to restrict the user. The java final keyword can be used in many
context. Final can be:

 variable
 method
 class

The final keyword can be applied with the variables, a final variable that have no value it is
called blank final variable or uninitialized final variable. It can be initialized in the
constructor only. The blank final variable can be static also which will be initialized in the
static block only. We will have detailed learning of these. Let's first learn the basics of final
keyword.

1) Java final variable


If you make any variable as final, you cannot change the value of final variable(It will be
constant).

Example of final variable


There is a final variable speedlimit, we are going to change the value of this variable, but
It can't be changed because final variable once assigned a value can never be changed.

class Bike9{
final int speedlimit=90;//final variable
void run(){
speedlimit=400;
}
public static void main(String args[]){
Bike9 obj=new Bike9();
obj.run();
}
}//end of class
2) Super Keyword in Java

The super keyword in Java is a reference variable which is used to refer immediate parent class object.

Whenever you create the instance of subclass, an instance of parent class is created implicitly which is
referred by super reference variable.

Usage of Java super Keyword

super can be used to refer immediate parent class instance variable.

super can be used to invoke immediate parent class method.

super() can be used to invoke immediate parent class constructor.

1) super is used to refer immediate parent class instance variable.


We can use super keyword to access the data member or field of parent class. It is used if parent class
and child class have same fields.

class Animal{

String color="white";

class Dog extends Animal{

String color="black";

void printColor(){

System.out.println(color);//prints color of Dog class

System.out.println(super.color);//prints color of Animal class

class TestSuper1{

public static void main(String args[]){

Dog d=new Dog();

d.printColor();

}}

2) super can be used to invoke parent class method


The super keyword can also be used to invoke parent class method. It should be used if
subclass contains the same method as parent class. In other words, it is used if method is
overridden.

class Animal{
void eat(){System.out.println("eating...");}
}
class Dog extends Animal{
void eat(){System.out.println("eating bread...");}
void bark(){System.out.println("barking...");}
void work(){
super.eat();
bark();
}
}
class TestSuper2{
public static void main(String args[]){
Dog d=new Dog();
d.work();
}}

3) super is used to invoke parent class constructor.


The super keyword can also be used to invoke the parent class constructor. Let's see a
simple example:

class Animal{
Animal(){System.out.println("animal is created");}
}
class Dog extends Animal{
Dog(){
super();
System.out.println("dog is created");
}
}
class TestSuper3{
public static void main(String args[]){
Dog d=new Dog();
}}
this keyword in Java
There can be a lot of usage of Java this keyword. In Java, this is a reference variable that
refers to the current object.

Usage of Java this keyword


Here is given the 6 usage of java this keyword.

 this can be used to refer current class instance variable.


 this can be used to invoke current class method (implicitly)
 this() can be used to invoke current class constructor.
 this can be passed as an argument in the method call.
 this can be passed as argument in the constructor call.
 this can be used to return the current class instance from the method.
1) this: to refer current class instance variable
The this keyword can be used to refer current class instance variable. If there is ambiguity
between the instance variables and parameters, this keyword resolves the problem of ambiguity.

Understanding the problem without this keyword


Let's understand the problem if we don't use this keyword by the example given below:

class Student{
int rollno;
String name;
float fee;
Student(int rollno,String name,float fee){
rollno=rollno;
name=name;
fee=fee;
}
void display(){System.out.println(rollno+" "+name+" "+fee);}
}
class TestThis1{
public static void main(String args[]){
Student s1=new Student(111,"ankit",5000f);
Student s2=new Student(112,"sumit",6000f);
s1.display();
s2.display();
}}

Java static keyword


The static keyword in Java is used for memory management mainly. We can apply static
keyword with variables, methods, blocks and nested classes. The static keyword belongs to the
class than an instance of the class.

The static can be:

Variable (also known as a class variable)


Method (also known as a class method)
Block
Nested class
Static in Java
1) Java static variable
 If you declare any variable as static, it is known as a static variable.
 The static variable can be used to refer to the common property of all objects (which is
not unique for each object), for example, the company name of employees, college name
of students, etc.
 The static variable gets memory only once in the class area at the time of class loading.
Advantages of static variable

It makes your program memory efficient (i.e., it saves memory).

Understanding the problem without static variable


class Student{
int rollno;
String name;
String college="ITS";
}

Example of static variable


//Java Program to demonstrate the use of static variable
class Student{
int rollno;//instance variable
String name;
static String college ="ITS";//static variable
//constructor
Student(int r, String n){
rollno = r;
name = n;
}
//method to display the values
void display (){System.out.println(rollno+" "+name+" "+college);}
}
//Test class to show the values of objects
public class TestStaticVariable1{
public static void main(String args[]){
Student s1 = new Student(111,"Karan");
Student s2 = new Student(222,"Aryan");
//we can change the college of all objects by the single line of code
//Student.college="BBDIT";
s1.display();
s2.display();
}
}

1.2.2 Awarding organization


“Infosys Springboard”
Infosys Springboard is a flagship intervention to empower people, communities, and society. Through
this initiative, Infosys plans to empower over 10 million learners with digital and life skills by 2025.
Infosys Springboard is powered by Infosys Wingspan, our integrated digital learning and collaboration
platform and includes learning content developed by Infosys and leading content providers, spanning
digital and emerging technologies and life skills.

1.2.3 Course outline


1) Getting Started
Introduction to Java and its significance in programming.

2) Data Representation
Understanding data types, variables, and memory allocation.

3) Programming Basics
Learning fundamental programming constructs and syntax.

4) Operators
Exploring arithmetic, relational, and logical operators.

5) Type Conversion
Understanding implicit and explicit type conversions.

6) Control Structures
Mastering decision-making and looping constructs.

7) Introduction to Object-Oriented Programming


Grasping OOP concepts and principles.

8) Methods
Defining and utilizing methods for code modularity.

9) Constructors
Exploring constructor types and initialization.

10) this Keyword


Understanding the 'this' reference and its use.

11) Memory Management


Delving into memory allocation and garbage collection.

12) Encapsulation
Learning to encapsulate data for better code organization.

13) String
Manipulating and working with string data.

14) Arrays
Mastering array creation, manipulation, and traversal.
15) Static
Exploring static variables and methods.

16) Aggregation & Association


Understanding relationships between classes.

17) Inheritance
Implementing class inheritance and its significance.

18) Polymorphism
Grasping the concept of polymorphism and method overriding.

19) Objects and Wrapper Classes


Utilizing objects and wrapper classes for enhanced functionality.

20) final Keyword


Exploring the 'final' modifier and its applications.

21) Abstract
Understanding abstract classes and methods.

22) Interface
Implementing interfaces for class interaction.

23) Exception
Handling exceptions and error scenarios.

24) Package
Organizing code using packages.
25) Access Modifiers
Managing class and method visibility.

26) Unit Testing & Code Coverage


Introduction to unit testing and assessing code coverage.

27) Recursion
Implementing recursive algorithms
.
28) Regular Expression
Using regular expressions for pattern matching

1.2.4 Overview of training outcome


Provide insights into basics of programming Introduce fundamentals of Java
programming Discuss the various control structures in Java Provide insights into basics
of object-oriented programming Introduce class and objects Discuss Encapsulation and
need for encapsulation Introduce static attributes and methods in Java Discuss how to
build a robust Java code Introduce various class Relationships Provide insights into
Inheritance and their types Introduce abstract class and methods Discuss how to handle
custom exceptions using exception handling Introduce the need for packages Discuss
recursion and regular expression.

1.2.5 Assessment procedure


There is a assessment at the end of the course which consists of 10 question and the time
given for this assessment is 10 min. In this assessment there are basic question which you
have learned in the course. After clearing the assessment you will achieve the certificate.

Chapter 2
COURSE MODULES OF INTERNSHIP

2.1 Module 1
1) Getting Started
Introduction to Java and its significance in programming.
2.2 Module 2
2) Data Representation
Understanding data types, variables, and memory allocation.
2.3 Module 3
3) Programming Basics
Learning fundamental programming constructs and syntax.
2.4 Module 4
4) Operators
Exploring arithmetic, relational, and logical operators.
2.5 Module 5
5) Type Conversion
Understanding implicit and explicit type conversions.
2.6 Module 6
6) Control Structures
Mastering decision-making and looping constructs.
2.7 Module 7
7) Introduction to Object-Oriented Programming
Grasping OOP concepts and principles.
2.8 Module 8
8) Methods
Defining and utilizing methods for code modularity.
2.9 Module 9
9) Constructors
Exploring constructor types and initialization.
2.10 Module 10
10) this Keyword
Understanding the 'this' reference and its use.
2.11 Module 11
11) Memory Management
Delving into memory allocation and garbage collection.
2.12 Module 12
12) Encapsulation
Learning to encapsulate data for better code organization.
2.13 Module 13
13) String
Manipulating and working with string data.
2.14 Module 14
14) Arrays
Mastering array creation, manipulation, and traversal.
2.15 Module 15
15) Static
Exploring static variables and methods.
2.16 Module 16
16) Aggregation & Association
Understanding relationships between classes.
2.17 Module 17
17) Inheritance
Implementing class inheritance and its significance.
2.18 Module18
18) Polymorphism
Grasping the concept of polymorphism and method overriding.
2.19 Module 19
19) Objects and Wrapper Classes
Utilizing objects and wrapper classes for enhanced functionality.
2.20 Module 20
20) final Keyword
Exploring the 'final' modifier and its applications.
2.21 Module 21
21) Abstract
Understanding abstract classes and methods.
2.22 Module 22
22) Interface
Implementing interfaces for class interaction.
2.23 Module 23
23) Exception
Handling exceptions and error scenarios.
2.24 Module 24
24) Package
Organizing code using packages.
2.25 Module 25
25) Access Modifiers
Managing class and method visibility.
2.26 Module 26
26) Unit Testing & Code Coverage
Introduction to unit testing and assessing code coverage.
2.27 Module 27
27) Recursion
Implementing recursive algorithms
.2.28 Module 28
28) Regular Expression
Using regular expressions for pattern matching

Chapter 3
ASSIGNEMENTS AND ASSESSMENTS

3.1 Assignment 1
Chapter 4
PROJECTS AND CASE STUDIES

Here are a few case studies that highlight the use of Java in different domains:

1. Android App Development: Java has been a primary language for developing Android
applications. Many popular apps on the Google Play Store, such as WhatsApp, Instagram, and
Evernote, have been developed using Java. Android provides a robust framework and SDK for
Java developers to create feature-rich and interactive mobile applications.

2. Financial Services and Banking: Java is widely used in the financial industry for developing
trading platforms, risk management systems, and banking applications. For example, the London
Stock Exchange's TradElect system, which handles millions of transactions daily, is built using
Java technologies.
3. Enterprise Software: Java is often used for building large-scale enterprise applications. An
example is the SAP Customer Relationship Management (CRM) software, which uses Java for
its backend infrastructure to manage customer interactions, sales, and marketing processes.

4. E-commerce Platforms: Java powers many e-commerce platforms, such as eBay and Amazon.
These platforms require robust and scalable systems to handle high traffic, transactions, and user
interactions.

5. Healthcare Information Systems: Java is used in healthcare for creating electronic health
records (EHR) systems, medical imaging applications, and telemedicine platforms. These
applications need to ensure data security, privacy, and compliance with healthcare regulations.

6. Aerospace and Aviation: Java is used in the aerospace industry for various purposes, including
flight control systems, avionics software, and satellite communication. NASA's Mission Control
Center software, for instance, employs Java technologies.

7. Gaming: Java is used in game development, particularly for mobile and web-based games.
Minecraft, one of the best-selling video games of all time, is developed using Java.

8. Internet of Things (IoT): Java is used in IoT applications for managing and connecting
devices. It provides a platform for developing applications that collect, process, and analyze data
from sensors and devices. For example, Philips' Hue smart lighting system is powered by Java.

9. Scientific and Research Application: Java is used in scientific research for simulations, data
analysis, and visualization. Bioinformatics tools, weather prediction systems, and computational
biology applications often utilize Java's capabilities.

10. Educational Platforms: Java is commonly used for developing educational software and
platforms. Learning management systems (LMS), online course platforms, and interactive
educational tools often leverage Java for their development.
These case studies demonstrate the versatility and wide range of applications for Java in various
industries and domains.

Chapter 5
Attendance Report (In terms of number of hours, assignments and tests attended)

The course “Learn Programming with Java - An Interactive Way” was of 79 hours 36 mins
There were quizzes in every module which make the course interesting and at last after
completing the course there was a assessment at the end which included all the related question
which was covered in the course and was of 10 minutes and there were 10 questions.
Chapter 6
CONCLUSION

In conclusion, embarking on the certification course from Infosys Springboard titled "Learning
Program with Java: An Interactive Way" can offer a highly rewarding and enriching educational
experience. This comprehensive program provides participants with a unique opportunity to
master the Java programming language through an interactive and engaging learning approach.

Throughout the course, participants are exposed to a structured curriculum that covers the
fundamental concepts of Java programming, ranging from syntax and data structures to object-
oriented programming and application development. The interactive nature of the program,
which may include hands-on coding exercises, real-world projects, and collaborative learning
environments, ensures that learners not only grasp theoretical knowledge but also develop
practical skills that are essential for success in the field.
Furthermore, the affiliation with Infosys Springboard adds a significant layer of credibility to the
certification, as Infosys is a renowned leader in the technology industry. Completing this
certification can potentially open doors to a variety of career opportunities, ranging from
software development to systems architecture, where Java expertise is highly sought after.

By enrolling in this program, learners are not only investing in their professional growth but also
gaining access to a community of like-minded peers, experienced instructors, and valuable
resources. The skills acquired through this certification can serve as a solid foundation for further
learning and specialization in the realm of Java programming or related fields.

In a rapidly evolving technological landscape, staying updated and acquiring relevant skills is
paramount. The "Learning Program with Java: An Interactive Way" from Infosys Springboard
equips participants with the knowledge and expertise needed to thrive in the world of
programming and software development. As a result, taking part in this certification course can
be a transformative step toward a successful and fulfilling career journey in the realm of Java
programming.

Chapter 7
Learning Outcome

BIBLIOGRAPHY AND REFERENCE


1) Google
https://www.google.com/
2) Javatpoint
https://www.javatpoint.com/
3) W3School
https://www.w3schools.com/

You might also like