Session has been expired. Please
login again
.
Home
Interview
Data Science
AI/ML
Cloud
Web Development
Java
.NET
Database
Scripting Language
Computer Basics
Basic Languages
QA Testing
Certifications
Mobile Development
Compliances
Engineering
Integration Platforms
Management
Security & Privacy
Servers
More ...
Online Test
India Entrance Exams
Data Science
Java
Certifications
.NET
Database
Computer Basics
GK
Testing
Basic Language
Engineering
Management
More ...
Tutorial
Difference Between
Trending Topics
LIVE Interview Preparation
Mock Interviews
Sign Up
Login
Prepare Interview
Trending
41
C#
60
Microsoft .NET
30
Machine Learning
20
ChatGPT
142
C++
49
Data Structures
62
Computer Basics
106
Python
73
DBMS
152
SQL
306
Core Java
15
Java Design Patterns
41
JPA
52
Hibernate
50
Spring Boot
30
Kotlin
52
iOS
14
Android
38
Apache Kafka
80
Language in C
49
HR Questions
52
REST API
75
SDLC
40
Cryptography
40
Selenium
50
Angular
27
PHP
27
HTML
40
React
.NET
82
ASP
20
LINQ
41
C#
31
ASP .NET
60
Microsoft .NET
AIML
47
Artificial Intelligence (AI)
30
Machine Learning
30
Google Cloud AI
30
IBM Watson
20
ChatGPT
30
NLP
36
OpenCV
30
Amazon SageMaker
30
TensorFlow
30
Hugging Face
Basic Language
50
COBOL
30
R Language
20
Python Coding
48
Scala
49
Swift
30
Golang
30
Embedded C
142
C++
30
VBA
Certification
40
CCNA
Cloud
30
Snowflake
23
Oracle APEX
87
AWS
35
Microsoft Azure
30
Azure Data Factory
30
OpenStack
30
ServiceNow
Compliance
20
HITRUST
20
LGPD
20
PDPA
20
OSHA
20
HIPPA
20
PHIPA
20
FERPA
30
DPDP
20
PIPEDA
20
CCPA
30
GDPR
Computer Basics
30
Tips and Tricks
50
PoowerPoint
49
Data Structures
37
Microsoft Excel
65
Computer Networking
62
Computer Basics
50
Computer Science
22
Operating System
50
MS Word
Data Science
48
Python Pandas
50
Django
30
Python Matplotlib
30
Pandas
29
Deep Learning
40
Flask
30
PySpark
25
PyTorch
23
Data Science
30
SciPy
30
Generative AI
30
NumPy
106
Python
Database
27
MongoDB
46
AWS DynamoDB
46
Entity Framework
20
Redis Cache
108
MySQL
30
Data Modeling
40
MariaDB
73
DBMS
30
Apache Hive
30
PostgreSQL
30
SSIS
20
Teradata
70
SQL Query
53
SQLite
25
Cassandra
44
Neo4j
50
MSSQL
46
OrientDB
20
Data Warehouse
152
SQL
40
IBM DB2
61
Elasticsearch
30
Data Mining
34
Oracle
Engineering
30
Civil Engineering
29
Electrical Machines
30
Data Engineer
30
AutoCAD
28
Robotics
28
Power System
30
Electrical Engineering
30
Verilog
30
VLSI
27
Software Engineering
25
MATLAB
38
Digital Electronics
Integration
48
Informatica
29
Oracle CXUnity
10
Web Services
30
Salesforce Lightning
30
IBM Integration Bus
24
Power BI
30
OIC
30
Dell Boomi
31
Web API
57
Salesforce
20
IBM DataStage
34
Talend
30
TIBCO
Java
26
Apache Wicket
306
Core Java
30
Java Multithreading
35
Log4j
14
JBoss
27
Java Mail
29
Java Applet
8
Google Gson
21
Java 21
20
Apache Camel
84
Struts
31
RMI
30
Java Support
18
JAXB
9
Apache Tapestry
49
JSP
30
Java Concurrency
25
J2EE
24
JUnit
30
Java OOPs
24
Java 11
27
JDBC
30
Java Garbage Collection
53
Spring Framework
27
Java Swing
15
Java Design Patterns
41
JPA
30
Java 8
52
Hibernate
64
JMS
24
JSF
20
Java 17
50
Spring Boot
34
Servlets
30
Kotlin
80
EJB
57
Java Beans
30
Java Exception Handling
16
Java 15
Management
30
Pega
25
ITIL
30
Finance
30
JIRA
30
SAP MM
24
SAP ABAP
30
SCCM
30
Tally
Mobile Development
52
iOS
32
Ionic
14
Android
20
Mobile Computing
31
Xamarin
More
30
OSPF
30
Sqoop
16
JSON
30
Accounts Payable
25
Computer Graphics
30
IoT
30
Insurance
30
Scrum Master
30
Laravel
25
XML
32
GraphQL
30
Bitcoin
30
Active Directory
30
Microservices
38
Apache Kafka
20
Tableau
50
Adobe AEM
30
Kubernetes
30
OOPs
20
Fashion Designer
30
Desktop Support
56
IAS
30
PHP OOPs
40
Nursing
15
Linked List
30
Dynamic Programming
28
SharePoint
30
CICS
30
Yoga Teachers Training
80
Language in C
29
Behavioral
25
School Teachers
60
Full-Stack Developer
30
Statistics
40
Digital Marketing
24
Apache Spark
30
VISA
30
IIS
30
System Design
51
SEO
30
Google Analytics
42
Cloud Computing
48
BPO
10
ANT
30
Agile Methodology
49
HR Questions
52
REST API
30
Content Writer
24
SAS
28
Control System
20
Mainframe
40
Hadoop
20
Banking
20
Checkpoint
29
Blockchain
30
Technical Support
30
Sales
20
Nature
50
Chemistry
30
Docker
75
SDLC
40
Cryptography
26
RPA
30
Interview Tips
30
College Teachers
20
Blue Prism
28
Memcached
30
GIT
50
Algorithm
40
Business Analyst
30
Splunk
45
DevOps
30
Accounting
30
SSB
Scripting Language
20
JCL
59
JavaScript
58
Ajax
30
Express.js
30
Ansible
30
ES6
24
Electron.js
29
RxJS
30
NodeJS
50
ExtJS
22
jQuery
30
Vue.js
30
Svelte.js
50
Shell Scripting
30
Next.js
25
Knockout JS
38
TypeScript
27
PowerShell
30
Terraform
Security and Privacy
40
Ethical Hacking
50
Cyber Security
30
PII
20
Data Protection Act
30
BGP
Servers
16
Tomcat
8
Glassfish
30
Ubuntu
43
Linux
105
Unix
30
Weblogic
Testing
30
Cucumber
44
QTP
38
TestNG
30
Postman
30
SDET
40
Selenium
29
Kali Linux
30
Mobile Testing
38
UiPath
56
Quality Assurance
30
API Testing
30
Appium
20
ETL Testing
Web Development
30
Yii
50
Angular
27
PHP
54
Oracle JET(OJET)
30
Frontend Developer
24
Zend Framework
26
RichFaces
27
HTML
25
Flutter
30
CakePHP
40
React
26
React Native
21
Angular JS
50
Web Developer
32
Angular 8
23
Dojo
30
Symfony
27
GWT
74
CSS
74
Ruby On Rails
Ask Question
Mock Exams
Trending
42
C#.NET
30
HTML5
40
HTML
50
Language in C
17
CSS
30
PHP
30
C++
16
Google Cloud/GCP Certification
30
CCNA
75
AWS Cloud Certification
35
Azure Cloud Certification
66
SCWCD / OCWCD
82
OCJP / SCJP
44
Microsoft Excel
20
Data Structures
38
Computer basics
20
Microsoft Word
19
Computer Organization
20
Python
25
SQL
61
DBMS
71
Engineering Entrance
26
Food Quiz
67
Aptitude
54
General Knowledge / GK
71
Bank PO
114
India Law Entrance
72
Railway Recruitment
74
Medical Entrance
33
Hibernate
241
Core Java
35
CAT
15
Artificial Intelligence
37
Android
20
COVID-19
80
Nursing
15
JavaScript
.NET
42
C#.NET
67
VB.Net
12
Microsoft .NET
50
ASP.Net
AIML
113
Machine Learning
Basic Language
226
MATLAB
73
Rust
30
HTML5
94
COBOL
76
Halide Language
132
VLang
102
X++ Language
40
HTML
151
Swift
94
ABAP
17
XML
92
COBOL Script
50
Language in C
281
ZPL
17
CSS
10
Perl
136
Ruby on Rails
92
Go Language
142
R Language
96
A+ Language
81
Fortran
96
DLANG
88
F#
30
PHP
153
Kotlin
30
C++
Certification
16
Google Cloud/GCP Certification
30
CCNA
75
AWS Cloud Certification
35
Azure Cloud Certification
66
SCWCD / OCWCD
21
OCI Generative AI
82
OCJP / SCJP
Cloud
62
Snowflake
118
Microsoft Azure SQL Database
49
Google Cloud BigQuery
Computer Basics
44
Microsoft Excel
61
Operating Systems
20
Data Structures
25
Operating System
14
Linux
82
Information Technology
98
Computer Architecture
14
DOS
35
Computer Networking
38
Computer basics
73
Computer Science
20
Microsoft Word
23
Microsoft PowerPoint
25
Computer Hardware
19
Computer Organization
12
UNIX
10
Window 2003 Server
Data Science
20
Python
20
Django
147
Data Science
150
Posit
64
Power BI
Database
58
IBM Db2
124
MongoDB
77
Neo4j
15
Microsoft SQL Server
110
OrientDB
30
ORACLE
81
CouchDB
129
FileMaker
225
ADABAS
65
SQLite
25
SQL
61
DBMS
205
Informix
11
Database Administration
215
PostgreSQL
198
Redis
91
Teradata
19
Microsoft Access
40
Oracle SQL Developer
230
MariaDB
11
Data Warehousing
93
Applications Manager Database
39
MySQL
88
Database Management
53
Amazon RDS
Engineering
159
Mechanical Engineering
68
Chemical Engineering
115
Software Engineering
72
Network Engineering
16
Electronics Engineering
114
Control Systems Engineering
92
Telecommunications Engineering
15
System Analysis
74
Civil Engineering
129
Biomedical Engineering
74
Robotics
30
Electrical Engineering
174
Nanotechnology
12
Digital Electronics
83
Aerospace Engineering
83
Industrial Engineering
71
Engineering Entrance
106
Digital Signal Processing
46
Renewable Energy Engineering
GK
12
Days And Years
26
Food Quiz
61
Bollywood Movies Quiz
18
National Geographic
19
American Football
12
World Geography
15
Physics
67
Aptitude
18
Ramayana The Mythology
120
General QA
26
Hollywood Movies Quiz
31
IPL
54
General Knowledge / GK
30
Geometry
50
Badminton
19
General Science
26
Sports
19
Mahabharata Mythology
30
Politics Quiz
27
Football / Soccer
20
Trigonometry
20
Nature
15
Famous Personalities
India Entrance Exams
160
AFMC
89
NEET
110
SSC
146
XAT
147
GCET
71
Bank PO
132
ACEE
114
India Law Entrance
80
IBPS Clerk
145
CG PET
87
RRB ALP
108
TS EAMCET
149
KEAM
70
NDA Entrance
71
AP POLYCET
103
MHT CET
140
SBI PO
164
NATA
134
AILET
402
JKCET
152
IPU CET
122
RBI Assistant
100
Indian Economic Service Examin
148
CLAT
186
NID NEED
65
GATE
94
UPSC
87
SRMJEEE
120
CA (Chartered Accountant)
225
HPCET
72
Railway Recruitment
78
SSC CGL
119
UPCET
74
Medical Entrance
97
SSC CPO
125
KCET
88
Banking Exams
169
PTU Exam
129
AP EAMCET
92
Defence Exams
128
GPAT
103
VITEEE
84
JEE Main
108
JEXPO
212
WBJEE
95
IAS
378
NIFT
112
AIIMS
67
JEECUP Entrance exam
156
JEE Advanced
97
CDS Exam
20
JEE
114
TNEA
190
OJEE
82
IBPS PO
82
BCECE
73
Indian Economic Service Examin
77
NEET PG
92
Entrance Exams
85
CMC Vellore
172
COMEDK UGET
93
LAWCET Entrance Exam
685
JIPMER
68
CEED
110
RRB Exams
119
INI CET
137
CUET
55
Engineering Entrance Exam
66
AIPVT Entrance Exam
117
SSC CHSL
Java
30
EJB
42
Java 8
39
JSP
39
Struts
32
JDBC
10
JMS
35
Servlets
33
Hibernate
39
Spring Boot
23
J2EE
23
Java Swing
241
Core Java
28
J2ME
Management
35
CAT
30
PMP
20
System Analysis(SDLC)
20
Human Resource
15
Artificial Intelligence
Mobile Development
38
React Native
More
37
Android
100
CLAT
101
GATE
16
English Vocabulary
10
Word Ordering
37
Medical Surgery
181
DIGITAL Command Language
132
BITSAT
20
COVID-19
20
Easy Mathematics
10
Analogous Pair
50
Bootstrap
87
Unity
95
SignalR
27
PEGA
102
NEET
10
Sentence Ordering
80
Nursing
15
Word Series
50
DevOps
23
Good Clinical Practice (GCP)
Personality Development
30
Yoga Teachers Training Level 1
30
Yoga Teachers Training Level 2
35
Yoga Teachers Training
30
Yoga Teachers Training Level 3
Scripting Language
15
JavaScript
26
Ajax
40
AngularJS
261
C shell
144
DLANG Shell
92
ECMAScript
58
Node.js
14
jQuery
Security and Privacy
81
Cybersecurity
Testing
25
Software Testing
10
QTP
Web Development
141
CodeIgniter
62
Flask
156
Laravel
78
Express.js
43
NextJS
282
Web Development
75
Vue.js
121
ReactJS
Make Homepage
Bookmark this page
Subscribe Email Address
Difference between Java 12 and Java 13
Java 12
Interview
Online Test
Java 13
Interview
Online Test
Features Added:
- String Class New Methods: indent method adjusts the indentation of each line, transform method to revert the string.
- File::mismatch Method: New mismatch method in the nio.file.Files utility class. The method is used to compare two files and find the position of the first mismatched byte in their contents.
- Teeing Collector: A new teeing collector as an addition to the Collectors class. It is a composite of two downstream collectors. Every element is processed by both downstream collectors. Then their results are passed to the merge function and transformed into the final result.
- Compact Number Formatting: It's designed to represent a number in a shorter form, based on the patterns provided by a given locale.
- Switch Expressions (Preview): The syntax of switch statement got introduced. New switch statements are not only more compact and readable. They also remove the need for break statements. The code execution will not fall through after the first match.
- Pattern Matching for instanceof (Preview): Earlier if statements together with instanceof, we would have to explicitly typecast the object to access its features, but now we need not to typecast separately after instanceof.
- Shenandoah: A Low-Pause-Time Garbage Collector: It is now experimental garbage collector and not the default GC. It reduces the GC pause times by doing evacuation work simultaneously with the running Java threads.
- Microbenchmark Suite: Around 100 microbenchmark tests added in JDK which will perform continuous performance testing on a JVM.
- Default CDS Archives: The Class Data Sharing (CDS) feature helps reduce the startup time and memory footprint between multiple Java Virtual Machines.
Features Added:
- Switch Expressions: New yield statement got added. Using yield, we can now effectively return values from a switch expression. It's now easy to implement the strategy pattern using the new switch.
- Text Blocks: It is for multi-line Strings such as embedded JSON, XML, HTML, etc. Now there is no need to escape double quotes or to add a carriage return.
- Dynamic CDS Archives: Class data sharing (CDS) has been a prominent feature of Java HotSpot VM for a while now. It allows class metadata to be shared across different JVMs to reduce startup time and memory footprint.
- ZGC: It now returns uncommitted memory to the operating system by default, up until the specified minimum heap size is reached.
Related differences
Java 11 vs Java 12
Java 12 vs Java 13
Java 13 vs Java 14
Is it helpful?
Yes
No
Get differences from below
JSF vs JSP
JSP vs Servlets
JSP vs ASP
JSF 1.2 vs JSF 2.0
JSF 2.0 vs JSF 2.1
Java 5 vs Java 6
Java 6 vs Java 6 update 10
Java 6 vs Java 7
Java 6 update 10 vs Java 6 update 12
Java 1.0 vs Java 1.1
Java 1.1 vs Java 1.2
Java 1.2 vs Java 1.3
Java 1.3 vs Java 1.4
Java 1.4 vs Java 5
Struts 1 vs Struts 2
Struts 1.1 vs Struts 1.2
Struts 1.2 vs Struts 1.3
Linux vs Unix
C vs C++
Java vs C++
Java vs J2EE
Java vs Kotlin
Java vs .NET
Struts vs JSF
Struts vs Spring
Spring vs Spring Boot
Apache vs IIS
Jboss vs Tomcat
Jboss vs WebLogic
WebLogic vs Websphere
JavaScript vs Jquery
JavaScript vs VBScript
JavaScript vs TypeScript
Jquery vs AngularJS
HTML vs XML
HTML vs XHTML
HTML vs DHTML
HTML 5 vs HTML 4
Java 7 vs Java 8
EJB 2.0 vs EJB 3.0
EJB 3.0 vs Spring
JDBC vs Hibernate
JDBC vs JPA
JDBC 3.0 vs JDBC 4.0
CSS 2 vs CSS 3
EJB 1.0 vs EJB 2.0
AWT vs Swing
Swing vs Applet
PHP vs JSP
J2EE vs J2ME
Java 8 vs Java 9
JPA vs Hibernate
MVC 1 vs MVC 2
Hibernate 3 vs Hibernate 4
Spring 3.0 vs Spring 4.0
Java 9 vs Java 10
jQuery Mobile vs Bootstrap
JavaBeans vs EJB
JSON vs XML
RESTful Web Services vs SOAP Web Services
Spring 2.5 vs Spring 3.0
HTTP vs HTTPS
AngularJS vs NodeJS
AngularJS vs Angular
NodeJS vs Java
NodeJS vs Spring Boot
NodeJS vs Golang
PaaS vs IaaS
SaaS vs PaaS
SaaS vs IaaS
On-Premise vs Cloud Computing
Monolithic vs Microservices
Java 10 vs Java 11
Spring MVC vs Spring Boot
Golang vs Java
Python vs Java
AWS vs Azure
AWS vs Google Cloud/GCP
Ansible vs Terraform
Ansible vs Puppet
Puppet vs Terraform
OpenID Connect vs OAuth 2.0
SAML vs OpenID Connect
Java 11 vs Java 12
Java 12 vs Java 13
Java 13 vs Java 14
Java 14 vs Java 15
Java 15 vs Java 16
Java 16 vs Java 17
Python 2 vs Python 3
RDBMS vs Hadoop
Angular vs React
Java 17 vs Java 18
GraphQL vs RESTful Web Services (REST API)
RESTful Web Services (REST API) vs gRPC
Android vs iOS
TikTok vs Instagram
Instagram vs YouTube
TensorFlow vs PyTorch
OracleJDK vs OpenJDK