SlideShare a Scribd company logo
1 of 20
POORNIMA INSTITUTE OF ENGINEERING
AND TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
A PRESENTATION ON THE TOPIC
“CORE JAVA”
FOR
INDUSTRIAL TRAINING(III SEMESTER)
SUBMITTED BY:
YASH KOOLWAL
SECTION:C(C2)
PIET18CS153
CS DEPARTMENT
SUBMITTED TO:
MR.AASHU SHARMA
Dr. RAKHI MUTHA
COMPANY PROFILE
Samyak Computers is a special education vehicle to provide the
expert and advance knowledge of today and tomorrow's IT industries
requirement. We provide the training with skills to understand the
topics and per second changing parameters of IT environment.
SERVICES-
•SOFTWARE PROGRAMMING LANGUAGES
•WEB DEVELOPMENT TRAINING
•BASIC COURSE TRAINING OF RSCIT,OFFICE AUTOMATION,DTP
The name of my trainer is Mr. Ranjeet Choudhary.
COMPANY PROFILE
Office Address:
62, Kalwar Rd, Near Brij Fracture Hospital, Shivpuri,
Sindhi Colony, Jhotwara, Jaipur, Rajasthan 302012
PHONE: 097722 71081
HISTORY OF JAVA
Java was conceived by James Gosling , Patrick Naughton ,
Chris Warth , Ed Frank and Mike Sheridan at Sun
Microsystems , inc. in 1991.
It took 18 months to develop the first working version. This
language was initially called “oak”, but was renamed
“Java” in 1995.
Later “oracle” took over Java.
WHAT IS JAVA?
 Java is a general-purpose, concurrent, class-based,
object-oriented Computer programming Language .
 It is intended to let application developers "write once,
run anywhere" (WORA)
 It is simple , portable , architecture-neutral and multi-
threaded.
OOP?
The Three OOP Principles
All object-oriented programming languages provide mechanisms that help you implement
the object-oriented model. They are encapsulation, inheritance, and polymorphism.
Class
is a user defined data type, which holds its own data members and member functions, which can be accessed and used
by creating an instance of that class.
Object
is an instance of class. It is real implementation of Class.
Encapsulation
Encapsulation is the mechanism that binds together code and the data it manipulates.
Inheritance
Inheritance is the process by which one object acquires the properties of another object.
Polymorphism
Polymorphism is a feature that allows one interface to be used a general class Of actions. The specific action is
determined by the exact nature of the situation.
FEATURES
• Simple
• Secure
• Portable
• Object-oriented
• Robust
• Multithreaded
• Architecture-neutral
• Interpreted
• High performance
• Distributed
• Dynamic
JAVA COMPILER
 Java’s compiler and editor are both different.
 Java’s compiler is called jdk i.e. java development kit.
 Java releases a new compiler every 6 months and the
latest version goes by jdk 12 which came on march
19,2019.
 The editors used in java to write programs are as
follows:
o Notepad
o Jcreator
o Ecllipse
o netbeans
Java
C compiler
Source
code
Source
code
GCC
Machine
code
Machine
code
Windows Unix
Java compiler
Source
code
JDK
compiler
Byte Code
JVM for
windows
JVM for
unix
COMMENTS IN JAVA
 There are three types of comments in Java:
 1.Single Line comments //
 2.Multi Line comments /* */
 3.Special Javadoc comments /**
 *
 */
JAVA IDENTIFIERS
 Identifiers are the tokens that represents names of
variables, classes, methods, etc.
 Examples of identifiers are: Hello, main, System, out.
 Java Identifiers are case sensitive means that the
identifier ‘Hello’ is not same as ‘hello’.
 They must begin with either a letter, an underscore “_”
or a Dollar Sign “$”. Letters may be lower or upper case.
Subsequent characters may use numbers 0 to 9.
 Identifiers cannot use Java keywords like class, public,
void, etc.
INPUT FROM KEYBOARD
INPUT FROM KEYBOARD
INPUT FROM KEYBOARDINPUT FROM KEYBOARD
 In Java, Scanner is a predefined class which is used to take
keyboard input in Java, but this class is defined inside
‘java.util’ package.
 In order to use this class, you need to import this package
first otherwise your compiler will show an error.
 This class contains many methods which are used to get
input from keyboard: nextInt(); nextFloat(); nextDouble();
nextBoolean(); etc.
BASIC PROGRAM IN JAVA
import java.util.*;
Public class A
{
Public static void main(String Args[])
{
Scanner sc=new Scanner(System.in);
System.out.println(“Enter first number”);
int a=sc.nextInt();
Scanner sca=new Scanner(System.in);
System.out.println(“Enter second number”);
int b=sca.nextInt();
System.out.println(“Sum=“+(a+b));
}
}
BASIC PROGRAM IN JAVA
Inheritance:
class Details
{
private int sp;
private int m;
private int s;
public void fun(int sm,int mm,int ss)
{
sp=sm;
m=mm;
s=ss;
int arg=(sp+m+s)/2;
System.out.println(“res=“+arg);
}
BASIC PROGRAM IN JAVA
Inheritance:
class Details
{
private int sp;
private int m;
private int s;
public void fun(int sm,int mm,int ss)
{
sp=sm;
m=mm;
s=ss;
int arg=(sp+m+s)/2;
System.out.println(“res=“+arg);
}
class Student extends Details
{
private String name;
public void getname(String n)
{
name=n;
System.out.println(“Name=“+name);
}
}
public class Result
{
Public static void main(String args[])
{
Student s1=new Student();
s1.fun(20,30,40);
s1.getname(“Yash”);
}
}
ADVANTAGES
 IT IS AN EASY LANGUAGE.
 IT DOES NOT SUPPORT POINTER WHICH MAKE IT SECURE.
 PLATFORM-INDEPENDENT.
 JVM HELPS IN AN EFFICIENT CODE OPTIMISATION SO THE
PERFORMANCE OF EXECUTION IS BETTER.
DISADVANTAGES
 JAVA CODE RUNNING TIME IS SLOWER THAN C THAT’S
WHY FRAMEWORK CODE IS STILL WRITTEN IN C.
 SINCE IT WORKS ON TOP OF JVM ,IT TAKES MORE
MEMORY.
 NO SUPPORT FOR LOW LEVEL PROGRAMMING , LIKE
POINTERS ARE MISSING.
Core JAVA presentation for 1st year students
Core JAVA presentation for 1st year students

More Related Content

What's hot

Great cup of java
Great  cup of javaGreat  cup of java
Great cup of javaCIB Egypt
 
A seminar report on core java
A  seminar report on core javaA  seminar report on core java
A seminar report on core javaAisha Siddiqui
 
1 introduction to java technology
1 introduction to java technology1 introduction to java technology
1 introduction to java technologyrendezvous07
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Languagejaimefrozr
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technologysshhzap
 
MC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionMC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionNarinder Kumar
 
Wasif Mukadam(SW Engg)
Wasif Mukadam(SW Engg)Wasif Mukadam(SW Engg)
Wasif Mukadam(SW Engg)WASIF Mukadam
 
CR Bridge Solutions Pvt Ltd. Java slides
CR Bridge Solutions Pvt Ltd. Java slidesCR Bridge Solutions Pvt Ltd. Java slides
CR Bridge Solutions Pvt Ltd. Java slidesCRBTech
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for DesignersR. Sosa
 
Java programming(unit 1)
Java programming(unit 1)Java programming(unit 1)
Java programming(unit 1)SURBHI SAROHA
 
Grade 8: Introduction To Java
Grade 8: Introduction To JavaGrade 8: Introduction To Java
Grade 8: Introduction To Javanandanrocker
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to javaSaba Ameer
 

What's hot (20)

01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 
Great cup of java
Great  cup of javaGreat  cup of java
Great cup of java
 
Java notes
Java notesJava notes
Java notes
 
A seminar report on core java
A  seminar report on core javaA  seminar report on core java
A seminar report on core java
 
1 introduction to java technology
1 introduction to java technology1 introduction to java technology
1 introduction to java technology
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
 
Java exam 2017
Java exam 2017Java exam 2017
Java exam 2017
 
MC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionMC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall session
 
Wasif Mukadam(SW Engg)
Wasif Mukadam(SW Engg)Wasif Mukadam(SW Engg)
Wasif Mukadam(SW Engg)
 
CR Bridge Solutions Pvt Ltd. Java slides
CR Bridge Solutions Pvt Ltd. Java slidesCR Bridge Solutions Pvt Ltd. Java slides
CR Bridge Solutions Pvt Ltd. Java slides
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for Designers
 
Java programming course for beginners
Java programming course for beginnersJava programming course for beginners
Java programming course for beginners
 
Java intro
Java introJava intro
Java intro
 
Java programming(unit 1)
Java programming(unit 1)Java programming(unit 1)
Java programming(unit 1)
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
 
Core java slides
Core java slidesCore java slides
Core java slides
 
Grade 8: Introduction To Java
Grade 8: Introduction To JavaGrade 8: Introduction To Java
Grade 8: Introduction To Java
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 

Similar to Core JAVA presentation for 1st year students

4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdfamitbhachne
 
Java programming concept
Java programming conceptJava programming concept
Java programming conceptSanjay Gunjal
 
Java Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPRECJava Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPRECSreedhar Chowdam
 
A CASE STUDY JAVA IS SECURE PROGRAMMING LANGUAGE
A CASE STUDY  JAVA IS SECURE PROGRAMMING LANGUAGEA CASE STUDY  JAVA IS SECURE PROGRAMMING LANGUAGE
A CASE STUDY JAVA IS SECURE PROGRAMMING LANGUAGENathan Mathis
 
Java Practical File Diploma
Java Practical File DiplomaJava Practical File Diploma
Java Practical File Diplomamustkeem khan
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
Java ppt Gandhi Ravi (gandhiri@gmail.com)
Java ppt  Gandhi Ravi  (gandhiri@gmail.com)Java ppt  Gandhi Ravi  (gandhiri@gmail.com)
Java ppt Gandhi Ravi (gandhiri@gmail.com)Gandhi Ravi
 
Introduction of Java Programming.ppt
Introduction of Java Programming.pptIntroduction of Java Programming.ppt
Introduction of Java Programming.pptGunjalSanjay
 
Parallelogram by using j2 me j2me.shahid
Parallelogram by using j2 me j2me.shahidParallelogram by using j2 me j2me.shahid
Parallelogram by using j2 me j2me.shahidShahid Riaz
 

Similar to Core JAVA presentation for 1st year students (20)

All experiment of java
All experiment of javaAll experiment of java
All experiment of java
 
4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf4CS4-25-Java-Lab-Manual.pdf
4CS4-25-Java-Lab-Manual.pdf
 
Presentation5
Presentation5Presentation5
Presentation5
 
Java programming concept
Java programming conceptJava programming concept
Java programming concept
 
Java Notes
Java Notes Java Notes
Java Notes
 
Java Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPRECJava Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPREC
 
A CASE STUDY JAVA IS SECURE PROGRAMMING LANGUAGE
A CASE STUDY  JAVA IS SECURE PROGRAMMING LANGUAGEA CASE STUDY  JAVA IS SECURE PROGRAMMING LANGUAGE
A CASE STUDY JAVA IS SECURE PROGRAMMING LANGUAGE
 
Java Practical File Diploma
Java Practical File DiplomaJava Practical File Diploma
Java Practical File Diploma
 
Java lab zero lecture
Java  lab  zero lectureJava  lab  zero lecture
Java lab zero lecture
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
What is Java? Presentation On Introduction To Core Java By PSK Technologies
What is Java? Presentation On Introduction To Core Java By PSK TechnologiesWhat is Java? Presentation On Introduction To Core Java By PSK Technologies
What is Java? Presentation On Introduction To Core Java By PSK Technologies
 
Java lab-manual
Java lab-manualJava lab-manual
Java lab-manual
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Java ppt Gandhi Ravi (gandhiri@gmail.com)
Java ppt  Gandhi Ravi  (gandhiri@gmail.com)Java ppt  Gandhi Ravi  (gandhiri@gmail.com)
Java ppt Gandhi Ravi (gandhiri@gmail.com)
 
Introduction of Java Programming.ppt
Introduction of Java Programming.pptIntroduction of Java Programming.ppt
Introduction of Java Programming.ppt
 
Parallelogram by using j2 me j2me.shahid
Parallelogram by using j2 me j2me.shahidParallelogram by using j2 me j2me.shahid
Parallelogram by using j2 me j2me.shahid
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 
Proyect of english
Proyect of englishProyect of english
Proyect of english
 
CAR SHOWROOM SYSTEM
CAR SHOWROOM SYSTEMCAR SHOWROOM SYSTEM
CAR SHOWROOM SYSTEM
 

Recently uploaded

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Recently uploaded (20)

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 

Core JAVA presentation for 1st year students

  • 1. POORNIMA INSTITUTE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING A PRESENTATION ON THE TOPIC “CORE JAVA” FOR INDUSTRIAL TRAINING(III SEMESTER) SUBMITTED BY: YASH KOOLWAL SECTION:C(C2) PIET18CS153 CS DEPARTMENT SUBMITTED TO: MR.AASHU SHARMA Dr. RAKHI MUTHA
  • 2. COMPANY PROFILE Samyak Computers is a special education vehicle to provide the expert and advance knowledge of today and tomorrow's IT industries requirement. We provide the training with skills to understand the topics and per second changing parameters of IT environment. SERVICES- •SOFTWARE PROGRAMMING LANGUAGES •WEB DEVELOPMENT TRAINING •BASIC COURSE TRAINING OF RSCIT,OFFICE AUTOMATION,DTP The name of my trainer is Mr. Ranjeet Choudhary.
  • 3. COMPANY PROFILE Office Address: 62, Kalwar Rd, Near Brij Fracture Hospital, Shivpuri, Sindhi Colony, Jhotwara, Jaipur, Rajasthan 302012 PHONE: 097722 71081
  • 4. HISTORY OF JAVA Java was conceived by James Gosling , Patrick Naughton , Chris Warth , Ed Frank and Mike Sheridan at Sun Microsystems , inc. in 1991. It took 18 months to develop the first working version. This language was initially called “oak”, but was renamed “Java” in 1995. Later “oracle” took over Java.
  • 5. WHAT IS JAVA?  Java is a general-purpose, concurrent, class-based, object-oriented Computer programming Language .  It is intended to let application developers "write once, run anywhere" (WORA)  It is simple , portable , architecture-neutral and multi- threaded.
  • 6. OOP? The Three OOP Principles All object-oriented programming languages provide mechanisms that help you implement the object-oriented model. They are encapsulation, inheritance, and polymorphism. Class is a user defined data type, which holds its own data members and member functions, which can be accessed and used by creating an instance of that class. Object is an instance of class. It is real implementation of Class. Encapsulation Encapsulation is the mechanism that binds together code and the data it manipulates. Inheritance Inheritance is the process by which one object acquires the properties of another object. Polymorphism Polymorphism is a feature that allows one interface to be used a general class Of actions. The specific action is determined by the exact nature of the situation.
  • 7. FEATURES • Simple • Secure • Portable • Object-oriented • Robust • Multithreaded • Architecture-neutral • Interpreted • High performance • Distributed • Dynamic
  • 8. JAVA COMPILER  Java’s compiler and editor are both different.  Java’s compiler is called jdk i.e. java development kit.  Java releases a new compiler every 6 months and the latest version goes by jdk 12 which came on march 19,2019.  The editors used in java to write programs are as follows: o Notepad o Jcreator o Ecllipse o netbeans
  • 9. Java C compiler Source code Source code GCC Machine code Machine code Windows Unix Java compiler Source code JDK compiler Byte Code JVM for windows JVM for unix
  • 10. COMMENTS IN JAVA  There are three types of comments in Java:  1.Single Line comments //  2.Multi Line comments /* */  3.Special Javadoc comments /**  *  */
  • 11. JAVA IDENTIFIERS  Identifiers are the tokens that represents names of variables, classes, methods, etc.  Examples of identifiers are: Hello, main, System, out.  Java Identifiers are case sensitive means that the identifier ‘Hello’ is not same as ‘hello’.  They must begin with either a letter, an underscore “_” or a Dollar Sign “$”. Letters may be lower or upper case. Subsequent characters may use numbers 0 to 9.  Identifiers cannot use Java keywords like class, public, void, etc.
  • 12. INPUT FROM KEYBOARD INPUT FROM KEYBOARD INPUT FROM KEYBOARDINPUT FROM KEYBOARD  In Java, Scanner is a predefined class which is used to take keyboard input in Java, but this class is defined inside ‘java.util’ package.  In order to use this class, you need to import this package first otherwise your compiler will show an error.  This class contains many methods which are used to get input from keyboard: nextInt(); nextFloat(); nextDouble(); nextBoolean(); etc.
  • 13. BASIC PROGRAM IN JAVA import java.util.*; Public class A { Public static void main(String Args[]) { Scanner sc=new Scanner(System.in); System.out.println(“Enter first number”); int a=sc.nextInt(); Scanner sca=new Scanner(System.in); System.out.println(“Enter second number”); int b=sca.nextInt(); System.out.println(“Sum=“+(a+b)); } }
  • 14. BASIC PROGRAM IN JAVA Inheritance: class Details { private int sp; private int m; private int s; public void fun(int sm,int mm,int ss) { sp=sm; m=mm; s=ss; int arg=(sp+m+s)/2; System.out.println(“res=“+arg); }
  • 15. BASIC PROGRAM IN JAVA Inheritance: class Details { private int sp; private int m; private int s; public void fun(int sm,int mm,int ss) { sp=sm; m=mm; s=ss; int arg=(sp+m+s)/2; System.out.println(“res=“+arg); }
  • 16. class Student extends Details { private String name; public void getname(String n) { name=n; System.out.println(“Name=“+name); } } public class Result { Public static void main(String args[]) { Student s1=new Student(); s1.fun(20,30,40); s1.getname(“Yash”); } }
  • 17. ADVANTAGES  IT IS AN EASY LANGUAGE.  IT DOES NOT SUPPORT POINTER WHICH MAKE IT SECURE.  PLATFORM-INDEPENDENT.  JVM HELPS IN AN EFFICIENT CODE OPTIMISATION SO THE PERFORMANCE OF EXECUTION IS BETTER.
  • 18. DISADVANTAGES  JAVA CODE RUNNING TIME IS SLOWER THAN C THAT’S WHY FRAMEWORK CODE IS STILL WRITTEN IN C.  SINCE IT WORKS ON TOP OF JVM ,IT TAKES MORE MEMORY.  NO SUPPORT FOR LOW LEVEL PROGRAMMING , LIKE POINTERS ARE MISSING.