<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2166758479291655016</id><updated>2026-09-13T07:04:33.112-05:00</updated><title type='text'>Madhu&#39;s Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>284</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-8398465070073440799</id><published>2026-03-26T08:32:00.005-05:00</published><updated>2026-03-27T16:23:58.323-05:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;&amp;nbsp;My Attempt to learn AI&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 3 []&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;GPT &lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt; Generative Pretrained Transformer&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Created by Google in 2017 with the publication of the paper &quot;Attention is all you need&quot;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Its a design on how an AI system processes language&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;with its introduction computers became good at understanding languages&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;The strength of Transformers is &quot;Attention&quot;, which is the ability to look at all the words in a sentence at once and understand the relationship with each other.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;The dog chased its tail becoz &lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;it&lt;/span&gt;&lt;/u&gt; was bored. Here it refers to dog and not tail.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Generative means when we ask a question it constructs the answer and not search the database based on patterns it learned from pre-training.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;AI existed long before 2017, &lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;chatbots, spam filters &lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;never felt truly intelligent&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Bad at understanding&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Core Idea of AI is to predict what comes next, but with the introduction of GPT, the execution became more efficient&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;LLM (Large Language Model) are good at good at analyzing languages and predicting the response.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;It is a very impressive text generator&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Large in LLM can be due to the fact that&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;The model has been trained on a large data set&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;It has large set of parameters&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/8398465070073440799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/8398465070073440799' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/8398465070073440799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/8398465070073440799'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2026/03/blog-post.html' title=''/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-673590567637012975</id><published>2024-05-02T07:24:00.005-05:00</published><updated>2024-05-02T07:24:49.621-05:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Python Basics&lt;/span&gt;&lt;/p&gt;&lt;p&gt;How to check the version of Python interpreter&lt;/p&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim8iwVi5iM6QfJS1RipIY0PSS12pNS2Z5TuHhNkUJrokOQPf0HdOHEXIK3FNJOS0EzmYFK4heC3n3HAtDDeYZE7wo22yQyXdUqCxe0PiwxUwb4IXk3ZHzEEFDNZNjtDGfiA4_P7yup_OO0q_lPSvGSJqQoWIJ010DppW8tFPyH7M7odddiwCyFazKXaMXG/s796/python_interpreter.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;84&quot; data-original-width=&quot;796&quot; height=&quot;34&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim8iwVi5iM6QfJS1RipIY0PSS12pNS2Z5TuHhNkUJrokOQPf0HdOHEXIK3FNJOS0EzmYFK4heC3n3HAtDDeYZE7wo22yQyXdUqCxe0PiwxUwb4IXk3ZHzEEFDNZNjtDGfiA4_P7yup_OO0q_lPSvGSJqQoWIJ010DppW8tFPyH7M7odddiwCyFazKXaMXG/s320/python_interpreter.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;mac terminal&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/673590567637012975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/673590567637012975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/673590567637012975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/673590567637012975'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2024/05/blog-post.html' title=''/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim8iwVi5iM6QfJS1RipIY0PSS12pNS2Z5TuHhNkUJrokOQPf0HdOHEXIK3FNJOS0EzmYFK4heC3n3HAtDDeYZE7wo22yQyXdUqCxe0PiwxUwb4IXk3ZHzEEFDNZNjtDGfiA4_P7yup_OO0q_lPSvGSJqQoWIJ010DppW8tFPyH7M7odddiwCyFazKXaMXG/s72-c/python_interpreter.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-7510073622651634787</id><published>2023-03-22T13:19:00.002-05:00</published><updated>2023-03-22T13:19:25.986-05:00</updated><title type='text'>Common JPA explanations</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;**This is just for reference only, most of the source of these infor is taken from stackoverflow.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong style=&quot;border: 0px; box-sizing: inherit; color: #232629; font-size: 15px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;When to use eager loading&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;ol style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1.1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;--_pr-blockquote-mt: calc(1.1em / 2); --_pr-img-mb: 0; border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px calc(0.55em); overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;In &quot;one side&quot; of one-to-many relations that you sure are used every where with main entity. like User property of an Article. Category property of a Product.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;--_pr-blockquote-mt: calc(1.1em / 2); --_pr-img-mb: 0; border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Generally When relations are not too much and eager loading will be good practice to reduce further queries on server.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;--_pr-img-mb: 0; background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1.1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;When to use lazy loading&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;ol style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1.1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;--_pr-blockquote-mt: calc(1.1em / 2); --_pr-img-mb: 0; border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px calc(0.55em); overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;Almost on every &quot;collection side&quot; of one-to-many relations. like Articles of User or Products of a Category&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;--_pr-blockquote-mt: calc(1.1em / 2); --_pr-img-mb: 0; border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;You exactly know that you will not need a property instantly.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;--_pr-img-mb: 0; background-color: white; border: 0px; box-sizing: inherit; clear: both; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #232629; font-family: courier;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://stackoverflow.com/questions/31366236/lazy-loading-vs-eager-loading&quot;&gt;https://stackoverflow.com/questions/31366236/lazy-loading-vs-eager-loading&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;--_pr-img-mb: 0; background-color: white; border: 0px; box-sizing: inherit; clear: both; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #232629; font-family: -apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/7510073622651634787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/7510073622651634787' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/7510073622651634787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/7510073622651634787'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2023/03/common-jpa-explanations.html' title='Common JPA explanations'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-8854993442156794909</id><published>2022-12-20T02:46:00.004-06:00</published><updated>2022-12-20T02:46:23.183-06:00</updated><title type='text'>Could not connect to the database. Exiting now... MongooseServerSelectionError: connection timed out</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&amp;nbsp;Getting the following error in AWS, while trying to run node js docker container&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;color: #fc2118; font-variant-ligatures: no-common-ligatures;&quot;&gt;[2022-12-19T19:03:56.378] [ERROR] server:825&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt; Could not connect to the database. Exiting now... MongooseServerSelectionError: connection timed out&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at NativeConnection.Connection.openUri (/app/node_modules/mongoose/lib/connection.js:825:32)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at /app/node_modules/mongoose/lib/index.js:417:10&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at /app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:41:5&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at new Promise (&amp;lt;anonymous&amp;gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at promiseOrCallback (/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:40:10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at Mongoose._promiseOrCallback (/app/node_modules/mongoose/lib/index.js:1270:10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at Mongoose.connect (/app/node_modules/mongoose/lib/index.js:416:20)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at Object.&amp;lt;anonymous&amp;gt; (/app/server.js:30:10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;at Generator.next (&amp;lt;anonymous&amp;gt;) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;reason: TopologyDescription {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;type: &#39;Unknown&#39;,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;servers: Map(1) { &#39;3.129.14.175:27017&#39; =&amp;gt; [ServerDescription] },&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;stale: false,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;compatible: true,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;heartbeatFrequencyMS: 10000,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;localThresholdMS: 15,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;setName: null,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;maxElectionId: null,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;maxSetVersion: null,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;commonWireVersion: 0,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;logicalSessionTimeoutMinutes: null&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;},&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;code: undefined&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: trebuchet; font-size: medium;&quot;&gt;Make sure that the node.js app configuration uses the white listed mongo db internal IP address.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/8854993442156794909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/8854993442156794909' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/8854993442156794909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/8854993442156794909'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2022/12/could-not-connect-to-database-exiting.html' title='Could not connect to the database. Exiting now... MongooseServerSelectionError: connection timed out'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-4454757246698303354</id><published>2022-12-10T08:22:00.003-06:00</published><updated>2022-12-10T08:23:36.653-06:00</updated><title type='text'>bcrypt error while running zest</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 class=&quot;fs-headline1 ow-break-word mb8 flex--item fl1&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #232629; flex: 1 1 auto; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: var(--fs-headline1) !important; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: inherit; line-height: 1.3; margin-bottom: var(--su8) !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;question-hyperlink&quot; href=&quot;https://stackoverflow.com/questions/73220580/bcrypt-lib-node-mach-o-file-but-is-an-incompatible-architecture-have-ar&quot; style=&quot;border: 0px; box-sizing: inherit; cursor: pointer; font-family: var(--theme-post-title-font-family); font-size: var(--fs-headline1); font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.35; margin: 0px; padding: 0px; text-decoration-line: none; user-select: auto; vertical-align: baseline;&quot;&gt;&quot;../bcrypt_lib.node&#39; (mach-o file, but is an incompatible architecture (have (arm64), need (x86_64)))&quot; while running tests&lt;/a&gt;&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;This is probable you are using an old version of node. check by&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;nvm list&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;nvm use v16.17.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To check the current version of node running, in the terminal use the command&lt;/p&gt;&lt;pre class=&quot;lang-js s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-javascript&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;node --version
&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Output in the Terminal :&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://i.stack.imgur.com/S6za0.png&quot; rel=&quot;nofollow noreferrer&quot; style=&quot;border: 0px; box-sizing: inherit; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; user-select: auto; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;enter image description here&quot; src=&quot;https://i.stack.imgur.com/S6za0.png&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 100%; padding: 0px; vertical-align: bottom;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;The following command will list the different node versions already installed in your system.&lt;/p&gt;&lt;pre class=&quot;lang-js s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-javascript&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;nvm ls
&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Output in the Terminal :&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://i.stack.imgur.com/vbiaY.png&quot; rel=&quot;nofollow noreferrer&quot; style=&quot;border: 0px; box-sizing: inherit; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; user-select: auto; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;enter image description here&quot; src=&quot;https://i.stack.imgur.com/vbiaY.png&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 100%; padding: 0px; vertical-align: bottom;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To switch to more recent version of the node ie, v16.17.0, use the following command in the terminal&lt;/p&gt;&lt;pre class=&quot;lang-js s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-javascript&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;nvm use v16&lt;span class=&quot;hljs-number&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.17&lt;/span&gt;&lt;span class=&quot;hljs-number&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Output in the Terminal :&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://i.stack.imgur.com/fg9PM.png&quot; rel=&quot;nofollow noreferrer&quot; style=&quot;border: 0px; box-sizing: inherit; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; user-select: auto; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;enter image description here&quot; src=&quot;https://i.stack.imgur.com/fg9PM.png&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 100%; padding: 0px; vertical-align: bottom;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Now confirm the current version of the node by&lt;/p&gt;&lt;pre class=&quot;lang-js s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-javascript&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;node --version
&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Output in Terminal:&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://i.stack.imgur.com/GWWIl.png&quot; rel=&quot;nofollow noreferrer&quot; style=&quot;border: 0px; box-sizing: inherit; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; user-select: auto; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;enter image description here&quot; src=&quot;https://i.stack.imgur.com/GWWIl.png&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 100%; padding: 0px; vertical-align: bottom;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/4454757246698303354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/4454757246698303354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4454757246698303354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4454757246698303354'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2022/12/bcrypt-error-while-running-zest.html' title='bcrypt error while running zest'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-4943919517733638174</id><published>2022-10-16T18:42:00.002-05:00</published><updated>2022-10-16T18:42:14.287-05:00</updated><title type='text'>Got the error while running a golang for the first time in mac</title><content type='html'>&lt;h1 class=&quot;fs-headline1 ow-break-word mb8 flex--item fl1&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #232629; flex: 1 1 auto !important; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: inherit; line-height: 1.3; margin-bottom: var(--su8) !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-wrap: break-word !important; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a class=&quot;question-hyperlink&quot; href=&quot;https://stackoverflow.com/questions/60771344/go-build-i-cause-open-usr-local-go-pkg-darwin-amd64-runtime-cgo-a-permission&quot; style=&quot;border: 0px; box-sizing: inherit; cursor: pointer; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.35; margin: 0px; padding: 0px; text-decoration-line: none; user-select: auto; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: small;&quot;&gt;go build -i cause open /usr/local/go/pkg/darwin_amd64/runtime/cgo.a: permission denied&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times;&quot;&gt;Navigate to the folder and type in the following command&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;sudo chmod -R 777 /usr/local/go, which will prompt to type in the mac password.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhP7ax2WEWSXAHGPagJd9fzi5qulohLtdXdJDAmkkwkKyhIwmUmon9GYVVJE1Ax2rpw3wiM7I0dKYU7Fm62GItrpnh4z3B4Ovy4-fSQRWrT0PWfZEEfmhV7FRE3OusxpKsugHoBaEyVu0O_7F8-tF18njjlDopv8LvX0Xis6wtGtNYYyLLPrW08l0Odrg&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;75&quot; data-original-width=&quot;469&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhP7ax2WEWSXAHGPagJd9fzi5qulohLtdXdJDAmkkwkKyhIwmUmon9GYVVJE1Ax2rpw3wiM7I0dKYU7Fm62GItrpnh4z3B4Ovy4-fSQRWrT0PWfZEEfmhV7FRE3OusxpKsugHoBaEyVu0O_7F8-tF18njjlDopv8LvX0Xis6wtGtNYYyLLPrW08l0Odrg=w571-h91&quot; width=&quot;571&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/4943919517733638174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/4943919517733638174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4943919517733638174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4943919517733638174'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2022/10/got-error-while-running-golang-for.html' title='Got the error while running a golang for the first time in mac'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEhP7ax2WEWSXAHGPagJd9fzi5qulohLtdXdJDAmkkwkKyhIwmUmon9GYVVJE1Ax2rpw3wiM7I0dKYU7Fm62GItrpnh4z3B4Ovy4-fSQRWrT0PWfZEEfmhV7FRE3OusxpKsugHoBaEyVu0O_7F8-tF18njjlDopv8LvX0Xis6wtGtNYYyLLPrW08l0Odrg=s72-w571-h91-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-4533690441082321203</id><published>2022-08-31T10:11:00.003-05:00</published><updated>2022-08-31T10:12:12.847-05:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Spring Framework Features&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #3d3b49;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;core technologies :- dependency of injection, events, resources, internationalization, validation, data binding, type conversion, the SpEL expression language, and then the AOP. The AOP, the Aspect-Oriented Programming is one of the main technologies. And I think this is the heart of the Spring Framework.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #3d3b49;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;testing: mock object, TestContext framework. If you want to just test your controllers from the Spring MVC, you can do that with the Spring MVC Test. And of course you have a way to test a client&#39;s request calls with a WebTestClient.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #3d3b49;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;data access:- transactions, JDBC, DAO support, ORM. Marshalling with XML&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #3d3b49;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Spring MVC and the Spring WebFlux frameworks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #3d3b49;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;integration:- remotely, messaging, all the way to do JMX, email, task, scheduling, and cache, language:- Kotlin, Groovy, and any other dynamic languages.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/4533690441082321203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/4533690441082321203' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4533690441082321203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4533690441082321203'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2022/08/framework-features-core-technologies.html' title=''/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-1260147786690898203</id><published>2022-08-03T12:25:00.011-05:00</published><updated>2022-08-24T09:45:38.201-05:00</updated><title type='text'>Data Types in Java</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&amp;nbsp;Primitive data types&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;These are the basic building block data types in Java&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;They are boolean, byte, char, short, int, long, float, double&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;u&gt;Java Primitive Data types and their limits&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWlIqee72_xC9ttxW9Sa1XqfUYHiu5kqDBe6Dc_Zz25CZw2m9eG2iwiBXCc5tqmWoOTvprbrgVeOri8nKV1lZDNNC1b90ovr_KdBBBu4TO3ZsNUGu1l4MYb4WFEATbziWxfnhIuqc9Mal_ZP0VKY2eRt-L3uJauzLcObgOWZJxziS1sh-H82neVnksYw/s1266/2022_08_23_13_39_17_Java_Data_Types.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;394&quot; data-original-width=&quot;1266&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWlIqee72_xC9ttxW9Sa1XqfUYHiu5kqDBe6Dc_Zz25CZw2m9eG2iwiBXCc5tqmWoOTvprbrgVeOri8nKV1lZDNNC1b90ovr_KdBBBu4TO3ZsNUGu1l4MYb4WFEATbziWxfnhIuqc9Mal_ZP0VKY2eRt-L3uJauzLcObgOWZJxziS1sh-H82neVnksYw/w551-h185/2022_08_23_13_39_17_Java_Data_Types.png&quot; width=&quot;551&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;If you try to put a value greater than the maximum value for a data type, it will result in an Overflow&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;If you try to put a value lesser than the minimum value for a data type, it will result in an Underflow&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Int&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &amp;quot;JetBrains Mono&amp;quot;, monospace; font-size: 9.8pt;&quot;&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;package &lt;/span&gt;com.hello.pkg&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;public class &lt;/span&gt;BasicDataTypes {&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #cc7832;&quot;&gt;public static void &lt;/span&gt;&lt;span style=&quot;color: #ffc66d;&quot;&gt;main&lt;/span&gt;(String[] args) {&lt;br /&gt;        &lt;span style=&quot;color: #cc7832;&quot;&gt;int &lt;/span&gt;intMinValue = Integer.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;MIN_VALUE&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        int &lt;/span&gt;intMaxValue = Integer.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;MAX_VALUE&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        &lt;/span&gt;System.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Min: &quot; &lt;/span&gt;+ intMinValue + &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; , Max: &quot; &lt;/span&gt;+ intMaxValue)&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        &lt;/span&gt;System.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Overflow: &quot; &lt;/span&gt;+ (intMaxValue + &lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;) + &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; , Underflow: &quot; &lt;/span&gt;+ (intMinValue -&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;))&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        int &lt;/span&gt;literalValue = &lt;span style=&quot;color: #6897bb;&quot;&gt;2_147_483_647&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        &lt;/span&gt;System.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Int as literal Value: &quot; &lt;/span&gt;+ literalValue)&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        byte &lt;/span&gt;byteMinValue = Byte.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;MIN_VALUE&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        byte &lt;/span&gt;byteMaxValue = Byte.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;MAX_VALUE&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        &lt;/span&gt;System.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Byte Min: &quot; &lt;/span&gt;+ byteMinValue + &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; , Byte Max: &quot; &lt;/span&gt;+ byteMaxValue)&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        int &lt;/span&gt;shortMinValue = Short.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;MIN_VALUE&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        int &lt;/span&gt;shortMaxValue = Short.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;MAX_VALUE&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        &lt;/span&gt;System.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Short Min: &quot; &lt;/span&gt;+ shortMinValue + &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; , Short Max: &quot; &lt;/span&gt;+ shortMaxValue)&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;    &lt;/span&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Output&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Min: -2147483648 , Max: 2147483647&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Overflow: -2147483648 , Underflow: 2147483647&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Int as literal Value: 2147483647&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Byte Min: -128 , Byte Max: 127&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Short Min: -32768 , Short Max: 32767&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Java treats Double as the default floating point number&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;For precise calculations like currency calculations Java recommends using BigDecimal&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;A float gives you approx. 6-7 decimal digits precision while a double gives you approx. 15-16. Also the range of numbers is larger for double.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;A double needs 8 bytes of storage space while a float needs just 4 bytes.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;This will give error:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;lang-java s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-java&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;hljs-title class_&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MyClass&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;hljs-title function_&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(String args[])&lt;/span&gt; {
        &lt;span class=&quot;hljs-type&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;hljs-variable&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-variable); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;hljs-operator&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;hljs-number&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0.5&lt;/span&gt;;
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;/MyClass.java:3: error: incompatible types: possible lossy conversion from double to float float a = 0.5;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;This will work perfectly fine&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;lang-java s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-java&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;hljs-title class_&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MyClass&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;hljs-title function_&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(String args[])&lt;/span&gt; {
        &lt;span class=&quot;hljs-type&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;double&lt;/span&gt; &lt;span class=&quot;hljs-variable&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-variable); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;hljs-operator&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;hljs-number&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0.5&lt;/span&gt;;
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;This will also work perfectly fine&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;lang-java s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-java&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;hljs-title class_&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MyClass&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;hljs-title function_&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(String args[])&lt;/span&gt; {
        &lt;span class=&quot;hljs-type&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;float&lt;/span&gt; &lt;span class=&quot;hljs-variable&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-variable); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;hljs-operator&quot; style=&quot;border: 0px; box-sizing: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt; (&lt;span class=&quot;hljs-type&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;float&lt;/span&gt;)&lt;span class=&quot;hljs-number&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-namespace); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0.5&lt;/span&gt;;
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;strong style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Reason&lt;/strong&gt;&amp;nbsp;: Java by default stores real numbers as double to ensure higher precision.&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/1260147786690898203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/1260147786690898203' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/1260147786690898203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/1260147786690898203'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2022/08/data-types-in-java.html' title='Data Types in Java'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWlIqee72_xC9ttxW9Sa1XqfUYHiu5kqDBe6Dc_Zz25CZw2m9eG2iwiBXCc5tqmWoOTvprbrgVeOri8nKV1lZDNNC1b90ovr_KdBBBu4TO3ZsNUGu1l4MYb4WFEATbziWxfnhIuqc9Mal_ZP0VKY2eRt-L3uJauzLcObgOWZJxziS1sh-H82neVnksYw/s72-w551-h185-c/2022_08_23_13_39_17_Java_Data_Types.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-971489212131309495</id><published>2022-08-01T15:11:00.003-05:00</published><updated>2022-08-01T17:30:50.333-05:00</updated><title type='text'>Hello World Java Program</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;This is how we would write a Hello World program in java&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &amp;quot;JetBrains Mono&amp;quot;, monospace; font-size: 9.8pt;&quot;&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;package &lt;/span&gt;com.hello.pkg&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;public class &lt;/span&gt;HelloWorld {&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: #cc7832;&quot;&gt;public static void &lt;/span&gt;&lt;span style=&quot;color: #ffc66d;&quot;&gt;main&lt;/span&gt;(String args[]) {&lt;br /&gt;        System.&lt;span style=&quot;color: #9876aa; font-style: italic;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;)&lt;span style=&quot;color: #cc7832;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;    &lt;/span&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Here is the explanation&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &amp;quot;JetBrains Mono&amp;quot;, monospace; font-size: 9.8pt;&quot;&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;public class &lt;/span&gt;HelloWorld&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;(1) public - It is an access modifier&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;(2) class - This is a Java class&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &amp;quot;JetBrains Mono&amp;quot;, monospace; font-size: 9.8pt;&quot;&gt; &lt;span style=&quot;color: #cc7832;&quot;&gt;public static void &lt;/span&gt;&lt;span style=&quot;color: #ffc66d;&quot;&gt;main&lt;/span&gt;(String args[]) &lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;(1) public - public access modifier on the method&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;(2) static - the method can be accessed without creating an object of HellloWorld class&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;(3) void - there is no return type for main method&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;(4) main - name of the method, the main method is the entry point for any java application&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;(5)&amp;nbsp;&lt;code style=&quot;border-radius: var(--br-sm); border: 0px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: var(--su2) var(--su4); vertical-align: baseline; white-space: pre-wrap;&quot;&gt;String[] args&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #232629;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #232629;&quot;&gt;means an array of sequence of characters (Strings) that are passed to the &quot;main&quot; function. This happens when a program is executed.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Example when you execute a Java program via the command line:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;background-color: var(--black-075); border-radius: var(--br-sm); border: 0px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: var(--su2) var(--su4); vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;java HelloWorld test one&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Therefore, the array will store:&amp;nbsp;&lt;code style=&quot;background-color: var(--black-075); border-radius: var(--br-sm); border: 0px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: var(--su2) var(--su4); vertical-align: baseline; white-space: pre-wrap;&quot;&gt;[&quot;test&quot;, &quot;one&quot;]&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/971489212131309495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/971489212131309495' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/971489212131309495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/971489212131309495'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2022/08/hello-world-java-program.html' title='Hello World Java Program'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-549870565862598370</id><published>2021-05-26T10:26:00.004-05:00</published><updated>2021-05-26T10:28:08.953-05:00</updated><title type='text'>Postman Error: Maximum response size reached</title><content type='html'>&lt;p&gt;&amp;nbsp;While I was trying to perform a GET operation in POSTMAN. I got the error&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;OpenSans, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: rgba(235, 32, 19, 0.2); color: #f0f0f0; text-align: center; white-space: pre-wrap;&quot;&gt;Error: Maximum response size reached&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;OpenSans, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: rgba(235, 32, 19, 0.2); color: #f0f0f0; text-align: center; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEickXApEDMO2ymPeZVqr7f4XUxXXiPvm2_GwjWdfWnuk56oLZuHkulwJCh0lCQV-rylK0Llep4uawfSaDjDDjH784-DqtY9s55IALuX_O_-qJFDbZFmmC1TK4JykgvNJl8I1wywmIriMIVx/s1461/postman_error.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;489&quot; data-original-width=&quot;1461&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEickXApEDMO2ymPeZVqr7f4XUxXXiPvm2_GwjWdfWnuk56oLZuHkulwJCh0lCQV-rylK0Llep4uawfSaDjDDjH784-DqtY9s55IALuX_O_-qJFDbZFmmC1TK4JykgvNJl8I1wywmIriMIVx/s320/postman_error.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span face=&quot;OpenSans, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: rgba(235, 32, 19, 0.2); color: #f0f0f0; text-align: center; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;OpenSans, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: rgba(235, 32, 19, 0.2); color: #f0f0f0; text-align: center; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;OpenSans, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: rgba(235, 32, 19, 0.2); color: #f0f0f0; text-align: center; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;OpenSans, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: rgba(235, 32, 19, 0.2); color: #f0f0f0; text-align: center; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #212529; font-family: Roboto; font-weight: bolder; margin-bottom: 0px;&quot;&gt;then I read about-&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #212529; font-family: Roboto; font-weight: bolder; margin-bottom: 0px;&quot;&gt;Max response size:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: Roboto;&quot;&gt;&amp;nbsp;Option to limit the size of response (in Megabytes) that is rendered by Postman. If the limit is exceeded, Postman will inform you that the received response is large (default limit: 50 MB) and provide options to increase the size limit or download the response.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;and my response was about 62 MB, so need to increase it&lt;/p&gt;&lt;p&gt;Click on Settings and the change the Max response size in MB to 100 to fix my problem.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikkhRd9KNjCI80ZvTsXh5xInaMe7lyIQYON8w-D2toD89nm5UdWctO7fdJ9wL4zBChnVs5sNhNtFAq0DOQBfIRulIH5u04HZlg35fqW3XGJ-l1Z7fAc6Gw0g1rVqIxJyLCWLlFvdxC0aGU/s709/Postman_settings.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;643&quot; data-original-width=&quot;709&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikkhRd9KNjCI80ZvTsXh5xInaMe7lyIQYON8w-D2toD89nm5UdWctO7fdJ9wL4zBChnVs5sNhNtFAq0DOQBfIRulIH5u04HZlg35fqW3XGJ-l1Z7fAc6Gw0g1rVqIxJyLCWLlFvdxC0aGU/s320/Postman_settings.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/549870565862598370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/549870565862598370' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/549870565862598370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/549870565862598370'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2021/05/postman-error-maximum-response-size.html' title='Postman Error: Maximum response size reached'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEickXApEDMO2ymPeZVqr7f4XUxXXiPvm2_GwjWdfWnuk56oLZuHkulwJCh0lCQV-rylK0Llep4uawfSaDjDDjH784-DqtY9s55IALuX_O_-qJFDbZFmmC1TK4JykgvNJl8I1wywmIriMIVx/s72-c/postman_error.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-5887126025184051431</id><published>2020-11-22T15:18:00.006-06:00</published><updated>2020-11-22T15:18:53.345-06:00</updated><title type='text'>node:42932) Warning: To load an ES module, set &quot;type&quot;: &quot;module&quot; in the package.json or use the .mjs extension.</title><content type='html'>&lt;p&gt;&amp;nbsp;This error message is basically saying that in order for us to start using import feature of ESM then we need to specify the following.&lt;/p&gt;&lt;p&gt;As specified in the warning setting &quot;type&quot;: &quot;module&quot; in the package.json solves the problem.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEE3BtoilLqj2RW7YXyKLJNxHZo47PVxTikeXGdVDRV_irYIOP9AXA3reFqjgf1z0EUwaL0MO8ss7MqsPxuAHLppK-sdlzHlMXdgJtnjbN0qAee-WFz5lzzZ1c4bzeAf1di91g1bMf0GIL/s664/package-json.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;559&quot; data-original-width=&quot;664&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEE3BtoilLqj2RW7YXyKLJNxHZo47PVxTikeXGdVDRV_irYIOP9AXA3reFqjgf1z0EUwaL0MO8ss7MqsPxuAHLppK-sdlzHlMXdgJtnjbN0qAee-WFz5lzzZ1c4bzeAf1di91g1bMf0GIL/s320/package-json.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/5887126025184051431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/5887126025184051431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/5887126025184051431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/5887126025184051431'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/11/node42932-warning-to-load-es-module-set.html' title='node:42932) Warning: To load an ES module, set &quot;type&quot;: &quot;module&quot; in the package.json or use the .mjs extension.'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEE3BtoilLqj2RW7YXyKLJNxHZo47PVxTikeXGdVDRV_irYIOP9AXA3reFqjgf1z0EUwaL0MO8ss7MqsPxuAHLppK-sdlzHlMXdgJtnjbN0qAee-WFz5lzzZ1c4bzeAf1di91g1bMf0GIL/s72-c/package-json.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-6568593229308512054</id><published>2020-10-25T09:41:00.011-05:00</published><updated>2020-10-25T10:07:11.084-05:00</updated><title type='text'>Constants in Go</title><content type='html'>&lt;p&gt;&amp;nbsp;Constants are declared are as follows&lt;/p&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;soundSpeed&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;343&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(soundSpeed)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Some key points&lt;/p&gt;&lt;p&gt;A value should be assigned to a constant when it is declared&lt;/p&gt;&lt;p&gt;We cannot declare a constant and initialize it later.&lt;/p&gt;&lt;p&gt;Once a constant is created you cannot re-assign a value to that constant.&lt;/p&gt;&lt;p&gt;You cannot assign a value of a constant as a return value of a function, since the value of a constant is evaluated at compile time and methods are evaluated at runtime.&lt;/p&gt;&lt;p&gt;Implicit declaration syntax&lt;/p&gt;&lt;p&gt;Here the compiler will interpret the type as it runs to it&lt;/p&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;soundSpeed&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;343&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(soundSpeed)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(soundSpeed&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;3.65&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Output:&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4dB-yIGvzlwsM3ntJRsieWfkY52gZtleaZ8ZjkTSZJF85geEGQE2sqbU3p-wrgHJ6PQDKEnfMvS_yFSRGwRenPoW5DN0IcV-aezFi1qKL-aXyGWS-15pz2CRmsigbNqP9nyXwA9i-gWOx/s353/go-implicit-const.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;64&quot; data-original-width=&quot;353&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4dB-yIGvzlwsM3ntJRsieWfkY52gZtleaZ8ZjkTSZJF85geEGQE2sqbU3p-wrgHJ6PQDKEnfMvS_yFSRGwRenPoW5DN0IcV-aezFi1qKL-aXyGWS-15pz2CRmsigbNqP9nyXwA9i-gWOx/s320/go-implicit-const.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;The following is an example for explicit declaration&lt;/p&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;soundSpeed&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;343&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(soundSpeed)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(soundSpeed&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;3.65&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;This will throw&amp;nbsp;.\main.go:8:25: constant 3.65 truncated to integer error&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/6568593229308512054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/6568593229308512054' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/6568593229308512054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/6568593229308512054'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/10/constants-in-go.html' title='Constants in Go'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4dB-yIGvzlwsM3ntJRsieWfkY52gZtleaZ8ZjkTSZJF85geEGQE2sqbU3p-wrgHJ6PQDKEnfMvS_yFSRGwRenPoW5DN0IcV-aezFi1qKL-aXyGWS-15pz2CRmsigbNqP9nyXwA9i-gWOx/s72-c/go-implicit-const.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-3185074692104061342</id><published>2020-10-22T09:10:00.006-05:00</published><updated>2020-10-25T07:22:06.650-05:00</updated><title type='text'>Pointer Type variables in Go</title><content type='html'>&lt;p&gt;&amp;nbsp;Pointer Type variables&lt;/p&gt;&lt;p&gt;Pointer variables holds the address of memory that holds the value of the variable&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;*&lt;/span&gt;&lt;span style=&quot;color: #64a0e5;&quot;&gt;string&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(name)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;lt;nil&amp;gt; is go&#39;s terminology for an empty pointer object.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;De-Referencing a pointer&lt;/p&gt;&lt;p&gt;As given below fmt.Println(&lt;span style=&quot;color: red;&quot;&gt;*name&lt;/span&gt;) is de-referencing a pointer.&lt;/p&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;*&lt;/span&gt;&lt;span style=&quot;color: #64a0e5;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #64a0e5;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;Madhu&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(*name)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;:=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;Madhu&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;deRef&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;:=&amp;nbsp;&amp;amp;name&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(deRef,&amp;nbsp;*deRef)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;Tomy&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(deRef,&amp;nbsp;*deRef)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Here the name stores the value &quot;Madhu&quot;, the variable deRef stores the address of the variable name or it is a pointer variable.&lt;/p&gt;&lt;p&gt;Now I change the value of name, the value of deRef variable also changes automatically.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/3185074692104061342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/3185074692104061342' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/3185074692104061342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/3185074692104061342'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/10/pointer-type-variables-in-go.html' title='Pointer Type variables in Go'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-704482651585257030</id><published>2020-10-21T14:56:00.008-05:00</published><updated>2020-10-31T07:37:20.209-05:00</updated><title type='text'>Primitive Data Types in Go</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&amp;nbsp;Variable declarations and primitives&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;(1) Declaration using var keyword&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;var &amp;lt;variable name &amp;gt; &amp;lt;type&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;content&quot; style=&quot;box-sizing: border-box; direction: ltr; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px; padding: 0px; position: relative; white-space: nowrap;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 4px; border: 1px solid rgb(217, 217, 217); box-sizing: border-box; color: #222222; direction: ltr; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.8125em; line-height: 1.85; overflow: scroll auto; padding: 1em 1.5rem; text-rendering: optimizespeed; word-break: normal;&quot;&gt;var &amp;lt;variable name &amp;gt; &amp;lt;type&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 4px; border: 1px solid rgb(217, 217, 217); box-sizing: border-box; color: #222222; direction: ltr; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.8125em; line-height: 1.85; overflow: scroll auto; padding: 1em 1.5rem; text-rendering: optimizespeed; word-break: normal;&quot;&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5;&quot;&gt;int&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;24&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(i)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;This is used if you want to initialize a variable at a different position&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Another way is&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;content&quot; style=&quot;box-sizing: border-box; direction: ltr; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px; padding: 0px; position: relative; white-space: nowrap;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 4px; border: 1px solid rgb(217, 217, 217); box-sizing: border-box; color: #222222; direction: ltr; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.8125em; line-height: 1.85; overflow: scroll auto; padding: 1em 1.5rem; text-rendering: optimizespeed; word-break: normal;&quot;&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #64a0e5;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;52&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(number)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;(2) Implicit initialization&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Here go with pick up the data type&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;content&quot; style=&quot;box-sizing: border-box; direction: ltr; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px; padding: 0px; position: relative; white-space: nowrap;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 4px; border: 1px solid rgb(217, 217, 217); box-sizing: border-box; color: #222222; direction: ltr; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.8125em; line-height: 1.85; overflow: scroll auto; padding: 1em 1.5rem; text-rendering: optimizespeed; word-break: normal;&quot;&gt;&lt;div style=&quot;background-color: #292a2b; color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;:=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;52&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(number)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;All local variables that are declared should be used otherwise it will throw a compilation error.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Data Types&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;(1) Value data types - Here the variables refer to the values the variables hold&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;(2) Pointer Data types - Here the variables refer to the address location where the values are stored.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Complex data type&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;This is a built in data type in Go.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;content&quot; style=&quot;box-sizing: border-box; direction: ltr; margin: 0px; padding: 0px; position: relative;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 4px; border: 1px solid rgb(217, 217, 217); box-sizing: border-box; direction: ltr; line-height: 1.85; overflow: scroll auto; padding: 1em 1.5rem; text-rendering: optimizespeed; word-break: normal;&quot;&gt;&lt;div style=&quot;background-color: #292a2b; line-height: 19px;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div style=&quot;color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: nowrap;&quot;&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #db9b78; font-style: italic;&quot;&gt;&quot;fmt&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #64a0e5; font-style: italic;&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;:=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;10.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;:=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a283d1; font-style: italic;&quot;&gt;5.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;:=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;complex&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(a,&amp;nbsp;b)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(c)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;r&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;:=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;real&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(c),&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;imag&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(c)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt.&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Println&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;(r,&amp;nbsp;i)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #e6e6e6; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: nowrap;&quot;&gt;Output :&lt;/div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: #e6e6e6; font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;(10+5i)
10 5&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Type&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;int &lt;/b&gt;An integer. Holds whole numbers.&lt;/p&gt;&lt;p&gt;&lt;b&gt;float64&amp;nbsp;&lt;/b&gt;A floating-point number. Holds numbers with a fractional part. (The 64 in the type&lt;/p&gt;&lt;p&gt;name is because 64 bits of data are used to hold the number. This means that&lt;/p&gt;&lt;p&gt;float64 values can be fairly, but not infinitely, precise before being rounded off.)&lt;/p&gt;&lt;p&gt;&lt;b&gt;bool &lt;/b&gt;A Boolean value. Can only be true or false.&lt;/p&gt;&lt;p&gt;&lt;b&gt;string &lt;/b&gt;A string. A series of data that usually represents text characters&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/704482651585257030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/704482651585257030' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/704482651585257030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/704482651585257030'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/10/primitive-data-types-in-go.html' title='Primitive Data Types in Go'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-176028155822776135</id><published>2020-10-01T11:10:00.008-05:00</published><updated>2020-10-01T14:41:36.163-05:00</updated><title type='text'>Node.js</title><content type='html'>&lt;p&gt;&amp;nbsp;Node.js is an asynchronous event driven javascript run time or server side javascript.&lt;/p&gt;&lt;p&gt;Commonly found in microservices and api space.&lt;/p&gt;&lt;p&gt;Command line tools like gulp&lt;/p&gt;&lt;p&gt;Server less cloud functions.&lt;/p&gt;&lt;p&gt;Node.js is run on javascript v8 engine&lt;/p&gt;&lt;p&gt;Ryan Dahl is the creator of Node.js&lt;/p&gt;&lt;p&gt;Node.js is best for I/O intensive network apps but not for CPU intensive apps.&lt;/p&gt;&lt;p&gt;Node uses an event loop in a single threaded model. It means there is no simultaneous access to shared memory.&lt;/p&gt;&lt;p&gt;The event loop will be notified when a request to open a file has been fulfilled by the OS.&lt;/p&gt;&lt;p&gt;An incoming HTTP request will also fire an event.&lt;/p&gt;&lt;p&gt;Timers can fire an event in the future, which is also handled by event loop.&lt;/p&gt;&lt;p&gt;These events are typically surfaced in your application by registering callback functions.&lt;/p&gt;&lt;p&gt;In node the fair treatment of client is the responsibility of the app.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/176028155822776135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/176028155822776135' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/176028155822776135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/176028155822776135'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/10/nodejs.html' title='Node.js'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-9215588800950098197</id><published>2020-08-06T13:48:00.005-05:00</published><updated>2020-08-06T14:07:29.932-05:00</updated><title type='text'>Go</title><content type='html'>&lt;span style=&quot;font-family: arial;&quot;&gt;1. Developed by&amp;nbsp;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #202122;&quot;&gt;Robert Griesemer,&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Rob_Pike&quot; style=&quot;background: none rgb(255, 255, 255); color: #0b0080; text-decoration-line: none;&quot; title=&quot;Rob Pike&quot;&gt;Rob Pike&lt;/a&gt;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #202122;&quot;&gt;, and&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Ken_Thompson&quot; style=&quot;background: none rgb(255, 255, 255); color: #0b0080; text-decoration-line: none;&quot; title=&quot;Ken Thompson&quot;&gt;Ken Thompson&lt;/a&gt;&amp;nbsp;at Google.&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;2. Like C it has good grasp for developing around system programming.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;3. Just like C language it does n&#39;t need a run time interpreter. So a compiled language&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;4. Strongly types language&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;5. Support type inference&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;In order to make sure that we have a standalone program, that file should start with&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;package main&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/9215588800950098197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/9215588800950098197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/9215588800950098197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/9215588800950098197'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/08/go.html' title='Go'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-4033728146277730245</id><published>2020-07-15T09:33:00.001-05:00</published><updated>2020-07-15T09:34:41.505-05:00</updated><title type='text'>Improve your code quality by using SonarLint in IntelliJ IDEA</title><content type='html'>&lt;h1 class=&quot;fo fp bi fq b fr fs ft fu fv fw fx fy fz ga gb gc gd ge gf gg ek&quot; id=&quot;778b&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-size: 40px; font-weight: 400; line-height: 48px; margin: 0.78em 0px -0.27em;&quot;&gt;Improve your code quality by using SonarLint in IntelliJ IDEA&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Required Java version 1.8 +&lt;/div&gt;&lt;div&gt;Intellij IDEA 2019.3.5 Community Edition&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can download it at&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://plugins.jetbrains.com/plugin/7973-sonarlint&quot;&gt;https://plugins.jetbrains.com/plugin/7973-sonarlint&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In Intellij go to File &amp;gt; Settings &amp;gt; Plugins&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Search Market place for Sonar Lint, install it&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt8B7qVu0PilzZws5uaTSvosW1uYRDLnttb5kVc5K4LuWECXPnqbtsxYQrwPlBhGPb6N-jZGU_otCrFMJhwNguiiPkk91cPSt8qIm-h7f4CjYzgLBR8xZxZt_BLE6v3kZtFWiRigT9oaQg/s970/Sonar_Lint_Settings.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;703&quot; data-original-width=&quot;970&quot; height=&quot;363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt8B7qVu0PilzZws5uaTSvosW1uYRDLnttb5kVc5K4LuWECXPnqbtsxYQrwPlBhGPb6N-jZGU_otCrFMJhwNguiiPkk91cPSt8qIm-h7f4CjYzgLBR8xZxZt_BLE6v3kZtFWiRigT9oaQg/w500-h363/Sonar_Lint_Settings.png&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To run it right click on the file you want to run against&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ5TREBFtfoxTQwV2pkMOSeDD9wtCDe9VDX6HDYYhX6tFcIAbPGZQ7H74kKq3YPrX9WgJrQgbw1DBS0TCSrCscPCOAWtapj5mxXuFTUI__rPjLyln6BC32vRyaXqkSdnC1xxvlJLQaemdI/s832/Sonar_lint_analysis_1.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;713&quot; data-original-width=&quot;832&quot; height=&quot;429&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ5TREBFtfoxTQwV2pkMOSeDD9wtCDe9VDX6HDYYhX6tFcIAbPGZQ7H74kKq3YPrX9WgJrQgbw1DBS0TCSrCscPCOAWtapj5mxXuFTUI__rPjLyln6BC32vRyaXqkSdnC1xxvlJLQaemdI/w500-h429/Sonar_lint_analysis_1.png&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;This is how the sonarlint tab with the analysis results would look like&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiLahHdoSt5821sb1IkxgV-eesmz6DPg1TmjarluD7WrZwXt91OZ5AIMfKXoatn_bHMmiEGNe9ogzUHJfSoemT96WnjfngQZNEc1Z8d74bdH9bkz4NYG-TvO_ff8nTvkZECQySs3bw92FQ/s1901/Sonar_lint_analysis_2.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;355&quot; data-original-width=&quot;1901&quot; height=&quot;94&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiLahHdoSt5821sb1IkxgV-eesmz6DPg1TmjarluD7WrZwXt91OZ5AIMfKXoatn_bHMmiEGNe9ogzUHJfSoemT96WnjfngQZNEc1Z8d74bdH9bkz4NYG-TvO_ff8nTvkZECQySs3bw92FQ/w500-h94/Sonar_lint_analysis_2.png&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Hope this helps :)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/4033728146277730245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/4033728146277730245' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4033728146277730245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4033728146277730245'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/07/improve-your-code-quality-by-using.html' title='Improve your code quality by using SonarLint in IntelliJ IDEA'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt8B7qVu0PilzZws5uaTSvosW1uYRDLnttb5kVc5K4LuWECXPnqbtsxYQrwPlBhGPb6N-jZGU_otCrFMJhwNguiiPkk91cPSt8qIm-h7f4CjYzgLBR8xZxZt_BLE6v3kZtFWiRigT9oaQg/s72-w500-h363-c/Sonar_Lint_Settings.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-2538376822642402794</id><published>2020-07-14T13:31:00.015-05:00</published><updated>2020-07-15T23:50:39.508-05:00</updated><title type='text'>Java code Tips</title><content type='html'>&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(1) In logger statements use&amp;nbsp;Format specifiers instead of string concatenation.&amp;nbsp;&lt;/b&gt;&lt;/font&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background: rgb(244, 244, 244); box-sizing: border-box; margin-bottom: 20px; margin-top: 20px; max-width: 900px; overflow: auto; padding: 15px;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;font color=&quot;#3d3d3d&quot;&gt;&lt;span&gt;logger.info(&quot;Completed populating RAW data from the file &quot; + &lt;/span&gt;&lt;/font&gt;fileId + &quot; ,Took &quot; + (System.currentTimeMillis() - dataEntryTime) + &quot; ms.&quot;));&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;Because printf-style format strings are interpreted at runtime, rather than validated by the compiler, they can contain errors that result in the wrong strings being created.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background: rgb(244, 244, 244); box-sizing: border-box; margin-bottom: 20px; margin-top: 20px; max-width: 900px; overflow: auto; padding: 15px;&quot;&gt;&lt;font color=&quot;#3d3d3d&quot; face=&quot;&quot; size=&quot;2&quot;&gt;&lt;span&gt;logger.info(String.format(&quot;Completed populating RAW data from the file %s ,Took %d ms.&quot;, fileId, (System.currentTimeMillis() - dataEntryTime)));&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;Prefer the following log statement&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background: rgb(244, 244, 244); box-sizing: border-box; margin-bottom: 20px; margin-top: 20px; max-width: 900px; overflow: auto; padding: 15px;&quot;&gt;&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;background-color: var(--black-050); border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;code style=&quot;background-color: transparent; border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;logger&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;info&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--red-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Completed populating RAW data from the file {} ,Took {} ms.&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&quot;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;,&lt;/span&gt;fileId, (System.currentTimeMillis() - dataEntryTime));&lt;/font&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #242729;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;{} allows delaying the toString() call and string construction to after it has been decided if the event needs capturing or not.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(2)&amp;nbsp;Try-with-resources should be used&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;Java 7 introduced the try-with-resources statement, which guarantees that the resource in question will be closed. Since the new syntax is closer to bullet-proof, it should be preferred over the older try/catch/finally version.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;This rule checks that close-able resources are opened in a try-with-resources statement.&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(3)&amp;nbsp;&quot;java.nio.Files#delete&quot; should be preferred&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;When java.io.File#delete fails, this boolean method simply returns false with no indication of the cause. On the other hand, when java.nio.file.Files#delete fails, this void method returns one of a series of exception types to better indicate the cause of the failure. And since more information is generally better in a debugging situation, java.nio.file.Files#delete is the preferred option.&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background: rgb(244, 244, 244); box-sizing: border-box; margin-bottom: 20px; margin-top: 20px; max-width: 900px; overflow: auto; padding: 15px;&quot;&gt;&lt;font color=&quot;#3d3d3d&quot; face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;span&gt;if (null != tempFile) {
	tempFile.delete();	
}&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;instead use the following&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background: rgb(244, 244, 244); box-sizing: border-box; margin-bottom: 20px; margin-top: 20px; max-width: 900px; overflow: auto; padding: 15px;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;try {
	if (null != tempFile) {
		Files.delete(tempFile.toPath());
	}
} catch (Exception ex) {
	logger.error(&quot;Error&quot;, ex);
}&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(4) Null checks&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;for an object foo, the following is the best way to check for null&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--blue-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;foo &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--blue-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; foo&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;bar&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;())&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
   someStuff&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333;&quot;&gt;Java 7 introduced the new&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; box-sizing: border-box; color: #333333;&quot;&gt;Objects&amp;nbsp;&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #333333;&quot;&gt;API&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; box-sizing: inherit; color: #2b91af; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Objects&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;isNull&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-400); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;//returns true if the object is null&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; box-sizing: inherit; color: #2b91af; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Objects&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;nonNull&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-400); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;//returns true if object is not-null&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--blue-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; box-sizing: inherit; color: #2b91af; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Objects&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;nonNull&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;foo&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; foo&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;something&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;())&lt;/span&gt;&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--black-750); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;Here are some good documentations&lt;/font&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;a href=&quot;https://www.baeldung.com/java-avoid-null-check&quot; style=&quot;font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;https://www.baeldung.com/java-avoid-null-check&lt;/font&gt;&lt;/a&gt;&lt;/pre&gt;&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/questions/17302256/best-way-to-check-for-null-values-in-java/40777583#:~:text=In%20Java%208%2C%20the%20best,not%2Dnull%20if(Objects.&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;https://stackoverflow.com/questions/17302256/best-way-to-check-for-null-values-in-java/40777583#:~:text=In%20Java%208%2C%20the%20best,not%2Dnull%20if(Objects.&lt;/font&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(5) Package name naming convention&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;This is the convention&amp;nbsp;&amp;nbsp;^[a-z_]+(\.[a-z_][a-z0-9_]*)*$: so no Upper case.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(6) Avoid instantiating objects in a loop&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background: rgb(244, 244, 244); box-sizing: border-box; margin-bottom: 20px; margin-top: 20px; max-width: 900px; overflow: auto; padding: 15px;&quot;&gt;&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;background-color: var(--black-050); border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: arial; font-size: small;&quot;&gt;ogger.info(&quot;Start Time : {} and End Time : {} for {}&quot;, new Date(1565601480000L).toInstant(), new Date(1565601480000L).toInstant(), &quot;check&quot;);&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;Instead use&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;logger.info(&quot;Start Time : {} and End Time : {} for {}&quot;, Instant.ofEpochMilli(1565601480000L), Instant.ofEpochMilli(1565601480000L), &quot;check&quot;);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(7) Use Varangs when possible&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;The following method call&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;div&gt;combineData(Employee e1, Employee e2, Employee e3);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The method can be written using varangs as shown below.&lt;/div&gt;&lt;div&gt;private void combineData (Employee... emp) {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; // Here is how you access the individual objects&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Employee e1 = emp[0];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Employee e2 = emp[1];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Employee e3 = emp[2];&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(8) Uncheck or raw use of ArrayList&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;return new ArrayList(new TreeMap&amp;lt;Long, ProcessedDataInfo.ProcessedDataRow&amp;gt;(combinedDataMap).values());&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;instead use the following&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;return new ArrayList&amp;lt;&amp;gt;(new TreeMap&amp;lt;Long, ProcessedDataInfo.ProcessedDataRow&amp;gt;(combinedDataMap).values());&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(9) Utility classes should not have a public constructor&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;div&gt;Utility classes, which are collections of static members, are not meant to be instantiated. Even abstract utility classes, which can be extended, should not have public constructors.&lt;/div&gt;&lt;div&gt;Java adds an implicit public constructor to every class which does not define at least one explicitly. Hence, at least one non-public constructor should be defined.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So the following Utility class&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;public class Constants {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; public static final Long ONE_HOUR = 1000*60*60L;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; public static final Long TWENTY_MINUTES = 20*60*1000L;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; public static final Long THIRTY_MINUTES = 30*60*1000L;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;should be like this&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;private Constants () {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;throw new IllegalStateException(&quot;Utility class&quot;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;(10) Source code lines&lt;/b&gt;&lt;/div&gt;&lt;div&gt;NCSS (Non commented source code lines) should not exceed 1500 per PMD tool.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;(11) Whenever you write a method always consider The Law of Demeter&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;Its about loose coupling&lt;/font&gt;&lt;/div&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;div&gt;Each unit should have only limited knowledge about other units: only units &quot;closely&quot; related to the current unit.&lt;/div&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;div&gt;Each unit should only talk to its friends; don&#39;t talk to strangers.&lt;/div&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;div&gt;Only talk to your immediate friends.&lt;/div&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/2538376822642402794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/2538376822642402794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/2538376822642402794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/2538376822642402794'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/07/java-code-tips.html' title='Java code Tips'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-7491097947438753798</id><published>2020-07-12T19:00:00.001-05:00</published><updated>2020-07-12T19:00:59.537-05:00</updated><title type='text'>Spring Boot Tips</title><content type='html'>&lt;pre style=&quot;text-align: left;&quot;&gt;(1) How to display mongodb query while using spring-data-mongodb&lt;/pre&gt;&lt;pre style=&quot;text-align: left;&quot;&gt;Set the following line entry in the application.properties&lt;/pre&gt;&lt;div&gt;&lt;pre class=&quot;highlight&quot; style=&quot;background: rgb(244, 244, 244); box-sizing: border-box; margin-bottom: 20px; margin-top: 20px; max-width: 900px; overflow: auto; padding: 15px;&quot;&gt;&lt;font color=&quot;#3d3d3d&quot; face=&quot;monospace, monospace&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;logging.level.org.springframework.data.mongodb.core=DEBUG&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;text-align: left;&quot;&gt;&lt;code style=&quot;background: none; box-sizing: border-box; display: inline-block; font-family: monospace, monospace; font-size: 1em; padding: 0px; white-space: pre;&quot;&gt;Make sure that log4j is available in the project&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/7491097947438753798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/7491097947438753798' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/7491097947438753798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/7491097947438753798'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/07/spring-boot-tips.html' title='Spring Boot Tips'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-7527374039499721996</id><published>2020-06-11T14:03:00.001-05:00</published><updated>2020-06-11T14:03:35.539-05:00</updated><title type='text'>Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Spring Boot: 2.1.3.RELEASE&lt;br /&gt;
JDK : 1.8&lt;br /&gt;
PostgresSQL: 12.3&lt;br /&gt;
&lt;br /&gt;
I am getting the following exception while starting the application&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;background: whitesmoke; border: 1pt solid rgb(204, 204, 204); padding: 7pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: normal; margin-bottom: 7.5pt; padding: 0in;&quot;&gt;&lt;font color=&quot;#333333&quot; face=&quot;book antiqua, serif&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18pt; margin-bottom: 7.5pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This is an issue with hibernate library. This has been fixed in the following version and available in&amp;nbsp;&lt;span style=&quot;background-color: #e4e6e8; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; white-space: pre-wrap;&quot;&gt;    Spring boot v2.2.0.Mx&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;dependency&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;groupId&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;org&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;hibernate&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;groupId&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;artifactId&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;hibernate&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;core&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;artifactId&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--red-800); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;5.4&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--red-800); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;2.Final&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;dependency&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: var(--black-750); font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Since I cannot upgrade Spring Boot i need to disable the Large Object creation by the following entry in application.properties&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;background: whitesmoke; border: 1pt solid rgb(204, 204, 204); padding: 7pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: whitesmoke; border: none; line-height: normal; margin-bottom: 7.5pt; padding: 0in;&quot;&gt;spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;For more info refer :&amp;nbsp;&lt;a href=&quot;https://stackoverflow.com/questions/49110818/method-org-postgresql-jdbc-pgconnection-createclob-is-not-yet-implemented&quot;&gt;https://stackoverflow.com/questions/49110818/method-org-postgresql-jdbc-pgconnection-createclob-is-not-yet-implemented&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/7527374039499721996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/7527374039499721996' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/7527374039499721996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/7527374039499721996'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/06/caused-by-javasqlsqlfeaturenotsupported.html' title='Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-7901854279272284937</id><published>2020-06-11T12:00:00.003-05:00</published><updated>2020-06-11T12:00:22.584-05:00</updated><title type='text'>How to restore a backup db in postgresql</title><content type='html'>&lt;br /&gt;&lt;div&gt;1. Open up pgadmin4&lt;/div&gt;&lt;div&gt;2. Select the database to which the db should be restored.&lt;/div&gt;&lt;div&gt;3. Right click and select the option restore&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHy0HShH60tBrp3AF-Y5Vf-C5wiOdm9OCwjtrI_qCArG-xxq-qLEEkwyd6S2jOc8P6ZEaHRaOXwO2GOzwq78JaGhvIqa4RXmfQg6fvO60ptJ6XXZ4Ejp87tG1nVLBXEAt5j_ohcEWaNMEx/s571/2020_06_11_11_52_10_pgAdmin_4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: right;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;571&quot; data-original-width=&quot;378&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHy0HShH60tBrp3AF-Y5Vf-C5wiOdm9OCwjtrI_qCArG-xxq-qLEEkwyd6S2jOc8P6ZEaHRaOXwO2GOzwq78JaGhvIqa4RXmfQg6fvO60ptJ6XXZ4Ejp87tG1nVLBXEAt5j_ohcEWaNMEx/w212-h320/2020_06_11_11_52_10_pgAdmin_4.png&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. Type in the info and local the backup db archieve&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUbWBKl6uQEYiLifWHKt9QTagF5GzdLLUN_yOdBQOKr4lLEyZiC1I1b2FsXMJJnB2y_xwC7ZngYXm5DTL8ae1CqTLr0CH6eBCZaxMujO_NsUidJsZjD63bz-ifBavnimj8GVne7u4MLQqL/s726/restore_pgAdmin_4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;429&quot; data-original-width=&quot;726&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUbWBKl6uQEYiLifWHKt9QTagF5GzdLLUN_yOdBQOKr4lLEyZiC1I1b2FsXMJJnB2y_xwC7ZngYXm5DTL8ae1CqTLr0CH6eBCZaxMujO_NsUidJsZjD63bz-ifBavnimj8GVne7u4MLQqL/s320/restore_pgAdmin_4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/7901854279272284937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/7901854279272284937' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/7901854279272284937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/7901854279272284937'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/06/how-to-restore-backup-db-in-postgresql.html' title='How to restore a backup db in postgresql'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHy0HShH60tBrp3AF-Y5Vf-C5wiOdm9OCwjtrI_qCArG-xxq-qLEEkwyd6S2jOc8P6ZEaHRaOXwO2GOzwq78JaGhvIqa4RXmfQg6fvO60ptJ6XXZ4Ejp87tG1nVLBXEAt5j_ohcEWaNMEx/s72-w212-h320-c/2020_06_11_11_52_10_pgAdmin_4.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-355582847294270494</id><published>2020-06-11T10:47:00.000-05:00</published><updated>2020-06-11T10:47:22.855-05:00</updated><title type='text'>Postgresql</title><content type='html'>&lt;br /&gt;&lt;div&gt;PostgreSQL Limits&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Maximum Database size : unlimited&lt;/li&gt;&lt;li&gt;Maximum Table size : 32 TB&lt;/li&gt;&lt;li&gt;Maximum Row size : 1.6 TB&lt;/li&gt;&lt;li&gt;Maximum Fiels size : 1 GB&lt;/li&gt;&lt;li&gt;Maximum Rows per Table: unlimited&lt;/li&gt;&lt;li&gt;Maximum columns per Table : 250-1600 depending on the column types&lt;/li&gt;&lt;li&gt;Maximum indices per table: unlimited&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/355582847294270494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/355582847294270494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/355582847294270494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/355582847294270494'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/06/postgresql.html' title='Postgresql'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-3186448460405382270</id><published>2020-05-26T09:43:00.000-05:00</published><updated>2020-06-01T11:33:57.430-05:00</updated><title type='text'>Varargs feature (Variable Arguments) in Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This was introduced in java 1.5&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;It means variable arguments&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Background&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Before 1.5, if we need to pass different number of arguments to a method we need to use method overloading or pass it in an Array.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;public class&lt;/code&gt; &lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;TestVarargs&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;{ &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;static&lt;/code&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.83921568627451);&quot;&gt; &lt;/span&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;void&lt;/code&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.83921568627451);&quot;&gt; &lt;/span&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;funtion(&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;color: #006699;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;...numbers) &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;{ &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;System.out.println(&lt;/code&gt;&lt;code class=&quot;string&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: blue; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;Number of arguments: &quot;&lt;/code&gt; &lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;+ &lt;/code&gt;numbers&lt;span style=&quot;color: black;&quot;&gt;.length); &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;// using for each loop to display contents of a &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;for&lt;/code&gt; &lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;i: numbers) &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;System.out.print(i + &lt;/code&gt;&lt;code class=&quot;string&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: blue; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot; &quot;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;); &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;} &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;main(String args[]) &lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;{ &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number19 index18 alt2 highlighted&quot; style=&quot;background: none rgb(224, 224, 224); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number21 index20 alt2 highlighted&quot; style=&quot;background: none rgb(224, 224, 224); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;background-color: white; color: black;&quot;&gt;funtion&lt;/span&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;100&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number22 index21 alt1 highlighted&quot; style=&quot;background: none rgb(224, 224, 224); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;background-color: white; color: black;&quot;&gt;funtion&lt;/span&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;11&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;, &lt;/code&gt;&lt;code class=&quot;value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;22&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;, &lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;55&lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;);&amp;nbsp; &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number23 index22 alt2 highlighted&quot; style=&quot;background: none rgb(224, 224, 224); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;background-color: white; color: black;&quot;&gt;funtion&lt;/span&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number24 index23 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;} &lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;} &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Varargs&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;(1) Allows us to pass arbitery no of arhuments automatically.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;(2) There can be only one varargs in a method and it should be the final argument.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;(3) Very good with concrete data types but be careful while using with Generics.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;(4) &lt;span style=&quot;background-color: transparent;&quot;&gt;The three periods after the final parameter&#39;s type indicate that the final argument may be passed as an array&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: transparent;&quot;&gt;or&lt;/i&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;nbsp;as a sequence of arguments.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hope this helps :)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/3186448460405382270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/3186448460405382270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/3186448460405382270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/3186448460405382270'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/05/varargs-feature-variable-arguments-in.html' title='Varargs feature (Variable Arguments) in Java'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-9101154730889171218</id><published>2020-05-20T17:06:00.001-05:00</published><updated>2020-05-22T12:36:56.878-05:00</updated><title type='text'>IDEA IntelliJ shortcut keys</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div&gt;
1. Toggle case Cntl+Shift+U&lt;br /&gt;
&lt;br /&gt;
2. How to increase the Heap memory in IntelliJ&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;Step 1: Go to Help -&amp;gt; Edit Custom VM Options&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCwexd5h6hvhFz9__OFxahy9IIPT3MnQkzWANrJQofNDjIdydK51_aLa34NxD6cfj8YBxExt12fCst2tWQYl85ByuNr-RacU6ST1dpXAiJourjVRptnjBSpZ_F3_Q_3W1x-A0vRqetla3w/s1600/cUSTOM_vm_oPTIONS_idea_.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;522&quot; data-original-width=&quot;773&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCwexd5h6hvhFz9__OFxahy9IIPT3MnQkzWANrJQofNDjIdydK51_aLa34NxD6cfj8YBxExt12fCst2tWQYl85ByuNr-RacU6ST1dpXAiJourjVRptnjBSpZ_F3_Q_3W1x-A0vRqetla3w/s400/cUSTOM_vm_oPTIONS_idea_.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;Step2: Change the Heap sizes as given below&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIN4UFuctvqxWmaXus9N5KLYADsmnpbtZRkW3Qx2DIQQLe0biWOhyphenhyphen2XpGQpjnG09kN5aJ0C_H-WA-1yTHEwt26ic7JexaxpvqL3rJcaaxI-WtyEHSnbb_a3TakrJ4eqvAgl0-d9OvxiFnx/s1600/custom_vm_options_edit.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;957&quot; height=&quot;125&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIN4UFuctvqxWmaXus9N5KLYADsmnpbtZRkW3Qx2DIQQLe0biWOhyphenhyphen2XpGQpjnG09kN5aJ0C_H-WA-1yTHEwt26ic7JexaxpvqL3rJcaaxI-WtyEHSnbb_a3TakrJ4eqvAgl0-d9OvxiFnx/s400/custom_vm_options_edit.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
2. How to view the memory usage in IntelliJ&lt;br /&gt;
&lt;br /&gt;
File -- Settings -- Appearance&lt;br /&gt;
&lt;br /&gt;
Select the &quot;show memory indicator&quot; option and click on &quot;OK&quot; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6V9x97Db7dp3216aRzKMZFB8XfsVvp4jP1VFdobYeu8PXoNevxP7ODNf0xgoET7arkBW_7IlsZZb_aFr1oWjfOvXFp3GA_GE1uH7N8Ya47R-w53n9JmhYm7Se3h66oekV_6-q2WTHRumM/s1600/memory_usage_settings.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;702&quot; data-original-width=&quot;981&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6V9x97Db7dp3216aRzKMZFB8XfsVvp4jP1VFdobYeu8PXoNevxP7ODNf0xgoET7arkBW_7IlsZZb_aFr1oWjfOvXFp3GA_GE1uH7N8Ya47R-w53n9JmhYm7Se3h66oekV_6-q2WTHRumM/s320/memory_usage_settings.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;This is how the memory indicator would look like on the bottom right corner of the IDE.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqs6RwUgbIVUa0osPfp_vW7Ol5115EPwwNholwUyltKhX7kG5kK7ss0y8hyz84L3S8GWi62z_JXkoVPhBFYby5SV0hVt0HOPlhzl4Yq8sKAkPVV8eXlcuHzSfOyz6tcmnO5CKZD2UXvj1w/s1600/Idea_memory_usuage.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;93&quot; data-original-width=&quot;341&quot; height=&quot;87&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqs6RwUgbIVUa0osPfp_vW7Ol5115EPwwNholwUyltKhX7kG5kK7ss0y8hyz84L3S8GWi62z_JXkoVPhBFYby5SV0hVt0HOPlhzl4Yq8sKAkPVV8eXlcuHzSfOyz6tcmnO5CKZD2UXvj1w/s320/Idea_memory_usuage.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/9101154730889171218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/9101154730889171218' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/9101154730889171218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/9101154730889171218'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/05/idea-intellij-shortcut-keys.html' title='IDEA IntelliJ shortcut keys'/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCwexd5h6hvhFz9__OFxahy9IIPT3MnQkzWANrJQofNDjIdydK51_aLa34NxD6cfj8YBxExt12fCst2tWQYl85ByuNr-RacU6ST1dpXAiJourjVRptnjBSpZ_F3_Q_3W1x-A0vRqetla3w/s72-c/cUSTOM_vm_oPTIONS_idea_.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2166758479291655016.post-4583358367751559307</id><published>2020-05-20T15:21:00.000-05:00</published><updated>2020-05-20T15:21:09.601-05:00</updated><title type='text'>Spring Boot Dev Tools </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;In a typical application development environment, a developer would make some changes, build the project and deploy/start the application for new changes to take effect.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;Using&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;spring-boot-devtools,&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;&amp;nbsp;this process is also automated. Whenever files change in the classpath, applications using&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;spring-boot-devtools&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;&amp;nbsp;will cause the application to restart. The benefit of this feature is the time required to verify the changes made is considerably reduced:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;The thread that has spawned the application is not a&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;main&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;&amp;nbsp;rather a&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;restartedMain&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;&amp;nbsp;thread. Any changes made in the project be it a java file change will cause an automated restart of the project:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: raleway; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;paragraph&quot; style=&quot;background-color: white; box-sizing: border-box; direction: ltr; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px; padding: 0px;&quot;&gt;
&lt;div style=&quot;box-sizing: border-box; direction: ltr; font-family: inherit; font-size: 1em; line-height: 1.6; margin-bottom: 1.25em; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;
The&amp;nbsp;&lt;code style=&quot;border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #000099; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.875rem; padding: 2px 6px; word-break: break-word;&quot;&gt;spring-boot-devtools&lt;/code&gt;&amp;nbsp;module can be included in any project to provide additional development-time features. To include devtools support, add the module dependency to your build, as shown in the following listings for Maven and Gradle:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;listingblock&quot; style=&quot;background-color: white; box-sizing: border-box; direction: ltr; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px 0px 1.25em; padding: 0px; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;title&quot; style=&quot;box-sizing: border-box; color: #0b0a0a; direction: ltr; font-size: 1rem; font-weight: 700; line-height: 1.45; margin: 0px 0px 0.8em; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;
Maven&lt;/div&gt;
&lt;div class=&quot;content&quot; style=&quot;box-sizing: border-box; direction: ltr; margin: 0px; padding: 0px; position: relative;&quot;&gt;
&lt;pre class=&quot;highlight&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 4px; border: 1px solid rgb(217, 217, 217); box-sizing: border-box; color: #222222; direction: ltr; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.8125em; line-height: 1.85; overflow: scroll auto; padding: 1em 1.5rem; text-rendering: optimizespeed; word-break: normal;&quot;&gt;&lt;code class=&quot;language-xml&quot; data-lang=&quot;xml&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; line-height: 1.85; text-rendering: optimizespeed; word-break: normal;&quot;&gt;&lt;dependencies&gt;
    &lt;dependency&gt;
        &lt;groupid&gt;org.springframework.boot&lt;/groupid&gt;
        &lt;artifactid&gt;spring-boot-devtools&lt;/artifactid&gt;
        &lt;optional&gt;true&lt;/optional&gt;
    &lt;/dependency&gt;
&lt;/dependencies&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;listingblock&quot; style=&quot;background-color: white; box-sizing: border-box; direction: ltr; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px 0px 1.25em; padding: 0px; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;title&quot; style=&quot;box-sizing: border-box; color: #0b0a0a; direction: ltr; font-size: 1rem; font-weight: 700; line-height: 1.45; margin: 0px 0px 0.8em; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;
Gradle&lt;/div&gt;
&lt;div class=&quot;content&quot; style=&quot;box-sizing: border-box; direction: ltr; margin: 0px; padding: 0px; position: relative;&quot;&gt;
&lt;pre class=&quot;highlight&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 4px; border: 1px solid rgb(217, 217, 217); box-sizing: border-box; color: #222222; direction: ltr; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.8125em; line-height: 1.85; overflow: scroll auto; padding: 1em 1.5rem; text-rendering: optimizespeed; word-break: normal;&quot;&gt;&lt;code class=&quot;language-groovy&quot; data-lang=&quot;groovy&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; line-height: 1.85; text-rendering: optimizespeed; word-break: normal;&quot;&gt;dependencies {
    developmentOnly(&quot;org.springframework.boot:spring-boot-devtools&quot;)
}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;admonitionblock note&quot; style=&quot;background-color: #ecf1e8; border-radius: 4px; box-sizing: border-box; direction: ltr; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; margin: 30px 0px; overflow-x: auto; padding: 0.8em 0px; width: auto;&quot;&gt;
&lt;table style=&quot;background: 0px 0px; border-spacing: 0px; border: 0px; margin-bottom: 0px; width: 954px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;icon&quot; style=&quot;box-sizing: border-box; direction: ltr; font-size: inherit; line-height: 1.6; margin: 0px; padding: 0.8em 0.625em 0.5625em; text-align: center; vertical-align: top; width: 80px;&quot;&gt;&lt;span class=&quot;fa icon-note&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; cursor: default; display: inline-block; font-family: FontAwesome; font-size: 2.5em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1; text-rendering: auto;&quot; title=&quot;Note&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;border-left: none; box-sizing: border-box; direction: ltr; font-size: inherit; line-height: 1.6; margin: 0px; padding: 0.5625em 1.25em 0.5625em 0px;&quot;&gt;Developer tools are automatically disabled when running a fully packaged application. If your application is launched from&amp;nbsp;&lt;code style=&quot;background-color: white; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #000099; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.875rem; padding: 2px 6px; word-break: break-word;&quot;&gt;java -jar&lt;/code&gt;&amp;nbsp;or if it is started from a special classloader, then it is considered a “production application”. If that does not apply to you (i.e. if you run your application from a container), consider excluding devtools or set the&amp;nbsp;&lt;code style=&quot;background-color: white; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #000099; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.875rem; padding: 2px 6px; word-break: break-word;&quot;&gt;-Dspring.devtools.restart.enabled=false&lt;/code&gt;&amp;nbsp;system property.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;admonitionblock tip&quot; style=&quot;background-color: #e9f1f6; border-left: 0px solid rgb(0, 119, 185); border-radius: 4px; box-sizing: border-box; direction: ltr; font-family: &amp;quot;open sans&amp;quot;, sans-serif; font-size: 16px; margin: 30px 0px; overflow-x: auto; padding: 0.8em 0px; width: auto;&quot;&gt;
&lt;table style=&quot;background: 0px 0px; border-spacing: 0px; border: 0px; margin-bottom: 0px; width: 954px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;icon&quot; style=&quot;box-sizing: border-box; direction: ltr; font-size: inherit; line-height: 1.6; margin: 0px; padding: 0.8em 0.625em 0.5625em; text-align: center; vertical-align: top; width: 80px;&quot;&gt;&lt;span class=&quot;fa icon-tip&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; cursor: default; display: inline-block; font-family: FontAwesome; font-size: 2.5em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1; text-rendering: auto;&quot; title=&quot;Tip&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;border-left: none; box-sizing: border-box; direction: ltr; font-size: inherit; line-height: 1.6; margin: 0px; padding: 0.5625em 1.25em 0.5625em 0px;&quot;&gt;Flagging the dependency as optional in Maven or using the&amp;nbsp;&lt;code style=&quot;background-color: white; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #000099; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 0.875rem; padding: 2px 6px; word-break: break-word;&quot;&gt;developmentOnly&lt;/code&gt;&amp;nbsp;configuration in Gradle (as shown above) prevents devtools from being transitively applied to other modules that use your project.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://madhutomy.blogspot.com/feeds/4583358367751559307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2166758479291655016/4583358367751559307' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4583358367751559307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2166758479291655016/posts/default/4583358367751559307'/><link rel='alternate' type='text/html' href='http://madhutomy.blogspot.com/2020/05/spring-boot-dev-tools.html' title='Spring Boot Dev Tools '/><author><name>Madhu</name><uri>http://www.blogger.com/profile/15526521935882493897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>