SlideShare a Scribd company logo
https://www.techsearchweb.com
TECHSEARCHWEB
TUTORIALS
T e c h S e a r c h W e b
Home Core Java Oops String Exception Collections Thread Spring SpringBoot Web Services Node Js Selenium Interview Q&A
What is JDK
What is Java
Describe the key steps in
which a Java class is
Java is a programming language and a platform. Java is a high level, robust, object-oriented and secure programming
loaded by the JVM?
language. It was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as
What are runtime data
core component of Sun Microsystems' Java platform (Java 1.0 [J2SE]).
areas?
The latest release of the Java Standard Edition is Java SE 10. With the advancement of Java and its widespread
How is a java program
popularity, multiple configurations were built to suit various types of platforms. For example: J2EE for Enterprise
executed by JVM?
Applications, J2ME for Mobile Applications.
Explain how Java programs
The new J2 versions were renamed as Java SE, Java EE, and Java ME respectively. Java is guaranteed to be Write
are executed by the JVM?
Once, Run Anywhere.
What is the Java
Features of Java
bytecodes?
Object Oriented − In Java, everything is an Object. Java can be easily extended since it is based on the Object model.
What is the difference
Platform Independent − Unlike many other programming languages including C and C++, when Java is compiled, it is not
between JVM, JRE and
compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the
JDK?
web and interpreted by the Virtual Machine (JVM) on whichever platform it is being run on.
How is Java programming
Simple − Java is designed to be easy to learn. If you understand the basic concept of OOP Java, it would be easy to
language machine and
master.
platform independent?
Secure − With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are
based on public-key encryption.
Architecture-neutral − Java compiler generates an architecture-neutral object file format, which makes the compiled code
executable on many processors, with the presence of Java runtime system.
Portable − Being architecture-neutral and having no implementation dependent aspects of the specification makes Java
portable. Compiler in Java is written in ANSI C with a clean portability boundary, which is a POSIX subset.
Robust − Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking
and runtime checking.
Multithreaded − With Java's multithreaded feature it is possible to write programs that can perform many tasks
simultaneously. This design feature allows the developers to construct interactive applications that can run smoothly.
Interpreted − Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The
development process is more rapid and analytical since the linking is an incremental and light-weight process.
High Performance − With the use of Just-In-Time compilers, Java enables high performance.
Distributed − Java is designed for the distributed environment of the internet.
Dynamic − Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving
environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve
accesses to objects on run-time.
History of Java
The history of Java is very interesting. Java was originally designed for interactive television, but it was too advanced
technology for the digital cable television industry at the time. The history of Java starts with the Green Team. Java team
members (also known as Green Team), initiated this project to develop a language for digital devices such as set-top
boxes, televisions, etc. However, it was suited for internet programming. Later, Java technology was incorporated by
Netscape.
The principles for creating Java programming were "Simple, Robust, Portable, Platform-independent, Secured, High
Performance, Multithreaded, Architecture Neutral, Object-Oriented, Interpreted, and Dynamic". Java was developed by
James Gosling, who is known as the father of Java, in 1995. James Gosling and his team members started the project in
the early '90s.
1) James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The small team
of sun engineers called Green Team.
2) Initially designed for small, embedded systems in electronic appliances like set-top boxes.
3) Firstly, it was called "Greentalk" by James Gosling, and the file extension was .gt.
4) After that, it was called Oak and was developed as a part of the Green project.
Components
JVM (Java Virtual Machine)
It is an abstract machine. It is a specification that provides a run-time environment in which the bytecode can be
executed. It follows three notations:
Specification: It is a document that describes the implementation of the JVM. It is provided by Sun and other companies.
Implementation: It is a program that meets the requirements of JVM specification. Runtime Instance: An instance of JVM
is created whenever you write a command on the command prompt and run the class.
JRE (Java Runtime Environment) JRE refers to a runtime environment in which bytecode can be executed. It implements
the JVM and provides all the class libraries and other support files that JVM uses at runtime. So JRE is a software
package that contains what is required to run a program. Basically, it’s an implementation of the JVM which physically
exists.
JDK(Java Development Kit) It is the tool necessary to:- Compile Document Package Java programs. The JDK completely
includes JRE which contains tools for programmers. The Development Kit is provided free of charge. Along with JRE, it
includes an interpreter/loader, a compiler (javac), an archiver (jar), a documentation generator and other tools needed in
Java development. In short, it contains JRE + development tools.
Why Use Java?
Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
It is one of the most popular programming language in the world
It is easy to learn and simple to use
It is open-source and free
It is secure, fast and powerful
It has a huge community support (tens of millions of developers)
Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering
development costs
As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa
Types of Java Applications
There are mainly 4 types of applications that can be created using Java programming:
1) Standalone Application
Standalone applications are also known as desktop applications or window-based applications. These are traditional
software that we need to install on every machine. Examples of standalone application are Media player, antivirus, etc.
AWT and Swing are used in Java for creating standalone applications.
2) Web Application
An application that runs on the server side and creates a dynamic page is called a web application. Currently, Servlet,
JSP, Struts, Spring, Hibernate, JSF, etc. technologies are used for creating web applications in Java.
3) Enterprise Application
An application that is distributed in nature, such as banking applications, etc. is called enterprise application. It has
advantages of the high-level security, load balancing, and clustering. In Java, EJB is used for creating enterprise
applications.
4) Mobile Application
An application which is created for mobile devices is called a mobile application. Currently, Android and Java ME are used
for creating mobile applications.
What is Object-oriented?
Object-oriented programming (OOPs) is a methodology that simplifies software development and maintenance by
providing some rules. Java is an object-oriented programming language. Everything in Java is an object. Object-oriented
means we organize our software as a combination of different types of objects that incorporates both data and behavior.
Basic concepts of OOPs are:
Object
Class
Inheritance
Polymorphism
Abstraction
Encapsulation
https://www.techsearchweb.com

More Related Content

PDF
TechSearchWeb.pdf
TechSearchWeb
 
PDF
Technology Tutorial.pdf
TechSearchWeb
 
PDF
Java Basic.pdf
TechSearchWeb
 
PPTX
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
PDF
Core Java-1 (1).pdf
HaskellKohler1234
 
PPTX
Introduction to java
Java Lover
 
PPTX
JAVAPart1_BasicIntroduction.pptx
Murugesh33
 
PPTX
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 
TechSearchWeb.pdf
TechSearchWeb
 
Technology Tutorial.pdf
TechSearchWeb
 
Java Basic.pdf
TechSearchWeb
 
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
Core Java-1 (1).pdf
HaskellKohler1234
 
Introduction to java
Java Lover
 
JAVAPart1_BasicIntroduction.pptx
Murugesh33
 
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 

Similar to TechSearchWeb Tutorials.pdf (20)

PPTX
Chapter 1 java
Ahmad sohail Kakar
 
PPTX
Java Lecture 1
Qualys
 
PPTX
Introduction to Java in cs engineering .pptx
rastogimehak3845
 
PPT
PPS Java Overview Unit I.ppt
RajeshSukte1
 
PPT
PPS Java Overview Unit I.ppt
CDSukte
 
PPTX
Java
seenak
 
PPSX
JAVA.ppsx java code java edv java development
wannabekrishna0
 
PDF
what is java.pdf
XanGwaps
 
PPTX
Java
Harry Potter
 
PPTX
Java
James Wong
 
PPTX
Java
Tony Nguyen
 
PPTX
Java
Fraboni Ec
 
PPTX
Java
Luis Goldster
 
PPTX
Java
Young Alista
 
PPTX
Java ms harsha
Harsha Batra
 
PPTX
UNIT 1.pptx
EduclentMegasoftel
 
PDF
JAVA BOOK BY SIVASANKARI
SivaSankari36
 
PPTX
Java (1)
Samraiz Tejani
 
PPTX
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 
Chapter 1 java
Ahmad sohail Kakar
 
Java Lecture 1
Qualys
 
Introduction to Java in cs engineering .pptx
rastogimehak3845
 
PPS Java Overview Unit I.ppt
RajeshSukte1
 
PPS Java Overview Unit I.ppt
CDSukte
 
Java
seenak
 
JAVA.ppsx java code java edv java development
wannabekrishna0
 
what is java.pdf
XanGwaps
 
Java ms harsha
Harsha Batra
 
UNIT 1.pptx
EduclentMegasoftel
 
JAVA BOOK BY SIVASANKARI
SivaSankari36
 
Java (1)
Samraiz Tejani
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 

Recently uploaded (20)

PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Architecture of the Future (09152021)
EdwardMeyman
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Software Development Methodologies in 2025
KodekX
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Architecture of the Future (09152021)
EdwardMeyman
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Software Development Methodologies in 2025
KodekX
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 

TechSearchWeb Tutorials.pdf

  • 2. T e c h S e a r c h W e b Home Core Java Oops String Exception Collections Thread Spring SpringBoot Web Services Node Js Selenium Interview Q&A What is JDK What is Java Describe the key steps in which a Java class is Java is a programming language and a platform. Java is a high level, robust, object-oriented and secure programming loaded by the JVM? language. It was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as What are runtime data core component of Sun Microsystems' Java platform (Java 1.0 [J2SE]). areas? The latest release of the Java Standard Edition is Java SE 10. With the advancement of Java and its widespread How is a java program popularity, multiple configurations were built to suit various types of platforms. For example: J2EE for Enterprise executed by JVM? Applications, J2ME for Mobile Applications. Explain how Java programs The new J2 versions were renamed as Java SE, Java EE, and Java ME respectively. Java is guaranteed to be Write are executed by the JVM? Once, Run Anywhere. What is the Java Features of Java bytecodes? Object Oriented − In Java, everything is an Object. Java can be easily extended since it is based on the Object model. What is the difference Platform Independent − Unlike many other programming languages including C and C++, when Java is compiled, it is not between JVM, JRE and compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the JDK? web and interpreted by the Virtual Machine (JVM) on whichever platform it is being run on. How is Java programming Simple − Java is designed to be easy to learn. If you understand the basic concept of OOP Java, it would be easy to language machine and master. platform independent? Secure − With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption. Architecture-neutral − Java compiler generates an architecture-neutral object file format, which makes the compiled code executable on many processors, with the presence of Java runtime system. Portable − Being architecture-neutral and having no implementation dependent aspects of the specification makes Java portable. Compiler in Java is written in ANSI C with a clean portability boundary, which is a POSIX subset. Robust − Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking. Multithreaded − With Java's multithreaded feature it is possible to write programs that can perform many tasks simultaneously. This design feature allows the developers to construct interactive applications that can run smoothly. Interpreted − Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light-weight process. High Performance − With the use of Just-In-Time compilers, Java enables high performance. Distributed − Java is designed for the distributed environment of the internet. Dynamic − Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time. History of Java The history of Java is very interesting. Java was originally designed for interactive television, but it was too advanced technology for the digital cable television industry at the time. The history of Java starts with the Green Team. Java team members (also known as Green Team), initiated this project to develop a language for digital devices such as set-top boxes, televisions, etc. However, it was suited for internet programming. Later, Java technology was incorporated by Netscape. The principles for creating Java programming were "Simple, Robust, Portable, Platform-independent, Secured, High Performance, Multithreaded, Architecture Neutral, Object-Oriented, Interpreted, and Dynamic". Java was developed by James Gosling, who is known as the father of Java, in 1995. James Gosling and his team members started the project in the early '90s. 1) James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The small team of sun engineers called Green Team. 2) Initially designed for small, embedded systems in electronic appliances like set-top boxes. 3) Firstly, it was called "Greentalk" by James Gosling, and the file extension was .gt. 4) After that, it was called Oak and was developed as a part of the Green project. Components JVM (Java Virtual Machine) It is an abstract machine. It is a specification that provides a run-time environment in which the bytecode can be executed. It follows three notations: Specification: It is a document that describes the implementation of the JVM. It is provided by Sun and other companies. Implementation: It is a program that meets the requirements of JVM specification. Runtime Instance: An instance of JVM is created whenever you write a command on the command prompt and run the class. JRE (Java Runtime Environment) JRE refers to a runtime environment in which bytecode can be executed. It implements the JVM and provides all the class libraries and other support files that JVM uses at runtime. So JRE is a software package that contains what is required to run a program. Basically, it’s an implementation of the JVM which physically exists. JDK(Java Development Kit) It is the tool necessary to:- Compile Document Package Java programs. The JDK completely includes JRE which contains tools for programmers. The Development Kit is provided free of charge. Along with JRE, it includes an interpreter/loader, a compiler (javac), an archiver (jar), a documentation generator and other tools needed in Java development. In short, it contains JRE + development tools. Why Use Java? Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.) It is one of the most popular programming language in the world It is easy to learn and simple to use It is open-source and free It is secure, fast and powerful It has a huge community support (tens of millions of developers) Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa Types of Java Applications There are mainly 4 types of applications that can be created using Java programming: 1) Standalone Application Standalone applications are also known as desktop applications or window-based applications. These are traditional software that we need to install on every machine. Examples of standalone application are Media player, antivirus, etc. AWT and Swing are used in Java for creating standalone applications. 2) Web Application An application that runs on the server side and creates a dynamic page is called a web application. Currently, Servlet, JSP, Struts, Spring, Hibernate, JSF, etc. technologies are used for creating web applications in Java. 3) Enterprise Application An application that is distributed in nature, such as banking applications, etc. is called enterprise application. It has advantages of the high-level security, load balancing, and clustering. In Java, EJB is used for creating enterprise applications. 4) Mobile Application An application which is created for mobile devices is called a mobile application. Currently, Android and Java ME are used for creating mobile applications. What is Object-oriented? Object-oriented programming (OOPs) is a methodology that simplifies software development and maintenance by providing some rules. Java is an object-oriented programming language. Everything in Java is an object. Object-oriented means we organize our software as a combination of different types of objects that incorporates both data and behavior. Basic concepts of OOPs are: Object Class Inheritance Polymorphism Abstraction Encapsulation https://www.techsearchweb.com