SlideShare a Scribd company logo
Introduction to Core Java
Programming
www.collaborationtech.co.in
Bengaluru INDIA
Presentation By
Ramananda M.S Rao
Introduction to JavaScript Basics
Content
Overview
Get Started
Variables & Declaration
Java Statements
Java Data Types
Control Structures
Keyboard Input
Regular Expressions
Java Exceptions and Logging
Files and Serialization
Java Utility Objects and API’s
Object Oriented Programming
Java Collections
Java Threads
GUI - Awt and Swing
Database Connectivity
Simple Networking
New Features JDK 1.8
Development Tools
About Us
www.collaborationtech.co.in
Overview
What is Java?
 Java is a programming language designed for use in the distributed
environment of the Internet.
 Programming language developed for the Web.
 Programming language Developed by James Gosling.
 Sun Microsystems released java in 1995 as a core component of
Sun Java technology.
 Java is very versatile, efficient, platform independent and secure.
 Java is write once and run anywhere.
 About 2 billion Devices using Java in various applications.
 Java is used in Embedded devices, Mobile phones, Enterprise
Servers, Super computers, Web Servers and Enterprise Appls.
 These features makes java technology ideal for network
computing.
www.collaborationtech.co.in
Get Started
Java programs
1. Applications 2. Applets.
Application Program :
 Java applications are more general programs written in the Java
language. Java can be used to create all kinds of applications.
Applet Program:
 Applets are Java programs that are downloaded over the World
Wide Web and executed by a java enabled Web browser.
 Applet is an window based program which can be executed inside
another application called a browser.
 Program compiled using javac compiler and converted into an
class file Class file name is then included in the applet tag’s code
attribute in an html file.
 Java Applets makes the application more dynamic and interactive.
www.collaborationtech.co.in
Get Started
// Writing my first Java Application program
// Your first Java application:
/*
This is a simple Java program
Call this file "Demo.java".
*/
public class Demo {
// Your program begins with a call to main.
public static void main (String args [ ] ) {
System.out.println ( "This is a simple Java program.");
}
}
www.collaborationtech.co.in
Get Started
Writing the Program:
In Java the name of the source file should be followed by the .java (dot
java) extension. It is a text file that contains one or more class
definitions. The Java compiler requires that a source file use the .java
filename extension.
Compiling the program
To compile the example program, execute the compiler, javac, specifying
the name of the source file on the command line as, shown below:
C:>javac Demo.java
The javac compiler creates a file called Demo.class that contains the
bytecode version of the program.
www.collaborationtech.co.in
Java Data Types
Java Data Types
Java is what is known as a strongly typed language. That means that
Java is a language that will only accept specific values within specific
variables or parameters.
Java (strongly typed)
1: int x; // Declare a variable of type int
2: x = 1; // Legal
3: x = "Test" // Compiler Error
4: x = true; // Compiler Error
There are 9 data types in Java, 8 primitive types and a reference type
www.collaborationtech.co.in
Java Data Types
Java Primitive Types
boolean, char, byte, short, int, long, float , double
Reference Types
Basically, anything that is not a primitive (an int, a float, etc.) is a
reference. That means that arrays are references, as are instances of
classes. The variable that you create does not have the object you've
created in it. Rather, it has a reference to that object in it.
1: // Create a new object and store it in a variable
2: MyClass anInstanceOfMyClass = new MyClass();
Objects and Arrays are reference types
Primitive types are stored as values
Reference type variables are stored as references (pointers that we
can’t mess with)
www.collaborationtech.co.in
Java Data Types
Passing arguments to methods
Primitive types: the method gets a copy of the value. Changes won’t show
up in the caller
Pass by value
Reference types
The method gets a copy of the reference, the method accesses the same
object
Pass by reference
There is no pass by pointers!
Casting:
Because Java is a strongly typed language, it is sometimes necessary to
perform a cast of a variable. Casting is the explicit or implicit modification of
a variable's type. Casting allows us to view the data within a given variable
as a different type than it was given.
Example:
1: short x = 10; 2: int y = (int)x;
www.collaborationtech.co.in
Keyboard Input
// Keyboard Input
import java.util.Scanner;
public class MyScanner {
public static void main(String args[]) {
Scanner ragh = new Scanner(System.in);
System.out.println("Enter the length");
double rlength,rwidth,rarea;
rlength = ragh.nextDouble();
System.out.println("Enter the width");
rwidth = ragh.nextDouble();
rarea= (rlength*rwidth);
System.out.println("Area is ="+rarea);
}
}
www.collaborationtech.co.in
Keyboard Input
// Keyboard Input
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class KeyboardBufferedInput {
public static void main (String args[]) throws IOException
{ String s1 =null;
String s2=null;
double a;
System.out.print("enter the length:");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
s1=br.readLine();
double l=Integer.parseInt(s1);
System.out.print("enter the breadth:");
s2= br.readLine();
double w=Integer.parseInt(s2);
a=l*w;
System.out.print("area is="+a);
}
}
www.collaborationtech.co.in
Follow us on Social
Facebook: https://www.facebook.com/collaborationtechnologies/
Twitter : https://twitter.com/collaboration09
Google Plus : https://plus.google.com/100704494006819853579
LinkedIn : https://www.linkedin.com/in/ramananda-rao-a2012545
Instagram : https://instagram.com/collaborationtechnologies
YouTube :
https://www.youtube.com/channel/UCm9nK56LRbWSqcYWbzs8CUg
Skype : facebook:ramananda.rao.7
WhatsApp : +91 9886272445
www.collaborationtech.co.in
THANK YOU
About Us
Ad

More Related Content

What's hot (20)

Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 
Core java
Core javaCore java
Core java
sharad soni
 
Features of java - javatportal
Features of java - javatportalFeatures of java - javatportal
Features of java - javatportal
JavaTportal
 
Features of java
Features of javaFeatures of java
Features of java
WILLFREDJOSE W
 
Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".
SudhanshuVijay3
 
Java basics
Java basicsJava basics
Java basics
suraj pandey
 
Advantages of java
Advantages of javaAdvantages of java
Advantages of java
xxx007008
 
Features of java
Features of javaFeatures of java
Features of java
Hitesh Kumar
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
javeed_mhd
 
Java features
Java featuresJava features
Java features
myrajendra
 
Java presentation
Java presentation Java presentation
Java presentation
Programming Talents
 
Important features of java
Important features of javaImportant features of java
Important features of java
AL- AMIN
 
JAVA ENVIRONMENT
JAVA  ENVIRONMENTJAVA  ENVIRONMENT
JAVA ENVIRONMENT
josemachoco
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
Mehak Tawakley
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
Papitha Velumani
 
Java history 01
Java history 01Java history 01
Java history 01
University of Potsdam
 
computer science JAVA ppt
computer science JAVA pptcomputer science JAVA ppt
computer science JAVA ppt
brijesh kumar
 
JVM
JVMJVM
JVM
baabtra.com - No. 1 supplier of quality freshers
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
shalinikarunakaran1
 
Java
JavaJava
Java
jmradha krishnan
 

Viewers also liked (20)

Core java concepts
Core java  conceptsCore java  concepts
Core java concepts
Ram132
 
Core java lessons
Core java lessonsCore java lessons
Core java lessons
vivek shah
 
Java OOP Programming language (Part 1) - Introduction to Java
Java OOP Programming language (Part 1) - Introduction to JavaJava OOP Programming language (Part 1) - Introduction to Java
Java OOP Programming language (Part 1) - Introduction to Java
OUM SAOKOSAL
 
Python - Lecture 1
Python - Lecture 1Python - Lecture 1
Python - Lecture 1
Ravi Kiran Khareedi
 
Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)
Chia-Chi Chang
 
Analysis of Fatal Utah Avalanches with Python. From Scraping, Analysis, to In...
Analysis of Fatal Utah Avalanches with Python. From Scraping, Analysis, to In...Analysis of Fatal Utah Avalanches with Python. From Scraping, Analysis, to In...
Analysis of Fatal Utah Avalanches with Python. From Scraping, Analysis, to In...
Matt Harrison
 
Introduction to Advanced Javascript
Introduction to Advanced JavascriptIntroduction to Advanced Javascript
Introduction to Advanced Javascript
Collaboration Technologies
 
Meetup Python Nantes - les tests en python
Meetup Python Nantes - les tests en pythonMeetup Python Nantes - les tests en python
Meetup Python Nantes - les tests en python
Arthur Lutz
 
Operator Overloading
Operator Overloading  Operator Overloading
Operator Overloading
Sardar Alam
 
PyCon 2013 : Scripting to PyPi to GitHub and More
PyCon 2013 : Scripting to PyPi to GitHub and MorePyCon 2013 : Scripting to PyPi to GitHub and More
PyCon 2013 : Scripting to PyPi to GitHub and More
Matt Harrison
 
Java persistence api
Java persistence api Java persistence api
Java persistence api
Luis Goldster
 
Python for All
Python for All Python for All
Python for All
Pragya Goyal
 
Installing Python on Mac
Installing Python on MacInstalling Python on Mac
Installing Python on Mac
Wei-Wen Hsu
 
Lesson1 python an introduction
Lesson1 python an introductionLesson1 python an introduction
Lesson1 python an introduction
Arulalan T
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Yi-Fan Chu
 
Python master class part 1
Python master class part 1Python master class part 1
Python master class part 1
Chathuranga Bandara
 
Introduction to Python - Running Notes
Introduction to Python - Running NotesIntroduction to Python - Running Notes
Introduction to Python - Running Notes
RajKumar Rampelli
 
Introduction to facebook java script sdk
Introduction to facebook java script sdk Introduction to facebook java script sdk
Introduction to facebook java script sdk
Yi-Fan Chu
 
Gradle - Build System
Gradle - Build SystemGradle - Build System
Gradle - Build System
Jeevesh Pandey
 
Spring 4. Part 1 - IoC, AOP
Spring 4. Part 1 - IoC, AOPSpring 4. Part 1 - IoC, AOP
Spring 4. Part 1 - IoC, AOP
Nakraynikov Oleg
 
Core java concepts
Core java  conceptsCore java  concepts
Core java concepts
Ram132
 
Core java lessons
Core java lessonsCore java lessons
Core java lessons
vivek shah
 
Java OOP Programming language (Part 1) - Introduction to Java
Java OOP Programming language (Part 1) - Introduction to JavaJava OOP Programming language (Part 1) - Introduction to Java
Java OOP Programming language (Part 1) - Introduction to Java
OUM SAOKOSAL
 
Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)
Chia-Chi Chang
 
Analysis of Fatal Utah Avalanches with Python. From Scraping, Analysis, to In...
Analysis of Fatal Utah Avalanches with Python. From Scraping, Analysis, to In...Analysis of Fatal Utah Avalanches with Python. From Scraping, Analysis, to In...
Analysis of Fatal Utah Avalanches with Python. From Scraping, Analysis, to In...
Matt Harrison
 
Meetup Python Nantes - les tests en python
Meetup Python Nantes - les tests en pythonMeetup Python Nantes - les tests en python
Meetup Python Nantes - les tests en python
Arthur Lutz
 
Operator Overloading
Operator Overloading  Operator Overloading
Operator Overloading
Sardar Alam
 
PyCon 2013 : Scripting to PyPi to GitHub and More
PyCon 2013 : Scripting to PyPi to GitHub and MorePyCon 2013 : Scripting to PyPi to GitHub and More
PyCon 2013 : Scripting to PyPi to GitHub and More
Matt Harrison
 
Java persistence api
Java persistence api Java persistence api
Java persistence api
Luis Goldster
 
Installing Python on Mac
Installing Python on MacInstalling Python on Mac
Installing Python on Mac
Wei-Wen Hsu
 
Lesson1 python an introduction
Lesson1 python an introductionLesson1 python an introduction
Lesson1 python an introduction
Arulalan T
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Yi-Fan Chu
 
Introduction to Python - Running Notes
Introduction to Python - Running NotesIntroduction to Python - Running Notes
Introduction to Python - Running Notes
RajKumar Rampelli
 
Introduction to facebook java script sdk
Introduction to facebook java script sdk Introduction to facebook java script sdk
Introduction to facebook java script sdk
Yi-Fan Chu
 
Spring 4. Part 1 - IoC, AOP
Spring 4. Part 1 - IoC, AOPSpring 4. Part 1 - IoC, AOP
Spring 4. Part 1 - IoC, AOP
Nakraynikov Oleg
 
Ad

Similar to Introduction to Core Java Programming (20)

Introduction to Core Java Programming
Introduction to Core Java ProgrammingIntroduction to Core Java Programming
Introduction to Core Java Programming
Raveendra R
 
Java
JavaJava
Java
Sneha Mudraje
 
Chapter One Basics ofJava Programmming.pptx
Chapter One Basics ofJava Programmming.pptxChapter One Basics ofJava Programmming.pptx
Chapter One Basics ofJava Programmming.pptx
Prashant416351
 
Java programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, MysuruJava programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, Mysuru
Nithin Kumar,VVCE, Mysuru
 
Object Oriented Programming unit 1 content for students
Object Oriented Programming unit 1 content for studentsObject Oriented Programming unit 1 content for students
Object Oriented Programming unit 1 content for students
ASHASITTeaching
 
Qb it1301
Qb   it1301Qb   it1301
Qb it1301
ArthyR3
 
Java1
Java1Java1
Java1
computertuitions
 
Java
Java Java
Java
computertuitions
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Tajendar Arora
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
DevaKumari Vijay
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
Krishnaov
 
Introduction to Java.pptx sjskmdkdmdkdmdkdkd
Introduction to Java.pptx sjskmdkdmdkdmdkdkdIntroduction to Java.pptx sjskmdkdmdkdmdkdkd
Introduction to Java.pptx sjskmdkdmdkdmdkdkd
giresumit9
 
Java Programming
Java ProgrammingJava Programming
Java Programming
Prof. Dr. K. Adisesha
 
Java basic
Java basicJava basic
Java basic
Arati Gadgil
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
AdiseshaK
 
Java Programming Tutorials Basic to Advanced 1
Java Programming Tutorials Basic to Advanced 1Java Programming Tutorials Basic to Advanced 1
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdfPJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
projectfora2
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
loidasacueza
 
Javanotes
JavanotesJavanotes
Javanotes
John Cutajar
 
Java notes
Java notesJava notes
Java notes
Upasana Talukdar
 
Introduction to Core Java Programming
Introduction to Core Java ProgrammingIntroduction to Core Java Programming
Introduction to Core Java Programming
Raveendra R
 
Chapter One Basics ofJava Programmming.pptx
Chapter One Basics ofJava Programmming.pptxChapter One Basics ofJava Programmming.pptx
Chapter One Basics ofJava Programmming.pptx
Prashant416351
 
Java programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, MysuruJava programming material for beginners by Nithin, VVCE, Mysuru
Java programming material for beginners by Nithin, VVCE, Mysuru
Nithin Kumar,VVCE, Mysuru
 
Object Oriented Programming unit 1 content for students
Object Oriented Programming unit 1 content for studentsObject Oriented Programming unit 1 content for students
Object Oriented Programming unit 1 content for students
ASHASITTeaching
 
Qb it1301
Qb   it1301Qb   it1301
Qb it1301
ArthyR3
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
DevaKumari Vijay
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
Krishnaov
 
Introduction to Java.pptx sjskmdkdmdkdmdkdkd
Introduction to Java.pptx sjskmdkdmdkdmdkdkdIntroduction to Java.pptx sjskmdkdmdkdmdkdkd
Introduction to Java.pptx sjskmdkdmdkdmdkdkd
giresumit9
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
AdiseshaK
 
Java Programming Tutorials Basic to Advanced 1
Java Programming Tutorials Basic to Advanced 1Java Programming Tutorials Basic to Advanced 1
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdfPJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
projectfora2
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
loidasacueza
 
Ad

More from Collaboration Technologies (16)

Introduction to Database SQL & PL/SQL
Introduction to Database SQL & PL/SQLIntroduction to Database SQL & PL/SQL
Introduction to Database SQL & PL/SQL
Collaboration Technologies
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
Collaboration Technologies
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Collaboration Technologies
 
Introduction to Hibernate Framework
Introduction to Hibernate FrameworkIntroduction to Hibernate Framework
Introduction to Hibernate Framework
Collaboration Technologies
 
Introduction to HTML4
Introduction to HTML4Introduction to HTML4
Introduction to HTML4
Collaboration Technologies
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Collaboration Technologies
 
Introduction to JavaScript Programming
Introduction to JavaScript ProgrammingIntroduction to JavaScript Programming
Introduction to JavaScript Programming
Collaboration Technologies
 
Introduction to JPA Framework
Introduction to JPA FrameworkIntroduction to JPA Framework
Introduction to JPA Framework
Collaboration Technologies
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
Collaboration Technologies
 
Introduction to Perl Programming
Introduction to Perl ProgrammingIntroduction to Perl Programming
Introduction to Perl Programming
Collaboration Technologies
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
Collaboration Technologies
 
Introduction to Python Basics Programming
Introduction to Python Basics ProgrammingIntroduction to Python Basics Programming
Introduction to Python Basics Programming
Collaboration Technologies
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
Collaboration Technologies
 
Introduction to Struts 2
Introduction to Struts 2Introduction to Struts 2
Introduction to Struts 2
Collaboration Technologies
 
Introduction to JSON & AJAX
Introduction to JSON & AJAXIntroduction to JSON & AJAX
Introduction to JSON & AJAX
Collaboration Technologies
 
Introduction to Node.JS
Introduction to Node.JSIntroduction to Node.JS
Introduction to Node.JS
Collaboration Technologies
 

Recently uploaded (20)

Salesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docxSalesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docx
José Enrique López Rivera
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Rock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning JourneyRock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning Journey
Lynda Kane
 
Network Security. Different aspects of Network Security.
Network Security. Different aspects of Network Security.Network Security. Different aspects of Network Security.
Network Security. Different aspects of Network Security.
gregtap1
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
 
Salesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docxSalesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docx
José Enrique López Rivera
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Rock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning JourneyRock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning Journey
Lynda Kane
 
Network Security. Different aspects of Network Security.
Network Security. Different aspects of Network Security.Network Security. Different aspects of Network Security.
Network Security. Different aspects of Network Security.
gregtap1
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
 

Introduction to Core Java Programming

  • 1. Introduction to Core Java Programming www.collaborationtech.co.in Bengaluru INDIA Presentation By Ramananda M.S Rao
  • 2. Introduction to JavaScript Basics Content Overview Get Started Variables & Declaration Java Statements Java Data Types Control Structures Keyboard Input Regular Expressions Java Exceptions and Logging Files and Serialization Java Utility Objects and API’s Object Oriented Programming Java Collections Java Threads GUI - Awt and Swing Database Connectivity Simple Networking New Features JDK 1.8 Development Tools About Us www.collaborationtech.co.in
  • 3. Overview What is Java?  Java is a programming language designed for use in the distributed environment of the Internet.  Programming language developed for the Web.  Programming language Developed by James Gosling.  Sun Microsystems released java in 1995 as a core component of Sun Java technology.  Java is very versatile, efficient, platform independent and secure.  Java is write once and run anywhere.  About 2 billion Devices using Java in various applications.  Java is used in Embedded devices, Mobile phones, Enterprise Servers, Super computers, Web Servers and Enterprise Appls.  These features makes java technology ideal for network computing. www.collaborationtech.co.in
  • 4. Get Started Java programs 1. Applications 2. Applets. Application Program :  Java applications are more general programs written in the Java language. Java can be used to create all kinds of applications. Applet Program:  Applets are Java programs that are downloaded over the World Wide Web and executed by a java enabled Web browser.  Applet is an window based program which can be executed inside another application called a browser.  Program compiled using javac compiler and converted into an class file Class file name is then included in the applet tag’s code attribute in an html file.  Java Applets makes the application more dynamic and interactive. www.collaborationtech.co.in
  • 5. Get Started // Writing my first Java Application program // Your first Java application: /* This is a simple Java program Call this file "Demo.java". */ public class Demo { // Your program begins with a call to main. public static void main (String args [ ] ) { System.out.println ( "This is a simple Java program."); } } www.collaborationtech.co.in
  • 6. Get Started Writing the Program: In Java the name of the source file should be followed by the .java (dot java) extension. It is a text file that contains one or more class definitions. The Java compiler requires that a source file use the .java filename extension. Compiling the program To compile the example program, execute the compiler, javac, specifying the name of the source file on the command line as, shown below: C:>javac Demo.java The javac compiler creates a file called Demo.class that contains the bytecode version of the program. www.collaborationtech.co.in
  • 7. Java Data Types Java Data Types Java is what is known as a strongly typed language. That means that Java is a language that will only accept specific values within specific variables or parameters. Java (strongly typed) 1: int x; // Declare a variable of type int 2: x = 1; // Legal 3: x = "Test" // Compiler Error 4: x = true; // Compiler Error There are 9 data types in Java, 8 primitive types and a reference type www.collaborationtech.co.in
  • 8. Java Data Types Java Primitive Types boolean, char, byte, short, int, long, float , double Reference Types Basically, anything that is not a primitive (an int, a float, etc.) is a reference. That means that arrays are references, as are instances of classes. The variable that you create does not have the object you've created in it. Rather, it has a reference to that object in it. 1: // Create a new object and store it in a variable 2: MyClass anInstanceOfMyClass = new MyClass(); Objects and Arrays are reference types Primitive types are stored as values Reference type variables are stored as references (pointers that we can’t mess with) www.collaborationtech.co.in
  • 9. Java Data Types Passing arguments to methods Primitive types: the method gets a copy of the value. Changes won’t show up in the caller Pass by value Reference types The method gets a copy of the reference, the method accesses the same object Pass by reference There is no pass by pointers! Casting: Because Java is a strongly typed language, it is sometimes necessary to perform a cast of a variable. Casting is the explicit or implicit modification of a variable's type. Casting allows us to view the data within a given variable as a different type than it was given. Example: 1: short x = 10; 2: int y = (int)x; www.collaborationtech.co.in
  • 10. Keyboard Input // Keyboard Input import java.util.Scanner; public class MyScanner { public static void main(String args[]) { Scanner ragh = new Scanner(System.in); System.out.println("Enter the length"); double rlength,rwidth,rarea; rlength = ragh.nextDouble(); System.out.println("Enter the width"); rwidth = ragh.nextDouble(); rarea= (rlength*rwidth); System.out.println("Area is ="+rarea); } } www.collaborationtech.co.in
  • 11. Keyboard Input // Keyboard Input import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class KeyboardBufferedInput { public static void main (String args[]) throws IOException { String s1 =null; String s2=null; double a; System.out.print("enter the length:"); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); s1=br.readLine(); double l=Integer.parseInt(s1); System.out.print("enter the breadth:"); s2= br.readLine(); double w=Integer.parseInt(s2); a=l*w; System.out.print("area is="+a); } } www.collaborationtech.co.in
  • 12. Follow us on Social Facebook: https://www.facebook.com/collaborationtechnologies/ Twitter : https://twitter.com/collaboration09 Google Plus : https://plus.google.com/100704494006819853579 LinkedIn : https://www.linkedin.com/in/ramananda-rao-a2012545 Instagram : https://instagram.com/collaborationtechnologies YouTube : https://www.youtube.com/channel/UCm9nK56LRbWSqcYWbzs8CUg Skype : facebook:ramananda.rao.7 WhatsApp : +91 9886272445 www.collaborationtech.co.in THANK YOU