Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

chat bot project ppt, Summaries of Computer Science

this is the ppt of all about chat bot

Typology: Summaries

2020/2021

Uploaded on 11/25/2021

authentic-world
authentic-world 🇮🇳

5

(1)

1 document

1 / 69

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45

Partial preview of the text

Download chat bot project ppt and more Summaries Computer Science in PDF only on Docsity!

REPORT FOR

INDUSTRIAL TRAINING

On

CORE JAVA

At

Internsala, Scholiverse Educare Pvt. Ltd

B-610, Unitech Business Zone Golf Course Extension Road,

Nirvana Country, South City II, Sector 50, Gurugram, Haryana 122018

Submitted By:

Ashok Kumar Roy

E.N:

B.Tech(CSE)

5

th

Semester

Date: 30 December,

Submitted To:

Department of Computer

Science and Engineering,

School of Technology,

A P Goyal Shimla

University

ACKNOWLEDGEMENT

It is a great privilege to express my sincere gratitude and thanks to my revered superior Sarvesh

Agrawal, CEO- Internsala, Scholiverse Educare Pvt. Ltd. I am fortunate to have the

opportunity to work under such a trusted, dynamic, eminent supervisor whose generous attitude has provided me the zeal to work hard.

I feel obliged to Mr Sriyank Siddhartha, for her kind permission to carry out

training in the mentioned organization.

It gives me pleasure to extend my thanks to all faculty members of C.S.E.

department, my colleagues and all those who provided their kind and timely

support to make this training period a success.

Dated: 30/12/2020 Ashok Kumar Roy

E.N. 18001468

B.Tech.(C.S.E.),

th

Semester

A P Goyal Shimla University

    1. Feasibility Study…………………………………………………………..…. S. No. Topic Page No
    • 1.1 What is Java………………………………………………………… - 1.1.3 Types of Java Application……………………………….… - 1.1.4 Java Platforms / Editions………………………………….. - 1.1.5 History of Java……………………………………………… - 1.2.1 C++ vs Java………………………………………………….
      • 1.2 How to set path in Java……………………………………………. - 1.2.1 How to set Temporary Path of JDK in Windows………… - 1.2.2 How to set Permanent Path of JDK in Windows…............. - 1.2.3 Setting up IntelliJ IDEA……………………………………. - 1.2.4 Configure IntelliJ IDEA……………………………………. - 1.2.5 Understanding first java program…………………………. - 1.2.6 How Java Code Run Internally…………………………….. - 1.2.7 How many ways can we write a java program……………. - 1.3 What happens at runtime………………………………………….. - 1.3.1 Difference between JDK, JRE and JVM…………………..
    1. Variables and Data Types in Java………………………………………….... - 2.1 Data Types in Java…………………………………………………… - 2.2 Operators in java……………………………………………………… - 2.2.1 Java Operator Precedence …………………………………….. - 2.2.2 Java If-else Statement……………………………………….. - 2.2.3 Java IF Statement……………………………………………. - 2.2.4 Java IF-else Statement………………………………………. - 2.2.5 Java IF-else-if ladder Statement……………………………. - 2.2.6 Java Switch Statement………………………………………. - 2.2.7 Java For Loop………………………………………………... - 2.2.8 While Loop…………………………………………………… - 2.2.9 do-while Loop………………………………………………… - 2.3 Array in Java………………………………………………………… - 2.3.1 1D Array(One Dimensional Array)…………………………… - 2.3.2 2D Array(Two Dimensional Array)………………………….. - 2.3.3 Method’s and Function In Java……………………………….. - 2.3.4 Method Callinz…………………………………………………. - 2.3.4 Method Calling…………………………………………………. - 2.3.6 Java OOPs Concepts…………………………………………… - 2.3.7 Concept Of Class and Object…………………………………... - 2.3.8 Inheritance ……………………………………………………… - 2.3.9 Polymorphism……………………………………………………
      • 2.4 Method Overriding……………………………………………………
        • 2.4.1 Java Exceptions ………………………………………………
        • 2.4.2 Java try and catch…………………………………………….
        • 2.4.3 Types of Exception in Java…………………………………..
        • 2.4.4 The abstract keyword………………………………………....
        • 2.4.5 Abstract Class…………………………………………………
        • 2.4.6 Interface………………………………………………………..
        • abstract and interface………………………………………………. 2.4.7 Aim:Write a Java program which explains the concept of
        • 2.4.8 ArrayList in Jav……………………………………………….
        • 2.4.9 Java HashMap…………………………………………………
    • 2.5 HashMap class declaration……………………………………………. - 2.5.1 File Handelling In Java………………………………………... - 2.5.2 Reading and Writing Files…………………………………….. - 2.5.3 FileOutputStream……………………………………………… - 2.5.4 Java Naming conventions……………………………………...
    1. Project Work………………………………………………………………………………
    1. Conclusion………………………………………………………………………………….
  • 5.. Reference……………………………………………………………………………………

ABOUT THE ORGANISATION

Internshala is a dot com business with the heart of dot org_._ We are a technology company on a mission to equip students with relevant skills & practical exposure through internships and online trainings. Imagine a world full of freedom and possibilities. A world where you can discover your passion and turn it into your career. A world where your practical skills matter more than your university degree. A world where you do not have to wait till 21 to taste your first work experience (and get a rude shock that it is nothing like you had imagine it to be). A world where you graduate fully assured, fully confident, and fully prepared to stake claim on your place in the world. Internshala is an internship and online training platform, based in Gurgaon, India. Founded by Sarvesh Agrawal, an IIT Madras alumnus, in 2010, the website helps students find internships with organisations in India. In August 2016, Telangana's not-for-profit organisation, Telangana Academy for Skill and Knowledge partnered with Internshala to help students with internship resources and career services.In September 2016, Team Indus, Google XPRIZE shortlisted entity has partnered with Internshala for college outreach for its initiative, Lab2Moon.

Their business verticals are:

Recruitment & StaffingSoftware Development and Testing ServicesDigital MarketingEnterprise MobilityCertifications & Trainings for Career ManagementSoftware solutions

THE VISION is to lead in the creation and delivery of innovative solutions and services that

enable our clients to win in the changing world of work.

THE TEAM has expertise ranging from design to development, training to placements and solutions to implementation. They combine this knowledge with proactive thinking and strategic

planning to approach new challenges with your overall business objectives in mind. Internshala

management team brings together a wealth of experience in both technological and

organizational development that is critical in helping the customers achieve their goals.

SYSTEM ANALYSIS

Prerequisite:

Before going through Core Java Training, candidate should have knowledge of given concepts listed below:

Tools:Intellij IDEAJDK

Duration: 6 Weeks

Course Structure:

 Feasibility Study  Introduction to Java  Features of Java  Setting up IntelliJ IDEA  JDK, JRE, JVM  Writing Simple Programs  Understanding First Java Program  Numeric Data Types and Operations  if Statements  Logical Operators  switch Statements  The while, do-while and for Loop

Methods

Objects and Classes

tructors

Inheritance and Polymorphism

orphism

Exception Handling -Handling Overview -Handling Advantages

Abstract Classes and Interfaces

bjects

Java Collections Framework

Arraylist The while, do-while and for Loop The while, do-while and for Loop

Hash Maps

An application that runs on the server side and creates dynamic page, is called web application. Currently, servlet, jsp, struts, jsf etc. technologies are used for creating web applications in java.

3) Enterprise Application. An application that is distributed in nature, such as banking applications etc. It has the advantage of high level security, load balancing and clustering. In java, EJB is used for creating enterprise applications. 4) Mobile Application An application that is created for mobile devices. Currently Android and Java ME are used for creating mobile applications.

1.1.4 Java Platforms / Editions

There are 4 platforms or editions of Java:

1) Java SE (Java Standard Edition) It is a java programming platform. It includes Java programming APIs such as java.lang, java.io, java.net, java.util, java.sql, java.math etc. It includes core topics like OOPs, String, Regex, Exception, Inner classes, Multithreading, I/O Stream, Networking, AWT, Swing, Reflection, Collection etc. 2) Java EE (Java Enterprise Edition) It is an enterprise platform which is mainly used to develop web and enterprise applications. It is built on the top of Java SE platform. It includes topics like Servlet, JSP, Web Services, EJB, JPA etc. 3) Java ME (Java Micro Edition) It is a micro platform which is mainly used to develop mobile applications. 4) JavaFx It is used to develop rich internet applications. It uses light-weight user interface API.

1.1.5 History of Java

Java history is interesting to know. The history of java starts from Green Team. Java team members (also known as Green Team), initiated a revolutionary task to develop a language for digital devices such as set-top boxes, televisions etc. For the green team members, it was an advance concept at that time. But, it was suited for internet programming. Later, Java technology as incorporated by Netscape.

Currently, Java is used in internet programming, mobile devices, games, e- business solutions etc. There are given the major points that describes the history of java.

  1. James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The small team of sun engineers called Green Team.
  2. Originally designed for small, embedded systems in electronic appliances like set-top boxes.
  3. Firstly, it was called "Greentalk" by James Gosling and file extension was .gt.

Fig 1.1.5 James Gosling

  1. After that, it was called Oak and was developed as a part of the Green project.

1.1.6 Why "Oak" name

  1. Why Oak? Oak is a symbol of strength and chosen as a national tree of many countries like U.S.A., France, Germany, Romania etc.
  2. In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies.

1.1.7 Why "Java" name

  1. Why had they chosen java name for java language? The team gathered to choose a new name. The suggested words were "dynamic", "revolutionary", "Silk", "jolt", "DNA" etc. They wanted something that reflected the essence of the technology: revolutionary, dynamic, lively, cool, unique, and easy to spell and fun to say. According to James Gosling "Java was one of the top choices along with Silk". Since java was so unique, most of the team members preferred java.
  2. Java is an island of Indonesia where first coffee was produced (called java coffee).
  3. Notice that Java is just a name not an acronym.
  4. Originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995.
  5. In 1995, Time magazine called Java one of the Ten Best Products of 1995.
  6. JDK 1.0 released in (January 23, 1996).

1.1.8 Java Version History

There are many java versions that has been released. Current stable release of Java is Java SE 8. JDK Alpha and Beta (1995) JDK 1.0 (23rd Jan, 1996) JDK 1.1 (19th Feb, 1997) J2SE 1.2 (8th Dec, 1998) J2SE 1.3 (8th May, 2000) J2SE 1.4 (6th Feb, 2002) J2SE 5.0 (30th Sep, 2004) Java SE 6 (11th Dec, 2006) Java SE 7 (28th July, 2011) Java SE 8 (18th March, 2014)

inheritance inheritance. through class. It can be achieved by interfaces in java.

Operator Overloading

C++ supports operator overloading.

Java doesn't support operator overloading.

Pointers C++ supports pointers. You can write pointer program in C++.

Java supports pointer internally. But you can't write the pointer program in java. It means java has restricted pointer support in java.

Compiler and Interpreter

C++ uses compiler only. Java uses compiler and interpreter both.

Call by Value and Call by reference

C++ supports both call by value and call by reference.

Java supports call by value only. There is no call by reference in java.

Structure and Union

C++ supports structures and unions.

Java doesn't support structures and unions.

Thread Support C++ doesn't have built-in support for threads. It relies on third-party libraries for thread support.

Java has built-in thread support.

Documentation comment

C++ doesn't support documentation comment.

Java supports documentation comment (/** ... */) to create documentation for java source code.

Virtual Keyword C++ supports virtual keyword so that we can decide whether or not override a function.

Java has no virtual keyword. We can override all non-static methods by default. In other words, non-static methods are virtual by default.

unsigned right shift

C++ doesn't support >>> operator.

Java supports unsigned right shift >>> operator that fills zero at the top for the negative numbers. For positive numbers, it works same like >> operator.

Inheritance Tree C++ creates a new inheritance tree always.

Java uses single inheritance tree always because all classes are the child of Object class in java. Object class is the root of inheritance tree in java.

 SYSTEM REQUIREMENT SPECIFICATION

For executing any java program, you need to o Install JDK. ( download from the following link)

http://www.oracle.com/technetwork/java/javase/downloads/index.html

o set path of the jdk/bin directory. o create the java program o compile and run the java program

1.2 How to set path in Java

The path is required to be set for using tools such as javac, java etc.

If you are saving the java source file inside the jdk/bin directory, path is not required to be set because all the tools will be available in the current directory.

But If you are having your java file outside the jdk/bin folder, it is necessary to set path of JDK.

There are 2 ways to set java path:

  1. temporary
  2. permanent

1.2.1 How to set Temporary Path of JDK in Windows

To set the temporary path of JDK, you need to follow following steps:

o Open command prompt o copy the path of jdk/bin directory o write in command prompt: set path=copied_path

For Example: set path=C:\Program Files\Java\jdk1.6.0_23\bin

 Click on (Configure > Project Defaults > Project)

 Select SDKs

 Add Java Development Kit

 Click + > JDK

 Note: Press Cmd+Shift+. to show hidden files in the file chooser dialog.

 Navigate to the JDK location. E.g.,

/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk on OSX.  Select the JDK folder  Add Android SDK  Click + > Android SDK  Note: Press Cmd+Shift+. to show hidden files in the file chooser dialog.

 Note: Press Cmd+Shift+. to show hidden files in the file chooser dialog.  Click OK

Creating hello java example

Let's create the hello java program:

class Simple{ public static void main(String args[]){ System.out.println("Hello Java"); } }

save this file as Simple.java

To compile: javac Simple.java To execute: java Simple

Output: Hello Java

1.2.5 Understanding first java program

Let's see what is the meaning of class, public, static, void, main, String[], System.out.println().

class keyword is used to declare a class in java.

public keyword is an access modifier which represents visibility, it means it is visible to all.

static is a keyword, if we declare any method as static, it is known as static method. The core advantage of static method is that there is no need to create object to invoke the static method. The main method is executed by the JVM, so it doesn't require to create object to invoke the main method. So it saves memory.

void is the return type of the method, it means it doesn't return any value.

main represents startup of the program.

String[] args is used for command line argument. We will learn it later.

System.out.println() is used print statement. We will learn about the internal working of