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
// html file to show results in browser – FirstHTML.html
<html>
<body>
<applet code="FirstApplet.class" WIDTH=500 HEIGHT=500>
</applet>
</body>
</html>
<applet code=" FirstApplet.class" width=500 height=500></applet>
This tells the browser to load the applet whose compiled code is in
FirstApplet.class (in the same directory as the current HTML
document), and to set the initial size of the applet to 500 pixels wide
and 500 pixels high
www.collaborationtech.co.in
Variables, Declaration, & Statements
Java Variables
Primitive Datatypes
Declarations
Variable Names
Numeric Literals
Character Literals
String
String Literals
Arrays
Non-Primitive Datatypes
The Dot Operator
Character Literals:
For characters that cannot be entered directly we use escape sequences.
Description
ddd octal characters ( ddd )
uxxxx hexadecimal characters
’ single quote
” double quote
backslash
r carriage return
n new line
f form feed
t tab
b backspace
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 : msrnanda
WhatsApp : +91 9886272445
www.collaborationtech.co.in
THANK YOU
About Us

More Related Content

What's hot (20)

Rails interview questions
Rails interview questionsRails interview questions
Rails interview questions
Durgesh Tripathi
 
Linq in C# 3.0: An Overview
Linq in C# 3.0: An OverviewLinq in C# 3.0: An Overview
Linq in C# 3.0: An Overview
pradeepkothiyal
 
Lecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-NativeLecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-Native
Kobkrit Viriyayudhakorn
 
Lambdas
LambdasLambdas
Lambdas
malliksunkara
 
Spring from a to Z
Spring from  a to ZSpring from  a to Z
Spring from a to Z
sang nguyen
 
Angular jS Introduction by Google
Angular jS Introduction by GoogleAngular jS Introduction by Google
Angular jS Introduction by Google
ASG
 
Entity Framework 4 In Microsoft Visual Studio 2010 - ericnel
Entity Framework 4 In Microsoft Visual Studio 2010 - ericnelEntity Framework 4 In Microsoft Visual Studio 2010 - ericnel
Entity Framework 4 In Microsoft Visual Studio 2010 - ericnel
ukdpe
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
Stefano Paluello
 
Akka introtalk HyScala DEC 2016
Akka introtalk HyScala DEC 2016Akka introtalk HyScala DEC 2016
Akka introtalk HyScala DEC 2016
PrasannaKumar Sathyanarayanan
 
C# advanced topics and future - C#5
C# advanced topics and future - C#5C# advanced topics and future - C#5
C# advanced topics and future - C#5
Peter Gfader
 
Introduction repository, ddd and unit test
Introduction repository, ddd and unit testIntroduction repository, ddd and unit test
Introduction repository, ddd and unit test
Hiraq Citra M
 
MVC Training Part 2
MVC Training Part 2MVC Training Part 2
MVC Training Part 2
Lee Englestone
 
Insight into java 1.8, OOP VS FP
Insight into java 1.8, OOP VS FPInsight into java 1.8, OOP VS FP
Insight into java 1.8, OOP VS FP
Syed Awais Mazhar Bukhari
 
LINQ to Relational in Visual Studio 2008 SP1
LINQ to Relational in Visual Studio 2008 SP1LINQ to Relational in Visual Studio 2008 SP1
LINQ to Relational in Visual Studio 2008 SP1
ukdpe
 
Spring (1)
Spring (1)Spring (1)
Spring (1)
Aneega
 
Understanding LINQ in C#
Understanding LINQ in C# Understanding LINQ in C#
Understanding LINQ in C#
MD. Shohag Mia
 
Step talk
Step talkStep talk
Step talk
ESUG
 
C# concepts
C# conceptsC# concepts
C# concepts
lexilijoseph
 
Jdbc
JdbcJdbc
Jdbc
Ravi_Kant_Sahu
 
Web-Dev Portfolio
Web-Dev PortfolioWeb-Dev Portfolio
Web-Dev Portfolio
nwbgh
 
Linq in C# 3.0: An Overview
Linq in C# 3.0: An OverviewLinq in C# 3.0: An Overview
Linq in C# 3.0: An Overview
pradeepkothiyal
 
Lecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-NativeLecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-Native
Kobkrit Viriyayudhakorn
 
Spring from a to Z
Spring from  a to ZSpring from  a to Z
Spring from a to Z
sang nguyen
 
Angular jS Introduction by Google
Angular jS Introduction by GoogleAngular jS Introduction by Google
Angular jS Introduction by Google
ASG
 
Entity Framework 4 In Microsoft Visual Studio 2010 - ericnel
Entity Framework 4 In Microsoft Visual Studio 2010 - ericnelEntity Framework 4 In Microsoft Visual Studio 2010 - ericnel
Entity Framework 4 In Microsoft Visual Studio 2010 - ericnel
ukdpe
 
C# advanced topics and future - C#5
C# advanced topics and future - C#5C# advanced topics and future - C#5
C# advanced topics and future - C#5
Peter Gfader
 
Introduction repository, ddd and unit test
Introduction repository, ddd and unit testIntroduction repository, ddd and unit test
Introduction repository, ddd and unit test
Hiraq Citra M
 
LINQ to Relational in Visual Studio 2008 SP1
LINQ to Relational in Visual Studio 2008 SP1LINQ to Relational in Visual Studio 2008 SP1
LINQ to Relational in Visual Studio 2008 SP1
ukdpe
 
Spring (1)
Spring (1)Spring (1)
Spring (1)
Aneega
 
Understanding LINQ in C#
Understanding LINQ in C# Understanding LINQ in C#
Understanding LINQ in C#
MD. Shohag Mia
 
Step talk
Step talkStep talk
Step talk
ESUG
 
Web-Dev Portfolio
Web-Dev PortfolioWeb-Dev Portfolio
Web-Dev Portfolio
nwbgh
 

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
Collaboration Technologies
 
M251_Meeting 1(M251_Meeting 1_updated.pdf)
M251_Meeting 1(M251_Meeting 1_updated.pdf)M251_Meeting 1(M251_Meeting 1_updated.pdf)
M251_Meeting 1(M251_Meeting 1_updated.pdf)
hossamghareb681
 
Java SpringMVC SpringBOOT (Divergent).ppt
Java SpringMVC SpringBOOT (Divergent).pptJava SpringMVC SpringBOOT (Divergent).ppt
Java SpringMVC SpringBOOT (Divergent).ppt
Aayush Chimaniya
 
COMPUTER PROGRAMMING LANGUAGE.pptx
COMPUTER PROGRAMMING LANGUAGE.pptxCOMPUTER PROGRAMMING LANGUAGE.pptx
COMPUTER PROGRAMMING LANGUAGE.pptx
SofiaArquero2
 
Core java
Core javaCore java
Core java
Shivaraj R
 
Core java
Core javaCore java
Core java
Sun Technlogies
 
Java introduction
Java introductionJava introduction
Java introduction
GaneshKumarKanthiah
 
Learning core java
Learning core javaLearning core java
Learning core java
Abhay Bharti
 
java introduction
java introductionjava introduction
java introduction
Kunal Sunesara
 
Java Technologies notes of unit 1 and 2.
Java Technologies notes of unit 1 and 2.Java Technologies notes of unit 1 and 2.
Java Technologies notes of unit 1 and 2.
sumanyadavdpg
 
Power Point Presentation on Core Java For the Beginers
Power Point Presentation on Core Java For the BeginersPower Point Presentation on Core Java For the Beginers
Power Point Presentation on Core Java For the Beginers
SHAQUIBHASAN2
 
Java programming(unit 1)
Java programming(unit 1)Java programming(unit 1)
Java programming(unit 1)
Dr. SURBHI SAROHA
 
Unit 1
Unit 1Unit 1
Unit 1
LOVELY PROFESSIONAL UNIVERSITY
 
Unit-1_GHD.pptxguguigihihihihihihoihihhi
Unit-1_GHD.pptxguguigihihihihihihoihihhiUnit-1_GHD.pptxguguigihihihihihihoihihhi
Unit-1_GHD.pptxguguigihihihihihihoihihhi
40NehaPagariya
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variables
teach4uin
 
ppt_on_java.pptx
ppt_on_java.pptxppt_on_java.pptx
ppt_on_java.pptx
MAYANKKUMAR492040
 
core_java.ppt
core_java.pptcore_java.ppt
core_java.ppt
YashikaDave
 
javaeanjjisjejrehurfhjhjfeauojksfjdi.ppt
javaeanjjisjejrehurfhjhjfeauojksfjdi.pptjavaeanjjisjejrehurfhjhjfeauojksfjdi.ppt
javaeanjjisjejrehurfhjhjfeauojksfjdi.ppt
eraqhuzay69
 
Introduction to java Programming Language
Introduction to java Programming LanguageIntroduction to java Programming Language
Introduction to java Programming Language
rubyjeyamani1
 
Advanced java programming - DATA TYPES, VARIABLES, ARRAYS
Advanced java programming - DATA TYPES, VARIABLES, ARRAYSAdvanced java programming - DATA TYPES, VARIABLES, ARRAYS
Advanced java programming - DATA TYPES, VARIABLES, ARRAYS
vijayalakshmis184431
 
M251_Meeting 1(M251_Meeting 1_updated.pdf)
M251_Meeting 1(M251_Meeting 1_updated.pdf)M251_Meeting 1(M251_Meeting 1_updated.pdf)
M251_Meeting 1(M251_Meeting 1_updated.pdf)
hossamghareb681
 
Java SpringMVC SpringBOOT (Divergent).ppt
Java SpringMVC SpringBOOT (Divergent).pptJava SpringMVC SpringBOOT (Divergent).ppt
Java SpringMVC SpringBOOT (Divergent).ppt
Aayush Chimaniya
 
COMPUTER PROGRAMMING LANGUAGE.pptx
COMPUTER PROGRAMMING LANGUAGE.pptxCOMPUTER PROGRAMMING LANGUAGE.pptx
COMPUTER PROGRAMMING LANGUAGE.pptx
SofiaArquero2
 
Learning core java
Learning core javaLearning core java
Learning core java
Abhay Bharti
 
Java Technologies notes of unit 1 and 2.
Java Technologies notes of unit 1 and 2.Java Technologies notes of unit 1 and 2.
Java Technologies notes of unit 1 and 2.
sumanyadavdpg
 
Power Point Presentation on Core Java For the Beginers
Power Point Presentation on Core Java For the BeginersPower Point Presentation on Core Java For the Beginers
Power Point Presentation on Core Java For the Beginers
SHAQUIBHASAN2
 
Unit-1_GHD.pptxguguigihihihihihihoihihhi
Unit-1_GHD.pptxguguigihihihihihihoihihhiUnit-1_GHD.pptxguguigihihihihihihoihihhi
Unit-1_GHD.pptxguguigihihihihihihoihihhi
40NehaPagariya
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variables
teach4uin
 
javaeanjjisjejrehurfhjhjfeauojksfjdi.ppt
javaeanjjisjejrehurfhjhjfeauojksfjdi.pptjavaeanjjisjejrehurfhjhjfeauojksfjdi.ppt
javaeanjjisjejrehurfhjhjfeauojksfjdi.ppt
eraqhuzay69
 
Introduction to java Programming Language
Introduction to java Programming LanguageIntroduction to java Programming Language
Introduction to java Programming Language
rubyjeyamani1
 
Advanced java programming - DATA TYPES, VARIABLES, ARRAYS
Advanced java programming - DATA TYPES, VARIABLES, ARRAYSAdvanced java programming - DATA TYPES, VARIABLES, ARRAYS
Advanced java programming - DATA TYPES, VARIABLES, ARRAYS
vijayalakshmis184431
 
Ad

More from Raveendra R (7)

Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
Raveendra R
 
Introduction to Hibernate Framework
Introduction to Hibernate FrameworkIntroduction to Hibernate Framework
Introduction to Hibernate Framework
Raveendra R
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
Raveendra R
 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
Raveendra R
 
Introduction to JSON & AJAX
Introduction to JSON & AJAXIntroduction to JSON & AJAX
Introduction to JSON & AJAX
Raveendra R
 
Introduction to JavaScript Programming
Introduction to JavaScript ProgrammingIntroduction to JavaScript Programming
Introduction to JavaScript Programming
Raveendra R
 
Introduction to Python Basics Programming
Introduction to Python Basics ProgrammingIntroduction to Python Basics Programming
Introduction to Python Basics Programming
Raveendra R
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
Raveendra R
 
Introduction to Hibernate Framework
Introduction to Hibernate FrameworkIntroduction to Hibernate Framework
Introduction to Hibernate Framework
Raveendra R
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
Raveendra R
 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
Raveendra R
 
Introduction to JSON & AJAX
Introduction to JSON & AJAXIntroduction to JSON & AJAX
Introduction to JSON & AJAX
Raveendra R
 
Introduction to JavaScript Programming
Introduction to JavaScript ProgrammingIntroduction to JavaScript Programming
Introduction to JavaScript Programming
Raveendra R
 
Introduction to Python Basics Programming
Introduction to Python Basics ProgrammingIntroduction to Python Basics Programming
Introduction to Python Basics Programming
Raveendra R
 
Ad

Recently uploaded (20)

Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME FlowProviding an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too LateKubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
Edge AI and Vision Alliance
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training RoadblocksDown the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Safe Software
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdfArtificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy SurveyTrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization ProgramOracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data ResilienceFloods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent IntegrationPyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Impelsys Inc.
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME FlowProviding an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too LateKubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
“Solving Tomorrow’s AI Problems Today with Cadence’s Newest Processor,” a Pre...
Edge AI and Vision Alliance
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training RoadblocksDown the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Safe Software
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdfArtificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy SurveyTrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization ProgramOracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data ResilienceFloods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent IntegrationPyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Creating an Accessible Future-How AI-powered Accessibility Testing is Shaping...
Impelsys Inc.
 
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und AnwendungsfälleDomino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
Domino IQ – Was Sie erwartet, erste Schritte und Anwendungsfälle
panagenda
 

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 // html file to show results in browser – FirstHTML.html <html> <body> <applet code="FirstApplet.class" WIDTH=500 HEIGHT=500> </applet> </body> </html> <applet code=" FirstApplet.class" width=500 height=500></applet> This tells the browser to load the applet whose compiled code is in FirstApplet.class (in the same directory as the current HTML document), and to set the initial size of the applet to 500 pixels wide and 500 pixels high www.collaborationtech.co.in
  • 6. Variables, Declaration, & Statements Java Variables Primitive Datatypes Declarations Variable Names Numeric Literals Character Literals String String Literals Arrays Non-Primitive Datatypes The Dot Operator Character Literals: For characters that cannot be entered directly we use escape sequences. Description ddd octal characters ( ddd ) uxxxx hexadecimal characters ’ single quote ” double quote backslash r carriage return n new line f form feed t tab b backspace 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 : msrnanda WhatsApp : +91 9886272445 www.collaborationtech.co.in THANK YOU