<?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-8829471421669026450</id><updated>2021-07-12T23:23:28.674+05:30</updated><category term="Java"/><category term="Questions"/><category term="Quizzes"/><category term="Concepts"/><category term="Articles"/><category term="Computer Network"/><category term="Placement"/><category term="Software Engineering"/><title type='text'>infoStud blogs</title><subtitle type='html'>infoStud blogs is a website for the technology geeks. It contains well written, well thought and well-explained computer science, programming tutorials (Java, Python, C programming, etc), placement tutorials, projects, and technical articles. infoStud blogs also contain well-written content related to various tutorials like Arduino, Web Development, IoT, Robotics, and many more. &#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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>55</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-4762196102401623063</id><published>2021-05-13T15:06:00.008+05:30</published><updated>2021-05-18T14:25:02.609+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Java program to find year is a leap year or not | infoStud blogs</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-nWbeLU2Twxo/YKOAt-jAYUI/AAAAAAAABrE/VHiq_qWlnSobB1rja6N0r0Eq_3DdgjDtQCLcBGAsYHQ/s1004/Leap%2BYEAR%2BOR%2BNOT.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Leap YEAR OR NOT, Java program to find year is a leap year or not, Java Questions&quot; border=&quot;0&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; height=&quot;376&quot; src=&quot;https://1.bp.blogspot.com/-nWbeLU2Twxo/YKOAt-jAYUI/AAAAAAAABrE/VHiq_qWlnSobB1rja6N0r0Eq_3DdgjDtQCLcBGAsYHQ/w640-h376/Leap%2BYEAR%2BOR%2BNOT.jpg&quot; title=&quot;Java program to find year is a leap year or not | infoStud blogs&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;This post is about how to write a java program or code for finding out the year is a leap year or not. Leap year is a year in which February has only 28 days in a month and it comes after a gap of every 4 years.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;For writing a java program t find out the year is a leap year or not required basic concepts of conditional statements especially concepts related to the &quot;if-else&quot;. Let&#39;s begin to write code.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #351c75; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Test Condition&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;p style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: 0px 0px; border: 0px; font-family: georgia; font-size: medium; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: 0px 0px; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Input the year:&lt;/b&gt; 2008&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;2008 is a leap year&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #351c75; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Objective:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Write a Java program that takes a year from the user and prints whether that year is a leap year or not.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Code&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;LeapYearOrNot&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;[]&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Input&amp;nbsp;the&amp;nbsp;year:&amp;nbsp;&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;%&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;)&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;%&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;)&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;z&lt;/span&gt;&amp;nbsp;=&amp;nbsp;((&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;%&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;)&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;%&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;400&lt;/span&gt;&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;));&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;&amp;nbsp;||&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;z&lt;/span&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;is&amp;nbsp;a&amp;nbsp;leap&amp;nbsp;year&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;leap&amp;nbsp;year&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Input the year: 2008&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;2008 is a leap year&lt;/span&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='https://www.infostudblogs.in/feeds/4762196102401623063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-that-takes-year-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/4762196102401623063'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/4762196102401623063'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-that-takes-year-from.html' title='Java program to find year is a leap year or not | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-nWbeLU2Twxo/YKOAt-jAYUI/AAAAAAAABrE/VHiq_qWlnSobB1rja6N0r0Eq_3DdgjDtQCLcBGAsYHQ/s72-w640-h376-c/Leap%2BYEAR%2BOR%2BNOT.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-7332271654779035466</id><published>2021-05-13T14:55:00.007+05:30</published><updated>2021-05-22T15:08:56.395+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Java program that takes the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input | infoStud blogs</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #351c75; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-e7ZMYHHJYMo/YKjQ8DLNtrI/AAAAAAAABsM/-EqLYxtjoZ84aAB94SKTFAtN30DN3H1VwCLcBGAsYHQ/s1920/Java%2Bprogram%2Bthat%2Btakes%2Bthe%2Buser%2Bto%2Bprovide%2Ba%2Bsingle%2Bcharacter%2Bfrom%2Bthe%2Balphabet..jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Java program that takes the user to provide a single character from the alphabet.&quot; border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://1.bp.blogspot.com/-e7ZMYHHJYMo/YKjQ8DLNtrI/AAAAAAAABsM/-EqLYxtjoZ84aAB94SKTFAtN30DN3H1VwCLcBGAsYHQ/w640-h360/Java%2Bprogram%2Bthat%2Btakes%2Bthe%2Buser%2Bto%2Bprovide%2Ba%2Bsingle%2Bcharacter%2Bfrom%2Bthe%2Balphabet..jpg&quot; title=&quot;Java program that takes the user to provide a single character from the alphabet.&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #351c75; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Objective&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Write a Java program that takes the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input. If the user input is not a letter (between a and z or A and Z), or is a string of length &amp;gt; 1, print an error message.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Sample Input&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Input:&lt;/b&gt; A&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Output:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Input letter is Vowel&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Input:&lt;/b&gt; B&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Output:&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Input letter is Consonant&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: medium;&quot;&gt;Code&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;p&gt;&lt;b style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #351c75; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/b&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;UpperLower&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;[]&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Input&amp;nbsp;an&amp;nbsp;alphabet:&amp;nbsp;&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;next&lt;/span&gt;().&lt;span style=&quot;color: #dcdcaa;&quot;&gt;toLowerCase&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;uppercase&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;charAt&lt;/span&gt;(&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;)&amp;nbsp;&amp;gt;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;65&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;                           input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;charAt&lt;/span&gt;(&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;)&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;lowercase&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;charAt&lt;/span&gt;(&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;)&amp;nbsp;&amp;gt;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;97&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;                           input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;charAt&lt;/span&gt;(&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;)&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;122&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;boolean&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;vowels&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;equals&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;a&quot;&lt;/span&gt;)&amp;nbsp;||&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;equals&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;e&quot;&lt;/span&gt;)&amp;nbsp;||&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;                           input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;equals&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;i&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;||&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;equals&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;o&quot;&lt;/span&gt;)&amp;nbsp;||&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;equals&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;u&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;length&lt;/span&gt;()&amp;nbsp;&amp;gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Error.&amp;nbsp;Not&amp;nbsp;a&amp;nbsp;single&amp;nbsp;character.&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(!(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;uppercase&lt;/span&gt;&amp;nbsp;||&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;lowercase&lt;/span&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Error.&amp;nbsp;Not&amp;nbsp;a&amp;nbsp;letter.&amp;nbsp;Enter&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;                uppercase&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #ce9178; font-size: large;&quot;&gt;lowercase&amp;nbsp;letter.&quot;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;vowels&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Input&amp;nbsp;letter&amp;nbsp;is&amp;nbsp;Vowel&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Input&amp;nbsp;letter&amp;nbsp;is&amp;nbsp;Consonant&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Input an alphabet: A&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Input letter is Vowel&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #351c75; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/7332271654779035466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-that-takes-user-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7332271654779035466'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7332271654779035466'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-that-takes-user-to.html' title='Java program that takes the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-e7ZMYHHJYMo/YKjQ8DLNtrI/AAAAAAAABsM/-EqLYxtjoZ84aAB94SKTFAtN30DN3H1VwCLcBGAsYHQ/s72-w640-h360-c/Java%2Bprogram%2Bthat%2Btakes%2Bthe%2Buser%2Bto%2Bprovide%2Ba%2Bsingle%2Bcharacter%2Bfrom%2Bthe%2Balphabet..jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-5969236735525401804</id><published>2021-05-13T14:43:00.007+05:30</published><updated>2021-05-18T13:12:09.764+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Java Program for finding Numbers of day in a Month| infoStud blogs</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-1PBDLnrdQ6A/YKNvjL4rJTI/AAAAAAAABq8/IOQZfNzTG00KJbJjjXj0FxGQuy6aVk6igCLcBGAsYHQ/s1004/Java%2BProgram%2Bfor%2Bfinding%2BNumbers%2Bof%2Bdays%2Bin%2Ba%2BMonth.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Java Program for finding Numbers of day in a Month, Java Programs&quot; border=&quot;0&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; height=&quot;376&quot; src=&quot;https://1.bp.blogspot.com/-1PBDLnrdQ6A/YKNvjL4rJTI/AAAAAAAABq8/IOQZfNzTG00KJbJjjXj0FxGQuy6aVk6igCLcBGAsYHQ/w640-h376/Java%2BProgram%2Bfor%2Bfinding%2BNumbers%2Bof%2Bdays%2Bin%2Ba%2BMonth.png&quot; title=&quot;Java Program for finding Numbers of day in a Month | infoStud blogs&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Finding the number of days in a month required basic knowledge of conditional statements. In Java, programmers can easily find out a number of days by using &quot;if-else&quot; and &quot;Switch&quot;&amp;nbsp; concepts of conditional statements. We all know there are 12 months in a year and each month has 29-31 days.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;In the case of Leap year which comes in the gap of 4 years, February has only 28 days. By considering all the information, the programmer can write a java program for finding the numbers of days in a Month (Including Leap Year). So let&#39;s begin.&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #351c75; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Question&lt;/b&gt;&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: georgia; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;Write a Java program to find the number of days in a month.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia; font-size: medium;&quot;&gt;Code&lt;/span&gt;&lt;/h4&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Numberofdayinmonth&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Unknown&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Input&amp;nbsp;a&amp;nbsp;month&amp;nbsp;number:&amp;nbsp;&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;month&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Input&amp;nbsp;a&amp;nbsp;year:&amp;nbsp;&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;input&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;switch&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;month&lt;/span&gt;)&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;January&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;February&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;((&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;%&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;400&lt;/span&gt;&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;)&amp;nbsp;||&amp;nbsp;((&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;%&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;)&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;                                       (&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;%&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;)))&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;29&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;28&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;March&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;April&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;30&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;May&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;June&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;30&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;July&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;August&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;September&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;30&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;October&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;November&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;30&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;December&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;MonthOfName&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;year&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;has&amp;nbsp;&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;           number_Of_DaysInMonth&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;days&lt;/span&gt;&lt;span style=&quot;color: #d7ba7d;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia; font-size: medium;&quot;&gt;Output&lt;/span&gt;&lt;/h4&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Input a month number: 4&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Input a year: 2026&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;April 2026 has 30 days&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;How Code Work&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now it&#39;s time to understand the code that how it works.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Steps:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;The programmer has to make class and the main method first. After making a class Scanner Method will be used for taking inputs from the user.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/5969236735525401804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-to-find-number-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/5969236735525401804'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/5969236735525401804'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-to-find-number-of.html' title='Java Program for finding Numbers of day in a Month| infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-1PBDLnrdQ6A/YKNvjL4rJTI/AAAAAAAABq8/IOQZfNzTG00KJbJjjXj0FxGQuy6aVk6igCLcBGAsYHQ/s72-w640-h376-c/Java%2BProgram%2Bfor%2Bfinding%2BNumbers%2Bof%2Bdays%2Bin%2Ba%2BMonth.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-5999905227079784434</id><published>2021-05-13T11:48:00.001+05:30</published><updated>2021-05-13T11:48:25.040+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Write a Java program that reads in two floating-point numbers and tests whether they are the same up to three decimal places.</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.87);&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;Write a Java program that reads in two floating-point numbers and tests whether they are the same up to three decimal places.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;background-color: white; clear: both; color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px; line-height: 24px; margin: 0px 0px 16px; padding: 0px;&quot;&gt;&lt;b&gt;Test Data&lt;/b&gt;&lt;br /&gt;Input floating-point number: 25.586&lt;br /&gt;Input floating-point another number: 25.589&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; font-size: large;&quot;&gt;Code&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Threedecimalplaces&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;Input&amp;nbsp;floating&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;double&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextDouble&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;other&amp;nbsp;Input&amp;nbsp;floating&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;double&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextDouble&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Math&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;round&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;&amp;nbsp;*&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;&amp;nbsp;/&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Math&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;round&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;&amp;nbsp;*&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;&amp;nbsp;/&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;They&amp;nbsp;are&amp;nbsp;the&amp;nbsp;same&amp;nbsp;up&amp;nbsp;to&amp;nbsp;three&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;                                 decimal&amp;nbsp;places&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;They&amp;nbsp;are&amp;nbsp;different&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: large;&quot;&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;pre class=&quot;output&quot; style=&quot;background-color: #f8f8f8; border-left: 10px solid rgb(166, 127, 89); color: #009999; font-size: 16px; overflow: auto; padding: 10.95px;&quot;&gt;Input floating-point number:  25.586&lt;br /&gt;Input floating-point another number:  25.589&lt;br /&gt;They are different&lt;/pre&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='https://www.infostudblogs.in/feeds/5999905227079784434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-that-reads-in-two.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/5999905227079784434'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/5999905227079784434'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-that-reads-in-two.html' title='Write a Java program that reads in two floating-point numbers and tests whether they are the same up to three decimal places.'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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-8829471421669026450.post-7052327933462027181</id><published>2021-05-10T23:02:00.003+05:30</published><updated>2021-05-16T21:30:06.348+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Discount in Java | infoStud blogs</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-eLRjGSJPCyo/YKFA7iAWiNI/AAAAAAAABqo/aVeC4btbe9oqx72SsEskbiUQTVes9-odQCLcBGAsYHQ/s1004/Discount%2BIn%2BJava.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Discount in Java | infoStud blogs, Java Code, Java program, Java Code for Practice&quot; border=&quot;0&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; height=&quot;376&quot; src=&quot;https://1.bp.blogspot.com/-eLRjGSJPCyo/YKFA7iAWiNI/AAAAAAAABqo/aVeC4btbe9oqx72SsEskbiUQTVes9-odQCLcBGAsYHQ/w640-h376/Discount%2BIn%2BJava.jpg&quot; title=&quot;Discount in Java | infoStud blogs&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: large;&quot;&gt;About&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Write a program in Java to find out the discounted amount according to the below mention conditions, also find the total profit.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: large;&quot;&gt;Conditions&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;if Amount &amp;lt;1000:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Print=&amp;nbsp; No Discount applicable + Amount&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;if Amount &amp;gt;=1000 &amp;amp;&amp;amp; Amount&amp;lt;=2000; Discount = 20%&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Print= Total Pay and Profit&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;if Amount &amp;gt;=2000 &amp;amp;&amp;amp; Amount&amp;lt;=5000; Discount = 25%&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Print= Total Pay and Profit&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;if Amount &amp;gt;=5000; Discount = 30%&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Print= Total Pay and Profit&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: large;&quot;&gt;Test Conditions&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Amount = 200&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Total Pay = 200&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Profit = 0&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Amount = 7000&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Total Pay = 4900 Rs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Profit = 2100 Rs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Amount = 4500&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Total Pay = 3375 Rs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Profit = 1125 Rs&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: large;&quot;&gt;Code&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Discount&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;total&amp;nbsp;Amount&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;)&amp;nbsp;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;&amp;gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;&amp;lt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;2000&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Discount&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;*&lt;span style=&quot;color: #b5cea8;&quot;&gt;20&lt;/span&gt;)/&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;-&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Discount&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Profit&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;-&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Total&amp;nbsp;Pay:&amp;nbsp;&quot;&lt;/span&gt;+&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;+&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;Rs&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Total&amp;nbsp;Profit:&amp;nbsp;&quot;&lt;/span&gt;+&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Profit&lt;/span&gt;+&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;Rs&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;&amp;gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;2000&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;&amp;nbsp;&amp;lt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;5000&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Discount&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;*&lt;span style=&quot;color: #b5cea8;&quot;&gt;25&lt;/span&gt;)/&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;-&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Discount&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Profit&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;-&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Total&amp;nbsp;Pay:&amp;nbsp;&quot;&lt;/span&gt;+&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;+&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;Rs&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Total&amp;nbsp;Profit:&amp;nbsp;&quot;&lt;/span&gt;+&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Profit&lt;/span&gt;+&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;Rs&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;&amp;gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5000&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Discount&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;*&lt;span style=&quot;color: #b5cea8;&quot;&gt;30&lt;/span&gt;)/&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;-&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Discount&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Profit&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;-&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Total&amp;nbsp;Pay:&amp;nbsp;&quot;&lt;/span&gt;+&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Total&lt;/span&gt;+&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;Rs&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Total&amp;nbsp;Profit:&amp;nbsp;&quot;&lt;/span&gt;+&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Profit&lt;/span&gt;+&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;Rs&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;&amp;lt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;No&amp;nbsp;Discount,&amp;nbsp;You&amp;nbsp;have&amp;nbsp;to&amp;nbsp;pay&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;           full&amp;nbsp;Amount:&amp;nbsp;&quot;&lt;/span&gt;+&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Amount&lt;/span&gt;+&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&amp;nbsp;Rs&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: large;&quot;&gt;Output&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;Enter the total Amount&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;200&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;No Discount, You have to pay full Amount: 200 Rs&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;Enter the total Amount&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;7000&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Total Pay: 4900 Rs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Total Profit: 2100Rs&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;Enter the total Amount&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;4500&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Total Pay: 3375 Rs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Total Profit: 1125 Rs&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&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='https://www.infostudblogs.in/feeds/7052327933462027181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/discount-in-java-infostud-blogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7052327933462027181'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7052327933462027181'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/discount-in-java-infostud-blogs.html' title='Discount in Java | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-eLRjGSJPCyo/YKFA7iAWiNI/AAAAAAAABqo/aVeC4btbe9oqx72SsEskbiUQTVes9-odQCLcBGAsYHQ/s72-w640-h376-c/Discount%2BIn%2BJava.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-7049216599067296000</id><published>2021-05-10T11:55:00.007+05:30</published><updated>2021-05-22T12:56:58.618+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Java program that reads a floating-point number and prints &quot;zero&quot; if the number is zero. Otherwise, print &quot;positive&quot; or &quot;negative&quot; | infoStud blogs </title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-uqlV9AgFOtE/YKix0MPf6qI/AAAAAAAABrs/3KsjQ3tMXPYrrr6MIomcNPVlpQv9zcA3QCLcBGAsYHQ/s1920/Java%2Bprogram%2Bthat%2Breads%2Ba%2Bfloating-point%2Bnumber%2Band%2Bprints%2Bzero%2Bif%2Bthe%2Bnumber%2Bis%2Bzero.%2BOtherwise%252C%2Bprint%2Bpositive%2Bor%2Bnegative.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Java program that reads a floating-point number and prints zero if the number is zero. Otherwise, print positive or negative&quot; border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://1.bp.blogspot.com/-uqlV9AgFOtE/YKix0MPf6qI/AAAAAAAABrs/3KsjQ3tMXPYrrr6MIomcNPVlpQv9zcA3QCLcBGAsYHQ/w640-h360/Java%2Bprogram%2Bthat%2Breads%2Ba%2Bfloating-point%2Bnumber%2Band%2Bprints%2Bzero%2Bif%2Bthe%2Bnumber%2Bis%2Bzero.%2BOtherwise%252C%2Bprint%2Bpositive%2Bor%2Bnegative.png&quot; title=&quot;Java program that reads a floating-point number and prints zero if the number is zero. Otherwise, print positive or negative&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #20124d; font-size: large;&quot;&gt;Objective:&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Write a Java program that reads a floating-point number and prints &quot;zero&quot; if the number is zero. Otherwise, print &quot;Positive&quot; or &quot;Negative&quot;. Add &quot;small&quot; if the absolute value of the number is less than 1, or &quot;large&quot; if it exceeds 1,000,000.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #20124d; font-family: georgia; font-size: large;&quot;&gt;Conditions:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;User Input&lt;/b&gt; = 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Output&lt;/b&gt; = Zero&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;User Input&lt;/b&gt; =3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Output&lt;/b&gt; = Positive&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;User Input&lt;/b&gt; = -99&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Output &lt;/b&gt;= Negative&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;User Input &lt;/b&gt;= 0.4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Output&lt;/b&gt; = Small&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;User Input&lt;/b&gt; = 1988000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Output&lt;/b&gt; = Large&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #20124d; font-family: georgia; font-size: large;&quot;&gt;Sample Input&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #20124d; font-family: georgia; font-size: large;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;User Input&lt;/b&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;445&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&amp;nbsp;= Positive Number&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;User Input&lt;/b&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; font-size: large;&quot;&gt;10000000&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&amp;nbsp;= Large&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;&lt;span style=&quot;color: #20124d; font-family: georgia;&quot;&gt;&lt;b&gt;Code&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;floatingpointNumber&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;&amp;nbsp;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;float&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Num&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Num&lt;/span&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Num&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;100000&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Positive&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Num&lt;/span&gt;&amp;nbsp;&amp;lt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Negative&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Num&lt;/span&gt;&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Zero&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Num&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Num&lt;/span&gt;&amp;nbsp;&amp;lt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Small&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Num&lt;/span&gt;&amp;nbsp;&amp;gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000000&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Large&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;&lt;span style=&quot;color: #20124d; font-family: georgia;&quot;&gt;Output&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;div&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;Enter the Number:&lt;/div&gt;&lt;div&gt;445&lt;/div&gt;&lt;div&gt;Positive Number&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;Enter the Number:&lt;/div&gt;&lt;div&gt;10000000&lt;/div&gt;&lt;div&gt;Large&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&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='https://www.infostudblogs.in/feeds/7049216599067296000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-that-reads-floating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7049216599067296000'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7049216599067296000'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/write-java-program-that-reads-floating.html' title='Java program that reads a floating-point number and prints &quot;zero&quot; if the number is zero. Otherwise, print &quot;positive&quot; or &quot;negative&quot; | infoStud blogs '/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-uqlV9AgFOtE/YKix0MPf6qI/AAAAAAAABrs/3KsjQ3tMXPYrrr6MIomcNPVlpQv9zcA3QCLcBGAsYHQ/s72-w640-h360-c/Java%2Bprogram%2Bthat%2Breads%2Ba%2Bfloating-point%2Bnumber%2Band%2Bprints%2Bzero%2Bif%2Bthe%2Bnumber%2Bis%2Bzero.%2BOtherwise%252C%2Bprint%2Bpositive%2Bor%2Bnegative.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-2382854551483164345</id><published>2021-05-02T13:09:00.008+05:30</published><updated>2021-05-19T12:07:43.674+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz ( Part - 9 ) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;   &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-T2T_cKcEUaM/YI5aaamso2I/AAAAAAAABn8/m36gs86HbuYpGZ-3TfYF2BVskcq99jRxACLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25287%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-T2T_cKcEUaM/YI5aaamso2I/AAAAAAAABn8/m36gs86HbuYpGZ-3TfYF2BVskcq99jRxACLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25287%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;             &lt;/center&gt;            &lt;title&gt;Java Programming Language Output this code Quizzes 1&lt;/title&gt;                     &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz&lt;/p&gt;   &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. Can an abstract class define both abstract methods and non-abstract methods?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. Yes – the subclass inherits both.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. No – she must have either one or the other.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. No – it can only have abstract methods.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Yes – but the abstract methods are not inherited from the subclass.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. What does polymorphism mean in Java?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. If a program uses several different types of objects, each with its own variable.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. If a single superclass has multiple subclasses.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. When a single variable is used for several different but related object types in different parts of the program.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. If a class has different methods with the same name but different parameter types.&lt;/label&gt;   &lt;/div&gt;                  &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. What is the advantage of polymorphism?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;The same programming logic can be applied to multiple related object types.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; The same programming logic can be applied to multiple related object types.&quot;&gt;1. The same programming logic can be applied to multiple related object types.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Variables can be reused to save memory.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Constructing new objects from old objects of a similar type saves time.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Polymorphism is a dangerous aspect of heredity and should be avoided.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. What is the signature of a method?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. The signature of a method is the name of a method and the type of its return value.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. The signature of a method is the name of the method and the names of its parameters.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;The signature of a method is the name of the method and the data types of its parameters.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;The signature of a method is the name of the method and the data types of its parameters.&quot;&gt;3.The signature of a method is the name of the method and the data types of its parameters.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. The signature of a method is the name of the method, its parameter list, and its return type.&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. What must a non-abstract subclass do with an abstract method of its superclass?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot; A subclass must override an inherited abstract method by defining a method with the same signature and return type:&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; A subclass must override an inherited abstract method by defining a method with the same signature and return type:&quot;&gt;1.  A subclass must override an inherited abstract method by defining a method with the same signature and return type:  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  A subclass must define an additional method that is similar to the inherited method in that it defines a method with the same signature but a different return type.)&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. A subclass can not define a method with the same signature as it already has an abstract method of the superclass.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. A non-abstract subclass can not define an abstract method with the same signature and return type as the superclass’s abstract method.&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. Assume that there is three classes Computer, AppleComputerand IBMComputer. What does the relationship between these classes look like?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.  Computer, AppleComputerand IBMComputerare sibling classes.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. IBMComputeris the superclass, AppleComputerand Computerare subclasses of IBMComputer.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Computeris the superclass, AppleComputerand IBMComputerare subclasses of Computer.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Computeris the superclass, AppleComputerand IBMComputerare subclasses of Computer.&quot;&gt;3. Computeris the superclass, AppleComputerand IBMComputerare subclasses of Computer.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Computeris a superclass, AppleComputeris a subclass of Computerand IBMComputeris a subclass of AppleComputer.&lt;/label&gt;   &lt;/div&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. What must be true if a subclass of an abstract superclass does not override the abstract methods of the superclass?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;The subclass itself must be declared abstract.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;The subclass itself must be declared abstract.&quot;&gt;1. The subclass itself must be declared abstract.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Subclasses are automatically non-abstract, so that’s OK.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.  The superclass is a mistake.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  That’s always a mistake.&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. How many objects of a given class can be in a program?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;As many as the program needs.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;As many as the program needs.&quot;&gt;1.As many as the program needs.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  One per defined class.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.  One per constructor definition.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. One per main()method.&lt;/label&gt;   &lt;/div&gt;                 &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. What is the name of the class that is the ancestor of each class in Java?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;Object&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Object&quot;&gt;1. Object&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Class&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.  root&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Java&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10.What is an abstract method?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. An abstract method is any method in an abstract class.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  An abstract method is a method that can not be inherited.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot; An abstract method is a bodyless method abstractdeclared with the reserved word .&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; An abstract method is a bodyless method abstractdeclared with the reserved word .&quot;&gt;3. An abstract method is a bodyless method abstractdeclared with the reserved word .&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. An abstract method is a method in the subclass that overrides the method of a superclass.&lt;/label&gt;   &lt;/div&gt;               &lt;/div&gt;  &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/2382854551483164345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-9-infostud-blogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2382854551483164345'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2382854551483164345'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-9-infostud-blogs.html' title='Java MCQ Quiz ( Part - 9 ) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-T2T_cKcEUaM/YI5aaamso2I/AAAAAAAABn8/m36gs86HbuYpGZ-3TfYF2BVskcq99jRxACLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25287%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-6416765634921891276</id><published>2021-05-02T12:38:00.009+05:30</published><updated>2021-05-19T12:02:07.843+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz (Part - 8 ) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;    &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-MAcYS8_w4nU/YI5qBpN0ZTI/AAAAAAAABoE/F8LqsnDB-SsNR2GXk19zhAXVaXP9lYUDQCLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25286%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-MAcYS8_w4nU/YI5qBpN0ZTI/AAAAAAAABoE/F8LqsnDB-SsNR2GXk19zhAXVaXP9lYUDQCLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25286%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;           &lt;/center&gt;            &lt;title&gt;Java Programming Language Output this code Quizzes 1&lt;/title&gt;                     &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz&lt;/p&gt;   &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. How can a method return a primitive value to the caller?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. It can return the value to the caller by using the returnstatement.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. It can assign the value to one of its parameters.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. A method can under no circumstances communicate with the caller.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. It can call its caller with the correct value.&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. If a method has a reference to an unchangeable object (eg string object), can the method then make a change to the object?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Yes, if she has a reference to the immutable object, she can change it.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. No, only the generator of the immutable object can change it.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. No, immutable objects can not be changed by anyone after they are created.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Yes, but she has to use the special “+” operator to do that.&lt;/label&gt;   &lt;/div&gt;            &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. Can a programmer (you) design a class whose objects are immutable?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Yes, by privatedeclaring all instance variables of the class as declared and no accessor methods.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; Yes, by privatedeclaring all instance variables of the class as declared and no accessor methods.&quot;&gt;1.Yes, by privatedeclaring all instance variables of the class as declared and no accessor methods.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. No, only a few predefined Java classes Stringare immutable.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. No, all predefined classes are immutable and all classes defined by the programmer are not.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Yes, by privatedeclaring all instance variables and methods as.&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. How many references can there be to a single object?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Just one.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Two. One from the caller and one from the called method.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;There can be any number of references held in any number of variables and parameters (as long as they are of the correct type).&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;There can be any number of references held in any number of variables and parameters (as long as they are of the correct type).&quot;&gt;3. There can be any number of references held in any number of variables and parameters (as long as they are of the correct type).&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Three. The original reference and a reference for the formal and the current parameters.&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. Which operation is most often performed by programs?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Addition of the integer one to an integer variable.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Addition of the integer one to an integer variable.&quot;&gt;1. Addition of the integer one to an integer variable.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Floating point division.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Construction of an object.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Access to the Internet.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. Assume that there is three classes Computer, AppleComputerand IBMComputer. What does the relationship between these classes look like?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.  Computer, AppleComputerand IBMComputerare sibling classes.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. IBMComputeris the superclass, AppleComputerand Computerare subclasses of IBMComputer.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Computeris the superclass, AppleComputerand IBMComputerare subclasses of Computer.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Computeris the superclass, AppleComputerand IBMComputerare subclasses of Computer.&quot;&gt;3. Computeris the superclass, AppleComputerand IBMComputerare subclasses of Computer.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Computeris a superclass, AppleComputeris a subclass of Computerand IBMComputeris a subclass of AppleComputer.&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. Can an object be the subclass of another object?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;No – inheritance exists only between classes.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;No – inheritance exists only between classes.&quot;&gt;1. No – inheritance exists only between classes.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Yes – as long as the single inheritance is observed.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Only if one is defined in the other’s terms.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Yes – when one object is used in the constructor of the other.&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. How many objects of a given class can be in a program?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;As many as the program needs.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;As many as the program needs.&quot;&gt;1.As many as the program needs.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  One per defined class.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.  One per constructor definition.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. One per main()method.&lt;/label&gt;   &lt;/div&gt;                 &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. What restriction is there when using the keyword superin a constructor?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;It must be used as the first statement of the constructor.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;It must be used as the first statement of the constructor.&quot;&gt;1. It must be used as the first statement of the constructor.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. It can only be used in the constructor of the superclass.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. It can only be used by one subclass.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. It must be used as the last statement of the constructor.&lt;/label&gt;   &lt;/div&gt;    &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10.What is an abstract method?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. An abstract method is any method in an abstract class.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  An abstract method is a method that can not be inherited.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot; An abstract method is a bodyless method abstractdeclared with the reserved word .&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; An abstract method is a bodyless method abstractdeclared with the reserved word .&quot;&gt;3. An abstract method is a bodyless method abstractdeclared with the reserved word .&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. An abstract method is a method in the subclass that overrides the method of a superclass.&lt;/label&gt;   &lt;/div&gt;   &lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/6416765634921891276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-8-infostud-blogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/6416765634921891276'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/6416765634921891276'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-8-infostud-blogs.html' title='Java MCQ Quiz (Part - 8 ) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-MAcYS8_w4nU/YI5qBpN0ZTI/AAAAAAAABoE/F8LqsnDB-SsNR2GXk19zhAXVaXP9lYUDQCLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25286%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-3971660549886468277</id><published>2021-05-02T11:43:00.008+05:30</published><updated>2021-05-19T11:56:41.062+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz ( Part -7 ) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;    &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-66dccuekXDA/YI5ZLl4--lI/AAAAAAAABn0/8iN-Z2hd-mM-qeb8Dm5hLDV4aMotOI6SACLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25285%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-66dccuekXDA/YI5ZLl4--lI/AAAAAAAABn0/8iN-Z2hd-mM-qeb8Dm5hLDV4aMotOI6SACLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25285%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;            &lt;/center&gt;            &lt;title&gt;Java Programming Language Output this code Quizzes 1&lt;/title&gt;                     &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz&lt;/p&gt;   &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. Which value is assigned to a reference value to show that there is no object?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. zero  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. “”&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. void&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 0&lt;/label&gt;   &lt;/div&gt;          &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. What happens to an object that no longer has reference variables that reference it?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. It remains in main memory forever.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. It is swapped out to the hard disk.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. The garbage collection service exposes the memory it occupies to other objects.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. It comes in the dumpster.&lt;/label&gt;   &lt;/div&gt;                 &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. If an operator like “+” has more meaning depending on the context, is it called?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot; overloading&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; overloading&quot;&gt;1. overloading&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. overload&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Revise&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. oversize cargo&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. What is the name of an object that can not be changed after creation?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. unalterable&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. forever&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;invariable&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;invariable&quot;&gt;3. invariable&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. incomprehensible.&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. What is a current parameter?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;The value passed to a method by the caller.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;The value passed to a method by the caller.&quot;&gt;1. The value passed to a method by the caller.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. The identifier used in a method instead of the value passed to this method by the caller.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.  A variable used to control a counting loop.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  The value returned by a method.&lt;/label&gt;   &lt;/div&gt;           &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. What is another name for object creation?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.  insubordination&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. initialization&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;instantiation&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;instantiation&quot;&gt;3. instantiation&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. heredity&lt;/label&gt;   &lt;/div&gt;                &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. Which type of parameter passing is used in Java?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Call-by-value.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; Call-by-value.&quot;&gt;1. Call-by-value.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Call-By-Object.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Call-By-parameters.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Call-By-Waiting.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. Will there be any effect on the caller when a method assigns a new value to a primitive parameter?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;No, because all methods have a copy of the value of the caller.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;No, because all methods have a copy of the value of the caller.&quot;&gt;1. No, because all methods have a copy of the value of the caller.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. No, as the method is not allowed to change the value of any parameter.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Yes, the change will affect the corresponding value of the caller.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Yes, because the method and its caller share the same memory section.&lt;/label&gt;   &lt;/div&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. Does it have any effect on the caller when a method assigns a new object to an object reference parameter?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;No, as this does not affect any objects that the caller can reference.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;No, as this does not affect any objects that the caller can reference.&quot;&gt;1. No, as this does not affect any objects that the caller can reference.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. No, because this is not a legal operation.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Yes, because now the caller can reference the new object.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Yes, because the new object will replace one of the caller’s objects.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. Does it have any effect on the caller if a method assigns a new value to an object element that it can access through an object reference parameter?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. No, since she only has one copy of the object.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. No, as it is not allowed to do that.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot; Yes, this will change the part of the object that both the method and the caller reference.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; Yes, this will change the part of the object that both the method and the caller reference.&quot;&gt;3.  Yes, this will change the part of the object that both the method and the caller reference.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Yes, the caller will now get a new object.&lt;/label&gt;   &lt;/div&gt;                &lt;/div&gt;  &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/3971660549886468277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-7-infostud-blogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/3971660549886468277'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/3971660549886468277'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-7-infostud-blogs.html' title='Java MCQ Quiz ( Part -7 ) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-66dccuekXDA/YI5ZLl4--lI/AAAAAAAABn0/8iN-Z2hd-mM-qeb8Dm5hLDV4aMotOI6SACLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25285%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-2340530810366174819</id><published>2021-05-02T11:23:00.004+05:30</published><updated>2021-05-19T11:39:12.461+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz (Part - 6) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;   &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-KX72ISO_APo/YI5Y75WRkGI/AAAAAAAABns/Ang8T2bzQgcxYuyiXxlTuEq_lpMUCIUfgCLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25284%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-KX72ISO_APo/YI5Y75WRkGI/AAAAAAAABns/Ang8T2bzQgcxYuyiXxlTuEq_lpMUCIUfgCLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25284%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;         &lt;/center&gt;            &lt;title&gt;Java Programming Language Output this code Quizzes 1&lt;/title&gt;                     &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz&lt;/p&gt;   &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. Which attributes have real existing objects?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. Objects have an identity, a state and a behavior.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Objects have a state and a behavior.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Objects have a size and weight.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Objects have an existence.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2.Which properties do all software objects have?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Software objects have RAM, ROM and processors.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Software objects have variables and memory.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. Software objects have an identity, a state, and a behavior.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Software objects are made of computer elements.&lt;/label&gt;   &lt;/div&gt;           &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. What is the defining characteristic of a von Neumann computer ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Multi-purpose memory is used to store programs and data.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Multi-purpose memory is used to store programs and data.&quot;&gt;1. Multi-purpose memory is used to store programs and data.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. RAM is used for data and ROM for programs.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. He has both a processor and a memory.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. He uses general purpose arithmetic registers.&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. If you start a Java application by java IrgendeineKlassetyping, which is the first method that will be executed?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. The method IrgendeineKlasse.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. The method of run()the class IrgendeineKlasse.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;The method of main()the class IrgendeineKlasse.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;The method of main()the class IrgendeineKlasse.&quot;&gt;3. The method of main()the class IrgendeineKlasse.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. The method applet().&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. What is a class?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;A class is a description of a type of object.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;A class is a description of a type of object.&quot;&gt;1. A class is a description of a type of object.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. A class is a piece of computer memory that contains objects.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. A class is a part of the hard disk reserved for object-oriented programs.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. A class is the part of an object that contains variables.&lt;/label&gt;   &lt;/div&gt;          &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. What is another name for object creation?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.  insubordination&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. initialization&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;instantiation&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;instantiation&quot;&gt;3. instantiation&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. heredity&lt;/label&gt;   &lt;/div&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. What are static variables and methods of a class?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Variables and methods that are part of the class definition but not their objects.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; Variables and methods that are part of the class definition but not their objects.&quot;&gt;1.  Variables and methods that are part of the class definition but not their objects.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Variables and methods that form the basis of each object of the class.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Variables and methods that belong to all objects in the computer system.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Variables and methods that belong only to the objects of this class.&lt;/label&gt;   &lt;/div&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. Which of the following statements invokes the method of length()the object strand stores the result in the variable laenge?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;length = str.length ();&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;length = str.length ();&quot;&gt;1. length = str.length ();  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. length = length.str ();&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. length = length (). str;&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. length = length (str);&lt;/label&gt;   &lt;/div&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. How many objects can an application create from a particular class?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;As many as the application requires.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;As many as the application requires.&quot;&gt;1. As many as the application requires.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Only one per constructor.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Only one per class.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. One object per variable.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. What kind of thing is “nothing new” in the following statement: String str = “Nichts Neues”;&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.  A string shortcut.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. A string in quotation marks.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;A string literal.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;A string literal.&quot;&gt;3. A string literal.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. An optimized string.&lt;/label&gt;   &lt;/div&gt;         &lt;/div&gt;  &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/2340530810366174819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-6-infostud-blogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2340530810366174819'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2340530810366174819'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-6-infostud-blogs.html' title='Java MCQ Quiz (Part - 6) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-KX72ISO_APo/YI5Y75WRkGI/AAAAAAAABns/Ang8T2bzQgcxYuyiXxlTuEq_lpMUCIUfgCLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25284%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-1151866870675904073</id><published>2021-05-01T21:20:00.006+05:30</published><updated>2021-05-19T11:27:33.863+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz (Part - 5) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;    &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-XdJlCKu9dRY/YI15FifhvlI/AAAAAAAABnc/8JwnFxM7Yy4VZY000qNeqrXOKcaWXctVQCLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25283%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-XdJlCKu9dRY/YI15FifhvlI/AAAAAAAABnc/8JwnFxM7Yy4VZY000qNeqrXOKcaWXctVQCLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25283%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;             &lt;/center&gt;            &lt;title&gt;Java MCQ Quiz&lt;/title&gt;                     &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. Correct answer will be highleted with green colour and wrong answer will be highleted with red colour.&lt;/p&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. Which of the following is not a correct arithmetic expression?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. alpha (/ impuls – 12.4)  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. alpha&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. (alpha / impulse) – 12.4&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. ((alpha / impuls) – 12.4)&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. What is an operand?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Another name for a number.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Another name for an integer.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. A value that an operator acts on.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. One of the arithmetic symbols like *, +, – and /.&lt;/label&gt;   &lt;/div&gt;                         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. Which of the following expressions is not evaluated as a floating-point operation?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;a + b&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;a + b&quot;&gt;1. a + b&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. x / y&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. a + x&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 1.5 + 8.6&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. Which of the following declarations for the constant PI is correct (assuming that the value is correct)?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. constant double PI = 3.14159265358979;&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. “double PI = 3.14159265358979;”&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;final double PI = 3.14159265358979;&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;final double PI = 3.14159265358979;&quot;&gt;3. final double PI = 3.14159265358979;&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. final PI = 3.14159265358979;&lt;/label&gt;   &lt;/div&gt;            &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. How many objects of a given class can be constructed in a program?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;As many as the program requires.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;As many as the program requires.&quot;&gt;1.As many as the program requires.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Only one object is constructed per run.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Only one per class.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. One object per variable.&lt;/label&gt;   &lt;/div&gt;            &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. Which of the following is a correct way Stringto construct an object?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. String alpha (“Hello Quiz!”);&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Eg String = “Hello Quiz!” ;&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;String alpha = new String (“Hello Quiz!”);&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;String alpha = new String (“Hello Quiz!”);&quot;&gt;3. String alpha = new String (“Hello Quiz!”);&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. String alpha = new “Hello Quiz!” ;&lt;/label&gt;   &lt;/div&gt;                      &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. Do any objects exist at the moment a program is about to start?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot; No. Objects are created one at a time when the program is running.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;No. Objects are created one at a time when the program is running.&quot;&gt;1. No. Objects are created one at a time when the program is running.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Yes. All objects describing the program are generated when the program starts to start.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Yes. All objects describing the program are generated when the program is compiled.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. no. Objects are a way of thinking about programming, but they do not really exist.&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. Which of the following calls the method of length()the object strreferenced by and stores the result in wert?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;value = str.length ();&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; value = str.length ();&quot;&gt;1. value = str.length ();  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Eg value = length.str ();&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. value = length (). Str;&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. value = length (str);&lt;/label&gt;   &lt;/div&gt;                &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. What is a reference to an object?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;Data where the object can be found.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Data where the object can be found.&quot;&gt;1. Data where the object can be found.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. One of the methods of the object.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.One of the variables of the object.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. A place in a program that creates the object.&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. Assuming that a random number Random rand = Random()generator was created. Which of the following selects an integer from the range 0, 1, 2, 3, 4, 5, 6, 7, 8, 9?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. rand.nextInt(9)&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. rand.nextInt()*10&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;rand.nextInt(10)&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;rand.nextInt(10)&quot;&gt;3. rand.nextInt(10)&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. rand.nextInt(1,10)&lt;/label&gt;   &lt;/div&gt; &lt;/div&gt;&lt;h1&gt;Also Attempt&lt;/h1&gt;&lt;ul&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/03/test-1.html&quot;&gt; Java MCQ Quiz (Part - 1) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/03/test-quiz.html&quot;&gt; Java MCQ Quiz (Part - 2) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-3-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 3) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-quiz-mcq-part-4-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 4) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-6-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 6) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-7-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 7) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-8-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 8) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-9-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 9) &lt;/li&gt;                        &lt;/ul&gt; &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/1151866870675904073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/java-quiz-mcq-part-5-infostud-blogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1151866870675904073'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1151866870675904073'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/java-quiz-mcq-part-5-infostud-blogs.html' title='Java MCQ Quiz (Part - 5) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-XdJlCKu9dRY/YI15FifhvlI/AAAAAAAABnc/8JwnFxM7Yy4VZY000qNeqrXOKcaWXctVQCLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25283%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-6457203546013694749</id><published>2021-05-01T17:44:00.008+05:30</published><updated>2021-05-19T11:24:52.768+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz (Part - 4) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;       &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-61boGEnCKNQ/YI1GGRJ6ndI/AAAAAAAABnU/2kB9f_RWsW8BC5Gu2G0DgB8RlWoE1HG2ACLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25282%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-61boGEnCKNQ/YI1GGRJ6ndI/AAAAAAAABnU/2kB9f_RWsW8BC5Gu2G0DgB8RlWoE1HG2ACLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25282%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;            &lt;/center&gt;            &lt;title&gt;Java MCQ Quiz (Part-4)&lt;/title&gt;                     &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. Correct answer will be highleted with green colour and wrong answer will be highleted with red colour.&lt;/p&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. What is a class?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1.  A class is a description of a type of object.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. A class is part of an object that contains variables.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. A class is a section of computer memory that contains objects.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  A class is a section of the hard disk reserved for object-oriented programs.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. How many objects of a given class can be constructed in a program?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Only one per class.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Only one object is constructed per run.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. As many as the program requires.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. One object per variable.&lt;/label&gt;   &lt;/div&gt;                      &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. Which of the following is a correct way Stringto construct an object?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;String alpha = new String (“Hello Quiz!”);&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;String alpha = new String (“Hello Quiz!”);&quot;&gt;1.String alpha = new String (“Hello Quiz!”); &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. String alpha = new String (“Hello Quiz!”);&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Eg String = “Hello Quiz!” ;&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. String alpha (“Hello Quiz!”);&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. What is an object?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. An object is a very small location that contains only data.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. “Object” is another word for “Program.”&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;An object is a piece of memory that may contain data along with methods to process the data.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;An object is a piece of memory that may contain data along with methods to process the data.&quot;&gt;3. An object is a piece of memory that may contain data along with methods to process the data.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. An object is a description of a potential class.&lt;/label&gt;   &lt;/div&gt;           &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. Do any objects exist at the moment a program is about to start?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;No. Objects are created one at a time when the program is running.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;No. Objects are created one at a time when the program is running.&quot;&gt;1. No. Objects are created one at a time when the program is running.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  Yes. All objects describing the program are generated when the program starts to start.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.  Yes. All objects describing the program are generated when the program is compiled.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. no. Objects are a way of thinking about programming, but they do not really exist.&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. Which of the following calls the method of length()the object strreferenced by and stores the result in wert?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.Eg value = length.str ();&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. value = length (). Str;&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;value = str.length ();&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;value = str.length ();&quot;&gt;3. value = str.length ();&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. value = length (str);&lt;/label&gt;   &lt;/div&gt;                        &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7.What is a reference to an object?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot; Data where the object can be found.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; Data where the object can be found.&quot;&gt;1. Data where the object can be found.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. One of the methods of the object.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.One of the variables of the object.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. A place in a program that creates the object.&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. What is the class of the type wrapper for the primitive type int?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot; Integer&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; Integer&quot;&gt;1. Integer  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. integer&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. INT&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. int&lt;/label&gt;   &lt;/div&gt;            &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. How many alternatives are there for a single if-else statement?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;2&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;2&quot;&gt;1. 2  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 3&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3.4&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 5&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. Which three parts of a counting loop need to be coordinated in the right order for the loop to work properly?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. The whilestatement, the ifstatement, the sequential execution&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. The whilestatement, the assignment, the loop body&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot; Initialize counter, test counter, change counter&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; Initialize counter, test counter, change counter&quot;&gt;3. Initialize counter, test counter, change counter&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Initialize condition, change condition, end loop&lt;/label&gt;   &lt;/div&gt;                     &lt;center&gt;  &lt;iframe width=&quot;480&quot; height=&quot;360&quot; src=&quot;https://youtu.be/RUV4eDwdyEA&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;  &lt;/center&gt;&lt;/div&gt;&lt;h1&gt;Also Attempt&lt;/h1&gt;&lt;ul&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/03/test-1.html&quot;&gt; Java MCQ Quiz (Part - 1) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/03/test-quiz.html&quot;&gt; Java MCQ Quiz (Part - 2) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-3-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 3) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-quiz-mcq-part-5-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 5) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-6-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 6) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-7-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 7) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-8-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 8) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-9-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 9) &lt;/li&gt;                        &lt;/ul&gt; &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/6457203546013694749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-4-infostud-blogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/6457203546013694749'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/6457203546013694749'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-4-infostud-blogs.html' title='Java MCQ Quiz (Part - 4) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-61boGEnCKNQ/YI1GGRJ6ndI/AAAAAAAABnU/2kB9f_RWsW8BC5Gu2G0DgB8RlWoE1HG2ACLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25282%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-9063931945256008900</id><published>2021-05-01T13:29:00.015+05:30</published><updated>2021-05-18T19:43:16.675+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz (Part - 3) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;       &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-QonzH82a4AY/YI0pn8vgLzI/AAAAAAAABnE/mHqDWsTcqEkbWv5RYgJkUPOSrS04EZ-DQCLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-3%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-QonzH82a4AY/YI0pn8vgLzI/AAAAAAAABnE/mHqDWsTcqEkbWv5RYgJkUPOSrS04EZ-DQCLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-3%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;            &lt;/center&gt;            &lt;title&gt;Java MCQ Quiz ( Part - 3 )&lt;/title&gt;                     &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. Correct answer will be highleted with green colour and wrong answer will be highleted with red colour.&lt;/p&gt;     &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. What is a data type ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1.  A special scheme to represent values ??in bit patterns.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. A portion of the main memory used to store data.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. The calculator of the CPU.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. The collection of variables that a program uses.&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. How many bit patterns can a single bit represent?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. 1&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 4&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. 2&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 8th&lt;/label&gt;   &lt;/div&gt;        &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. What is a primitive data type in Java ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;A method to represent values ??that are so useful that they are an integral part of the language.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;A method to represent values ??that are so useful that they are an integral part of the language.&quot;&gt;1.A method to represent values ??that are so useful that they are an integral part of the language.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. An easy way to represent numbers.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. The part of Java that matches the older programming languages.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  A data type that can not be used as part of an object.&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. Does every variable in Java need a data type?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.  No – a data type is optional.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Yes – all variables are of the same data type.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Yes – every variable must be declared with its data type.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Yes – every variable must be declared with its data type.&quot;&gt;3. Yes – every variable must be declared with its data type.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. No – only numeric variables need a data type.&lt;/label&gt;   &lt;/div&gt;                &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. What is NOT a name of a primitive data type in Java?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;string&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;string&quot;&gt;1. string  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. stand-in&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. float&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. int&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. Is the value ONE always represented by the same bit sequence?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.Yes – it is always stored in one bit.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Yes – there is only one “one”, so there is only one bit sequence.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;No – “one” can be represented by different integer or floating point data types.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;No – “one” can be represented by different integer or floating point data types.&quot;&gt;3.  No – “one” can be represented by different integer or floating point data types.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. No – the bit pattern changes every time the program starts.&lt;/label&gt;   &lt;/div&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7.Suppose a particular data item does not use a primitive data type. What does it have to be?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot; An object.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; An object.&quot;&gt;1.  An object.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. A number.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. A literal.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. A Boolean element.&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. How many digits is the decimal precision of the following number: +1200004.5&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;8th&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;8th&quot;&gt;1. 8th  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 5&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. 4&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Over one million&lt;/label&gt;   &lt;/div&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. Can chardata be stored in the main memory of the computer?&lt;/h3&gt;     &lt;br /&gt;    &lt;input id=&quot;Yes – a primitive data type is used to save it.&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Yes – a primitive data type is used to save it.&quot;&gt;1. Yes – a primitive data type is used to save it.  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. No – computers can only save numbers.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. No -; the computer can only save patterns.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Yes – chardata is stored in a special memory.&lt;/label&gt;   &lt;/div&gt;    &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. Which of the following is a reserved word ?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1.grandtotal&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. up&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;boolean&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;boolean&quot;&gt;3. boolean&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. grandtotal&lt;/label&gt;   &lt;/div&gt;      &lt;center&gt;  &lt;iframe width=&quot;480&quot; height=&quot;360&quot; src=&quot;https://youtube.com/embed/4uZtPJcX2jE&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;  &lt;/center&gt;&lt;/div&gt;                &lt;h1&gt;Also Attempt&lt;/h1&gt;&lt;ul&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/03/test-1.html&quot;&gt; Java MCQ Quiz (Part - 1) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/03/test-quiz.html&quot;&gt; Java MCQ Quiz (Part - 2) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-4-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 4) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-quiz-mcq-part-5-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 5) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-6-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 6) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-7-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 7) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-8-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 8) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-9-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 9) &lt;/li&gt;                        &lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/9063931945256008900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-3-infostud-blogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/9063931945256008900'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/9063931945256008900'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-3-infostud-blogs.html' title='Java MCQ Quiz (Part - 3) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-QonzH82a4AY/YI0pn8vgLzI/AAAAAAAABnE/mHqDWsTcqEkbWv5RYgJkUPOSrS04EZ-DQCLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-3%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-1787933476726291801</id><published>2021-04-23T16:21:00.010+05:30</published><updated>2021-05-19T13:15:15.918+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Network"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Computer Network Quiz (Part -1) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;                      &lt;title&gt; Computer Network Quiz (Part-1)&lt;/title&gt;            &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;          &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Computer Network. You will have to read all the given options and click over the correct answer. If your answer is correct than green light glow otherwise red light will glow. You can use Next Quiz button to check new set of questions in the quiz&lt;/p&gt;   &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. Group of computer connectedd with each other through wir, ptical fibre, so various devices connected to each other:&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. Computer Network  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Hardware Networks &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Networks &lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. None of the Mentioned&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. Network Interface Card Contain:&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. IP Address&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. MAC Address &lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3.Hardware Addresses&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Software Addresses&lt;/label&gt;   &lt;/div&gt;            &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. How many parts of NIC is there?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;JVM&quot; name=&quot;question3&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;JVM&quot;&gt;1. 2  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 3&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. 5&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 4&lt;/label&gt;   &lt;/div&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. A central device which splits the network connection into multiple devices &lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Switch&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Router&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Barry Boehm&quot; name=&quot;question4&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Barry Boehm&quot;&gt;3. Hub&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Address&lt;/label&gt;   &lt;/div&gt;      &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. Computer architecture divided into how many parts?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;2&quot; name=&quot;question5&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;2s&quot;&gt;1. 2  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 3&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. 5&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 6&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. A Hardware which used to connect a computer with another component onto a network:&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Router&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Hub&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;NIC&quot; name=&quot;question6&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;NIC&quot;&gt;3. NIC&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Connector&lt;/label&gt;   &lt;/div&gt;                &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. Which of these is a standard interface for serial data transmission?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;RS232C&quot; name=&quot;question7&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;RS232C&quot;&gt;1. RS232C  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. ASCII&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Centronics&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 3&lt;/label&gt;   &lt;/div&gt;           &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. &quot;Parity bits&quot; are used for which of the following purposes?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;To detect errors&quot; name=&quot;question7&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;To detect errors&quot;&gt;1. To detect errors  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Encryption of data&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. To identify the user&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. To transmit faster&lt;/label&gt;   &lt;/div&gt;      &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. A collection of hyperlinked documents on the internet forms the ?&lt;h3&gt;  &lt;br /&gt;    &lt;input id=&quot;World Wide Web (WWW)&quot; name=&quot;question9&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;World Wide Web (WWW)&quot;&gt;1. World Wide Web (WWW)  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. E-mail system&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Hypertext markup language&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Mailing list&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. Which one of the following is not a network topology?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Star&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Ring&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Peer to Peer&quot; name=&quot;question10&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Peer to Peer&quot;&gt;3. Peer to Peer&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Bus&lt;/label&gt;   &lt;/div&gt;                 &lt;/div&gt;  &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/1787933476726291801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/04/computer-network-quiz-part-1-infostud.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1787933476726291801'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1787933476726291801'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/04/computer-network-quiz-part-1-infostud.html' title='Computer Network Quiz (Part -1) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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-8829471421669026450.post-6856383484863939704</id><published>2021-04-19T23:20:00.096+05:30</published><updated>2021-05-04T10:32:14.990+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>If - Else decision statement in Java Examples | infoStud blogs</title><content type='html'>&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-qneJKiX5IL4/YJDUb9b1GII/AAAAAAAABok/f9ebVO_ejbwKj2s1FuxtK7NOjatI99niQCLcBGAsYHQ/s1920/If%2B-%2BElse%2Bdecision%2Bstatement%2Bin%2BJava%2BExamples.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;If - Else decision statement in Java Examples,  control statements in java with examples if...else statement example control statements in java, control statements in java, control statements in java pdf if-else statement java exercises pdf else if ladder in java. How do you write an IF ELSE statement in Java? What are decision making statements in Java explain with&quot; border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://1.bp.blogspot.com/-qneJKiX5IL4/YJDUb9b1GII/AAAAAAAABok/f9ebVO_ejbwKj2s1FuxtK7NOjatI99niQCLcBGAsYHQ/w640-h360/If%2B-%2BElse%2Bdecision%2Bstatement%2Bin%2BJava%2BExamples.jpg&quot; title=&quot;If - Else decision statement in Java Examples&quot; width=&quot;640&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;If - Else decision statement in Java Examples&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In Java, decision statements play a major role. Without using decision statements make your code may be lengthy or maybe you can&#39;t achieve your goal. This post contains some examples of java if-else decision statements. These examples help you to build your basics and you will get to know how you can write or use decision statements in Java Program. So let&#39;s begin!!&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;Examples&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;Example 1:&lt;/span&gt; &lt;span style=&quot;color: #351c75;&quot;&gt;Write a program in java to print whether the number is even or odd.&lt;/span&gt;&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;Code&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;evenodd&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955; font-size: large;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;%&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;==&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;The&amp;nbsp;given&amp;nbsp;number&amp;nbsp;is&amp;nbsp;Even&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;The&amp;nbsp;number&amp;nbsp;is&amp;nbsp;Odd&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia;&quot;&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Enter the Number&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;665&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;The number is Odd&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Example 2:&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Write a program in Java to find that whether the input number is divisible by 2, 3, and 5.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia;&quot;&gt;Code&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;JavaProgram&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;%&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;==&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;%&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;==&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;%&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;==&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;This&amp;nbsp;Number&amp;nbsp;is&amp;nbsp;correct&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Try&amp;nbsp;another&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia;&quot;&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Number&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;30&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;This Number is correct&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Number&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;6&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Try another Number&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Example 3: &lt;/span&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Write a program in java to print whether the number enter by the user is positive or not.&lt;/span&gt;&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;Code&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;JavaProgram&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;&amp;gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;&amp;nbsp;==&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;This&amp;nbsp;Number&amp;nbsp;is&amp;nbsp;positive&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;This&amp;nbsp;Number&amp;nbsp;is&amp;nbsp;Negative&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia; font-size: medium;&quot;&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Number&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;This Number is Negative&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Example 4:&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Write a program in java to print whether the student is pass or fail on the basis of percentage.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia; font-size: medium;&quot;&gt;Code&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;JavaProgram&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Percentage&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Number&lt;/span&gt;&amp;gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;40&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Student&amp;nbsp;is&amp;nbsp;Pass&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Student&amp;nbsp;is&amp;nbsp;fail&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia; font-size: medium;&quot;&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Percentage&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;30&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Student is fail&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Percentage&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;54&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Student is Pass&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Example 5:&lt;/span&gt; &lt;span style=&quot;color: #351c75;&quot;&gt;Write a program in java to check whether the inputs given by the user are rectangle measurements or not.&lt;/span&gt;&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;Code&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Checkrectangle&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Length&amp;nbsp;Measurement&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Breadth&amp;nbsp;Measurement&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;&amp;gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;*&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Area&amp;nbsp;of&amp;nbsp;Rectangle&amp;nbsp;is:&amp;nbsp;&quot;&lt;/span&gt;+&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Please&amp;nbsp;Enter&amp;nbsp;the&amp;nbsp;valid&amp;nbsp;Dimensions&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;for&amp;nbsp;the &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #ce9178; font-size: large;&quot;&gt;Rectangle&amp;nbsp;as&amp;nbsp;per&amp;nbsp;the&amp;nbsp;values&amp;nbsp;assigned&quot;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia; font-size: medium;&quot;&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Length Measurement&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;40&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Breadth Measurement&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;30&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Area of Rectangle is: 1200&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Length Measurement&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;50&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Breadth Measurement&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;60&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Please Enter the valid Dimensions for the Rectangle as per the values assigned&lt;/span&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='https://www.infostudblogs.in/feeds/6856383484863939704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/04/if-else-decision-statement-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/6856383484863939704'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/6856383484863939704'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/04/if-else-decision-statement-in-java.html' title='If - Else decision statement in Java Examples | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-qneJKiX5IL4/YJDUb9b1GII/AAAAAAAABok/f9ebVO_ejbwKj2s1FuxtK7NOjatI99niQCLcBGAsYHQ/s72-w640-h360-c/If%2B-%2BElse%2Bdecision%2Bstatement%2Bin%2BJava%2BExamples.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-2072427969032185901</id><published>2021-04-18T23:42:00.003+05:30</published><updated>2021-05-18T23:33:53.189+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Placement"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><category scheme="http://www.blogger.com/atom/ns#" term="Software Engineering"/><title type='text'>Software Engineering Quiz (Part - 2) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;         &lt;title&gt;Java Programming Language Output this code Quizzes 1&lt;/title&gt;            &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Software Engineering. You will have to read all the given answers and click over the correct answer. If your answer is correct than green light glow otherwise red. You can use Next Quiz button to check new set of questions in the quiz&lt;/p&gt;   &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. Software design need to satisfy:-&lt;/h3&gt;  &lt;br /&gt;         &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Customer&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Developer&lt;/label&gt; &lt;br /&gt;  &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;3. Both  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. None of the Mentioned&lt;/label&gt;   &lt;/div&gt;     &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. A _____ is a software component with parts at any level of abstraction.&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Documentation&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Files &lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. Module &lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Elements&lt;/label&gt;   &lt;/div&gt;            &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. ____ is the single attribute of the software that allows program to be intellectually manageable&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;JVM&quot; name=&quot;question3&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;JVM&quot;&gt;1.  Modularity  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Modulation&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Module&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Modular&lt;/label&gt;   &lt;/div&gt;        &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. The system which follow the concepts of modularity is called as the - &lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Module&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Molecule&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Modular System&quot; name=&quot;question4&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Modular System&quot;&gt;3. Modular System&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  Modularity&lt;/label&gt;   &lt;/div&gt;        &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. When module passes non global variable to another module&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Data Coupling&quot; name=&quot;question5&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Data Coupling&quot;&gt;1. Data Coupling  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Data Coup&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Updation&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Data Spamming&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. COCOMO Stands for____&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Common control Model&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Composition Cost Model&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Constructive Cost Model&quot; name=&quot;question6&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Constructive Cost Model&quot;&gt;3. Constructive Cost Model&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Consumed Cost Model&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. Line of Code (LOC) of the product comes under which type of measures ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Direct measures&quot; name=&quot;question7&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Direct measures&quot;&gt;1. Direct measures  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Coding&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Indirect measures&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. None of the above&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. How many numbers of maturity levels in CMM are available?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;5&quot; name=&quot;question7&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;5&quot;&gt;1. 5  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 4&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. 6&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 2&lt;/label&gt;   &lt;/div&gt;           &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. Usability can be measured in terms of:&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;All of the mentioned&quot; name=&quot;question9&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;All of the mentioned&quot;&gt;1. All of the mentioned  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Intellectual skill to learn the system&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Time required to become moderately efficient in system usage&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Net increase in productivity&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. In Module A and B when comple data structure is pass from one module to another&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Data spamming &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  Software maintainability&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Stamp coupling&quot; name=&quot;question10&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Stamp coupling&quot;&gt;3. Stamp coupling&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Data Coupling&lt;/label&gt;   &lt;/div&gt;            &lt;/div&gt;  &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/2072427969032185901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/04/software-engineering-quiz-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2072427969032185901'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2072427969032185901'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/04/software-engineering-quiz-part-2.html' title='Software Engineering Quiz (Part - 2) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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-8829471421669026450.post-7357739390058344568</id><published>2021-04-14T22:40:00.005+05:30</published><updated>2021-05-18T20:00:34.981+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Network"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Software Engineering MCQ Quiz (Part - 1) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;                  &lt;title&gt;Java Programming Language Output this code Quizzes 1&lt;/title&gt;            &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Software Engineering. You will have to read all the given answers and click over the correct answer. If your answer is correct than green light glow otherwise red. You can use Next Quiz button to check new set of questions in the quiz&lt;/p&gt;   &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. What is Software ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. Software is set of programs, documentation and configration of data  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Software is set of programs &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Software is documentation and configuration of data &lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. None of the Mentioned&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2. The fundamental notions of software engineering does not account for ?&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Software reuse&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Software processes &lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3.Software Validation &lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Software Security&lt;/label&gt;   &lt;/div&gt;        &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. Which of these software engineering activities are not a part of software processes ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;JVM&quot; name=&quot;question3&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;JVM&quot;&gt;1.  Software dependence  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Software validation&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Software specification&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Software development&lt;/label&gt;   &lt;/div&gt;        &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4. The spiral model was orinally Proposed by -&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Pressman&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Peter&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Barry Boehm&quot; name=&quot;question4&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Barry Boehm&quot;&gt;3. Barry Boehm&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  Royce&lt;/label&gt;   &lt;/div&gt;                &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. Build and Fix model has ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;1 Phases&quot; name=&quot;question5&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;1 Phases&quot;&gt;1. 1 Phases  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 2 Phases&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. 3 Phases&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 4 Phases&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6. COCOMO Stands for____&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Common control Model&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Composition Cost Model&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Constructive Cost Model&quot; name=&quot;question6&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Constructive Cost Model&quot;&gt;3. Constructive Cost Model&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Consumed Cost Model&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. Line of Code (LOC) of the product comes under which type of measures ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Direct measures&quot; name=&quot;question7&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Direct measures&quot;&gt;1. Direct measures  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Coding&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Indirect measures&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. None of the above&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. How many numbers of maturity levels in CMM are available?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;5&quot; name=&quot;question7&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;5&quot;&gt;1. 5  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 4&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. 6&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. 2&lt;/label&gt;   &lt;/div&gt;            &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. Usability can be measured in terms of:&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;All of the mentioned&quot; name=&quot;question9&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;All of the mentioned&quot;&gt;1. All of the mentioned  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Intellectual skill to learn the system&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Time required to become moderately efficient in system usage&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Net increase in productivity&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. What are attributes of good software ? −&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Software functionality&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  Software maintainability&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Both Software functionality &amp;amp; maintainability&quot; name=&quot;question10&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Both Software functionality &amp;amp; maintainability&quot;&gt;3. Both Software functionality &amp;amp; maintainability&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Software development&lt;/label&gt;   &lt;/div&gt;   &lt;/div&gt;  &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/7357739390058344568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/04/software-engineering-mcq-quiz-part-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7357739390058344568'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7357739390058344568'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/04/software-engineering-mcq-quiz-part-1.html' title='Software Engineering MCQ Quiz (Part - 1) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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-8829471421669026450.post-1685133379266996671</id><published>2021-03-28T10:46:00.097+05:30</published><updated>2021-05-18T19:56:50.516+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz (Part -2) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;       &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-nW93f_S59HQ/YI0sIqLJtoI/AAAAAAAABnM/YTLJgiv2b6kVeu0Tv6ea5psBrG7ATYTUACLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25281%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-nW93f_S59HQ/YI0sIqLJtoI/AAAAAAAABnM/YTLJgiv2b6kVeu0Tv6ea5psBrG7ATYTUACLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25281%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;             &lt;/center&gt;            &lt;title&gt;Java MCQ Quiz (Part -2)&lt;/title&gt;            &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. Correct answer will be highleted with green colour and wrong answer will be highleted with red colour.&lt;/p&gt;         &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. Which of the below is valid way to instantiate an array in java?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. int myArray [] = {1, 3, 5};   &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. int myArray [] [] = {1,2,3,4};&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. int [] myArray = (5, 4, 3);&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. int [] myArray = {“1”, “2”, “3”};&lt;/label&gt;   &lt;/div&gt;    &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2.  In java control statements break, continue, return, try-catch-finally and assert belongs to? −&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Selection statements&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Loop Statements&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. Transfer statements&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  Pause Statement&lt;/label&gt;   &lt;/div&gt;           &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. Which provides runtime environment for java byte code to be executed?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;JVM&quot; name=&quot;question3&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;JVM&quot;&gt;1. JVM  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. JDK&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. JAVAC&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. JRE&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4.  What is byte code in Java?−&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Code generated by a Java Virtual Machine&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Name of Java source code file&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Code generated by a Java compiler&quot; name=&quot;question4&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Code generated by a Java compiler&quot;&gt;3. Code generated by a Java compiler&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Block of code written inside a class&lt;/label&gt;   &lt;/div&gt;                &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. Which of the following are not Java keywords ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;then&quot; name=&quot;question5&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;then&quot;&gt;1. then  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. switch&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. instanceof&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. double&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6.  Which of these have highest precedence? −&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. *&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. ++&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;()&quot; name=&quot;question6&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;()&quot;&gt;3. ()&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. &gt;&gt;&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. Which of these is returned by operator &#39;&amp;&#39; ?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Character&quot; name=&quot;question7&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Character&quot;&gt;1. Character  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Boolean&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Integer&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Float&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8. Which variables are created when an object is created with the use of the keyword &#39;new&#39; and destroyed when the object is destroyed?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Instance variables&quot; name=&quot;question7&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Instance variables&quot;&gt;1. Instance variables  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Static variables&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Class Variables&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Local variables&lt;/label&gt;   &lt;/div&gt;          &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9. In java control statements break, continue, return, try-catch-finally and assert belongs to?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Transfer statements&quot; name=&quot;question9&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Transfer statements&quot;&gt;1. Transfer statements  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Selection statements&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Loop Statements&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Pause Statement&lt;/label&gt;   &lt;/div&gt;    &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10. Which symbol is used to contain the values of automatically initialized arrays? −&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Brackets&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Comma&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Braces&quot; name=&quot;question10&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Braces&quot;&gt;3. Braces&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Parentheses&lt;/label&gt;   &lt;/div&gt;                &lt;/div&gt;           &lt;h1&gt;Also Attempt&lt;/h1&gt;&lt;ul&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/03/test-1.html&quot;&gt; Java MCQ Quiz (Part - 1) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-3-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 3) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-4-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 4) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-quiz-mcq-part-5-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 5) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-6-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 6) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-7-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 7) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-8-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 8) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-9-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 9) &lt;/li&gt;                        &lt;/ul&gt;&lt;center&gt;     &lt;iframe width=&quot;480&quot; height=&quot;270&quot; src=&quot;https://youtube.com/embed/xJxYkXVmQ3M&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;  &lt;/center&gt;&lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/1685133379266996671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/03/test-quiz.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1685133379266996671'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1685133379266996671'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/03/test-quiz.html' title='Java MCQ Quiz (Part -2) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-nW93f_S59HQ/YI0sIqLJtoI/AAAAAAAABnM/YTLJgiv2b6kVeu0Tv6ea5psBrG7ATYTUACLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529%2B%25281%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-4860465098474040103</id><published>2021-03-23T16:02:00.004+05:30</published><updated>2021-05-18T14:38:41.492+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Concepts"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>if-else Decision Making Examples In Java | infoStud blogs</title><content type='html'>&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://1.bp.blogspot.com/-9XP9yKqySOU/YKODyFK-ebI/AAAAAAAABrM/D4fEwz-loX0CRq10545pgEE85pxSTNxvgCLcBGAsYHQ/s2048/if-else%2BDecision%2BMaking%2BExamples%2BIn%2BJava.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;if-else Decision Making Examples In Java&quot; border=&quot;0&quot; data-original-height=&quot;1152&quot; data-original-width=&quot;2048&quot; height=&quot;360&quot; src=&quot;https://1.bp.blogspot.com/-9XP9yKqySOU/YKODyFK-ebI/AAAAAAAABrM/D4fEwz-loX0CRq10545pgEE85pxSTNxvgCLcBGAsYHQ/w640-h360/if-else%2BDecision%2BMaking%2BExamples%2BIn%2BJava.png&quot; title=&quot;if-else Decision Making Examples In Java | infoStud blogs&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;This post contains some examples related to if-else Decision Making in Java. Decision-making is one of the basic and important concepts not in Java but in any programming.&amp;nbsp;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;The if statement tells us that if a condition is true and it will execute a block of code and if the condition is false it won’t. But what if we want to do something else if the condition is false. Here comes the else statement.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;We can use the else statement with if statement to execute a block of code when the condition is false. Now it&#39;s a time to watch some examples related to the if-else Decision making in Java&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;1. Check whether the input given by the users is suitable for finding the Area of the Rectangle.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;If Length&amp;gt;Breadth&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;Length: 8&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;Breadth: 4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;Code&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Checkrectangle&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Length&amp;nbsp;Measurement&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Breadth&amp;nbsp;Measurement&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;&amp;gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;*&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Area&amp;nbsp;of&amp;nbsp;Rectangle&amp;nbsp;is:&amp;nbsp;&quot;&lt;/span&gt;+&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Please&amp;nbsp;Enter&amp;nbsp;the&amp;nbsp;valid&amp;nbsp;Dimensions&amp;nbsp;for&amp;nbsp;the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;Recatngle&amp;nbsp;as&amp;nbsp;per&amp;nbsp;the&amp;nbsp;values&amp;nbsp;assigned&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;Output&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Length Measurement&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;8&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;Enter the Breadth Measurement&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #40424e; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;&amp;nbsp;Area of the Rectangle is: 32&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #ffa400; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;If Length&amp;lt;Breadth&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;Length: 4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;Breadth: 8&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;Code&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Checkrectangle&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Length&amp;nbsp;Measurement&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Breadth&amp;nbsp;Measurement&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;&amp;gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;*&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Area&amp;nbsp;of&amp;nbsp;Rectangle&amp;nbsp;is:&amp;nbsp;&quot;&lt;/span&gt;+&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&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;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Please&amp;nbsp;Enter&amp;nbsp;the&amp;nbsp;valid&amp;nbsp;Dimensions&amp;nbsp;for&amp;nbsp;the&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&amp;nbsp;Recatngle&amp;nbsp;as&amp;nbsp;per&amp;nbsp;the&amp;nbsp;values&amp;nbsp;assigned&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;color: #40424e; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;Output&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Length Measurement&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;Enter the Breadth Measurement&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;8&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.162px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.162px;&quot;&gt;Please Enter the valid Dimensions for the Rectangle as per the values assigned&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/4860465098474040103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/03/if-else-decision-making-in-java-examples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/4860465098474040103'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/4860465098474040103'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/03/if-else-decision-making-in-java-examples.html' title='if-else Decision Making Examples In Java | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-9XP9yKqySOU/YKODyFK-ebI/AAAAAAAABrM/D4fEwz-loX0CRq10545pgEE85pxSTNxvgCLcBGAsYHQ/s72-w640-h360-c/if-else%2BDecision%2BMaking%2BExamples%2BIn%2BJava.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-2906073191438167840</id><published>2021-03-18T18:41:00.005+05:30</published><updated>2021-05-22T13:13:06.510+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Area of Rectangle in Java | infoStud blogs</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-mRet9mzLAvg/YKiz61qJZhI/AAAAAAAABr0/-6_saAKQgYYw9QdiGhFj_5AjTl8G2Bx8QCLcBGAsYHQ/s1920/Area%2Bof%2BRectangle%2Bin%2BJava.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Area of Rectangle in Java, Java Program, Java Programming Questions, Java Practice Questions, Java Practice Questions for Beginners&quot; border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://1.bp.blogspot.com/-mRet9mzLAvg/YKiz61qJZhI/AAAAAAAABr0/-6_saAKQgYYw9QdiGhFj_5AjTl8G2Bx8QCLcBGAsYHQ/w640-h360/Area%2Bof%2BRectangle%2Bin%2BJava.jpg&quot; title=&quot;Area of Rectangle in Java  infoStud blogs&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;This post is about how we can find out the Area of Rectangle in java.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Area of Rectangle in java&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;follows the basic syntax of mathematics to multiply two numbers. You have to keep in your mind that, Measurement of the Length is always greater than the measurement Breadth. Now Let&#39;s see how we can calculate the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Area of Rectangle in java.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: large;&quot;&gt;&lt;b&gt;Objective:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Write a java program to calculate the area of the Rectangle.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Sample Input&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Input Length&lt;/b&gt; = 7&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Input Breadth&lt;/b&gt; = 8&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Area of Rectangle&lt;/b&gt;: 56&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;1. Simple Way&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;Code&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #d4d4d4; font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;AreaofRectangle&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;7;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;*&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Area of Rectangle:&amp;nbsp;&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&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;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #d4d4d4; font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;Output&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Area of Rectangle: 56&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: large;&quot;&gt;2. Using Scanner Class&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Here we are calculating the area of the rectangle in Java using Scanner Class. Scanner class basically use for taking the input from the users. By using the scanner class we can enter the values according to our choice.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;Code&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;AreaofRectangle&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Length&amp;nbsp;Measurement&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;Breadth&amp;nbsp;Measurement&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Length&lt;/span&gt;*&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Breadth&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Product&amp;nbsp;of&amp;nbsp;the&amp;nbsp;Two&amp;nbsp;Numbers&amp;nbsp;is:&amp;nbsp;&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&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;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;Output&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Length Measurement&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;6&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the Breadth Measurement&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #444444; font-family: georgia; font-size: medium;&quot;&gt;5&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #444444; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Product of the Two Numbers is: 30&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/2906073191438167840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/03/program-to-calculate-area-of-rectangle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2906073191438167840'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2906073191438167840'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/03/program-to-calculate-area-of-rectangle.html' title='Area of Rectangle in Java | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-mRet9mzLAvg/YKiz61qJZhI/AAAAAAAABr0/-6_saAKQgYYw9QdiGhFj_5AjTl8G2Bx8QCLcBGAsYHQ/s72-w640-h360-c/Area%2Bof%2BRectangle%2Bin%2BJava.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-1415068891501496969</id><published>2021-03-18T18:08:00.008+05:30</published><updated>2021-05-22T14:43:25.055+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Concepts"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><title type='text'>Multiplication in Java | infoStud blogs</title><content type='html'>&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://1.bp.blogspot.com/-m6bSf5hbaA4/YKjLC9VI3nI/AAAAAAAABsE/N92CFHStLxIyNWxBId0gejZlemON2u83QCLcBGAsYHQ/s1640/Multiplication%2Bin%2BJava.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Multiplication in Java, Multiply in Java&quot; border=&quot;0&quot; data-original-height=&quot;924&quot; data-original-width=&quot;1640&quot; height=&quot;360&quot; src=&quot;https://1.bp.blogspot.com/-m6bSf5hbaA4/YKjLC9VI3nI/AAAAAAAABsE/N92CFHStLxIyNWxBId0gejZlemON2u83QCLcBGAsYHQ/w640-h360/Multiplication%2Bin%2BJava.jpg&quot; title=&quot;Multiplication in Java&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;This post is about how we can do multiplication in java. Multiplication in java follows the basic syntax of mathematics to multiply two numbers. You can also multiply more than 2 numbers in java according to the scenario or need. Now Let&#39;s see how we can do multiplication of numbers in Java.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: large;&quot;&gt;Objective:&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Write a java program to multiply the numbers.&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: large;&quot;&gt;Sample Input:&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;int a &lt;/b&gt;=&amp;nbsp; 4&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;int b&lt;/b&gt; = 2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Output&lt;/b&gt; = 8&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: large;&quot;&gt;Code&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;color: #0b5394; font-family: georgia; font-size: medium;&quot;&gt;&lt;h2 style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;1. Simple Multiplication&lt;/span&gt;&lt;/h2&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Multiply&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;a&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;b&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;a&lt;/span&gt;*&lt;span style=&quot;color: #9cdcfe;&quot;&gt;b&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Product&amp;nbsp;of&amp;nbsp;the&amp;nbsp;Two&amp;nbsp;Numbers&amp;nbsp;is:&amp;nbsp;&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;8&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;2. Multiplication using Scanner Class&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Here we are performing multiplication in Java using Scanner Class. Scanner class basically use for taking the input from the users. By using the scanner class we can enter the values according to our choice.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span&gt;&lt;!--more--&gt;&lt;/span&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;java&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;util&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Multiply&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Scanner&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;Scanner&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;in&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;Scanner&amp;nbsp;object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;first&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;a&lt;/span&gt;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Enter&amp;nbsp;the&amp;nbsp;first&amp;nbsp;Number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;b&lt;/span&gt;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;sc&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;nextInt&lt;/span&gt;();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;a&lt;/span&gt;*&lt;span style=&quot;color: #9cdcfe;&quot;&gt;b&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Product&amp;nbsp;of&amp;nbsp;the&amp;nbsp;Two&amp;nbsp;Numbers&amp;nbsp;is:&amp;nbsp;&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;c&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;Output&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the first Number&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;5&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enter the first Number&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;3&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Product of the Two Numbers is: 15&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/1415068891501496969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/03/multiply-in-java-multiplication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1415068891501496969'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1415068891501496969'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/03/multiply-in-java-multiplication.html' title='Multiplication in Java | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-m6bSf5hbaA4/YKjLC9VI3nI/AAAAAAAABsE/N92CFHStLxIyNWxBId0gejZlemON2u83QCLcBGAsYHQ/s72-w640-h360-c/Multiplication%2Bin%2BJava.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-1765195968806392107</id><published>2021-03-14T19:55:00.047+05:30</published><updated>2021-05-18T19:53:41.832+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Quizzes"/><title type='text'>Java MCQ Quiz (Part  - 1) | infoStud blogs</title><content type='html'>&lt;html&gt;   &lt;head&gt;           &lt;center&gt;       &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-w5dVEldPmV0/YIv367Y-sVI/AAAAAAAABm8/SckTCFPH2zI0A344bQUPOEvR1GdQBdJuQCLcBGAsYHQ/s1004/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; src=&quot;https://1.bp.blogspot.com/-w5dVEldPmV0/YIv367Y-sVI/AAAAAAAABm8/SckTCFPH2zI0A344bQUPOEvR1GdQBdJuQCLcBGAsYHQ/s600/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;            &lt;/center&gt;            &lt;title&gt;Java MCQ Quiz (Part - 1)&lt;/title&gt;                     &lt;link href=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/sharecodepoint.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;                       &lt;script src=&quot;https://sharecodepoint.in/sharecodepoint-website-data/quizze-files/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;          &lt;script type=&quot;text/javascript&quot;&gt;	$(document).ready(function() {     $(&#39;label&#39;).click(function() {         $(&#39;label&#39;).removeClass(&#39;worngans&#39;);         $(this).addClass(&#39;worngans&#39;);     }); }); 	&lt;/script&gt;            &lt;/head&gt;   &lt;body&gt;&lt;div class=&quot;scp-quizzes-main&quot;&gt;     &lt;p&gt;Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. Correct answer will be highleted with green colour and wrong answer will be highleted with red colour.&lt;/p&gt;    &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;1. Which of the following is not a keyword in java?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;Fastlearning&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Fastlearning&quot;&gt;1. Finalize  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. static&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. void&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Private&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;2.  What is the size of double variable? −&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. 8 bit&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. 16 bit&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;inculdefile&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;inculdefile&quot;&gt;3. 64 bit&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  32 bit&lt;/label&gt;   &lt;/div&gt;        &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;3. What is the default value of String variable?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;null&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;null&quot;&gt;1. null  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. &quot;&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. &quot;&quot;&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. Not defined&lt;/label&gt;   &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;4.  What is the default value of Object variable?−&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Undefined&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Not defined&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;Null&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;Null&quot;&gt;3. Null&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  0&lt;/label&gt;   &lt;/div&gt;      &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;5. Which of the following is not a keyword in java?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot;emun&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;emun&quot;&gt;1. emun  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Transient&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. strictfp&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. instanceof&lt;/label&gt;   &lt;/div&gt;               &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;6.  What is class variable? −&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. Applet is a standalone java program.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. Applet is a tool.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;An applet is a Java program that runs in a Web browser.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;An applet is a Java program that runs in a Web browser.&quot;&gt;3.  An applet is a Java program that runs in a Web browser.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  Applet is a run time environment.&lt;/label&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;7. What is true about a final class?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot; All the options are correct&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; All the options are correct&quot;&gt;1. All the options are correct  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2.  It can&#39;t be inherited.&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;3. Final classes are created so the methods implemented by that class cannot be overridden.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4. class declard final is a final class.&lt;/label&gt;   &lt;/div&gt;             &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;8.  Does garbage collection guarantee that a program will not run out of memory? −&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. True.&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;False.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;False.&quot;&gt;3. False.&lt;/label&gt; &lt;br /&gt;   &lt;/div&gt;       &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;9.   Is it necessary that each try block must be followed by a catch block?&lt;/h3&gt;  &lt;br /&gt;    &lt;input id=&quot; False&quot; name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot; False&quot;&gt;1. False  &lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question1&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. True.&lt;/label&gt;&lt;br /&gt;      &lt;/div&gt;              &lt;div class=&quot;scp-quizzes-data&quot;&gt;  &lt;h3&gt;10.  What is a marker interface? −&lt;/h3&gt;     &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;1. marker interface is an interface with single method, marker().&lt;/label&gt;&lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label&gt;2. marker interface is an interface with single method, mark().&lt;/label&gt;&lt;br /&gt;    &lt;input id=&quot;marker interface is an interface with no method.&quot; name=&quot;question2&quot; type=&quot;radio&quot; /&gt;       &lt;label for=&quot;marker interface is an interface with no method.&quot;&gt;3. marker interface is an interface with no method.&lt;/label&gt; &lt;br /&gt;    &lt;input name=&quot;question2&quot; type=&quot;radio&quot; /&gt;     &lt;label&gt;4.  none of the above.&lt;/label&gt;   &lt;/div&gt;     &lt;center&gt;  &lt;iframe width=&quot;480&quot; height=&quot;360&quot; src=&quot;https://youtu.be/1EVuoSSSnkM&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;  &lt;/center&gt;&lt;/div&gt;&lt;h1&gt;Also Attempt&lt;/h1&gt;&lt;ul&gt;     &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/03/test-quiz.html&quot;&gt; Java MCQ Quiz (Part - 2) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-3-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 3) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-4-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 4) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-quiz-mcq-part-5-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 5) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-6-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 6) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-7-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 7) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-8-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 8) &lt;/li&gt;  &lt;li&gt; &lt;a href=&quot;https://www.infostudblogs.in/2021/05/java-mcq-quiz-part-9-infostud-blogs.html&quot;&gt; Java MCQ Quiz (Part - 9) &lt;/li&gt;                        &lt;/ul&gt; &lt;/body&gt;&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/1765195968806392107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/03/test-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1765195968806392107'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/1765195968806392107'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/03/test-1.html' title='Java MCQ Quiz (Part  - 1) | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-w5dVEldPmV0/YIv367Y-sVI/AAAAAAAABm8/SckTCFPH2zI0A344bQUPOEvR1GdQBdJuQCLcBGAsYHQ/s72-c/Java%2BMCQ%2BQuiz%2B%2528Part-1%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-2942187123999471234</id><published>2021-03-04T11:25:00.006+05:30</published><updated>2021-05-04T10:57:57.058+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Network"/><category scheme="http://www.blogger.com/atom/ns#" term="Concepts"/><title type='text'>Features Of Computer Network | infoStud blogs</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-wYAJNP3ubVo/YJDa-KbhJLI/AAAAAAAABos/BI0PmzjJNSs5PaLnLkzziEf-luTHMrbZwCLcBGAsYHQ/s1920/Features%2BOf%2BComputer%2BNetwork.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Features Of Computer Network,  classification of computer network application of computer network components of computer network pdf computer network architecture, Features Of Computer network Communication speed. File sharing. Back up and Roll back is easy. Software and Hardware sharing. Security. Scalability. Reliability&quot; border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://1.bp.blogspot.com/-wYAJNP3ubVo/YJDa-KbhJLI/AAAAAAAABos/BI0PmzjJNSs5PaLnLkzziEf-luTHMrbZwCLcBGAsYHQ/w640-h360/Features%2BOf%2BComputer%2BNetwork.jpg&quot; title=&quot;Features of Computer Network&quot; width=&quot;640&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;Features Of Computer Network&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: large;&quot;&gt;A list Of Computer network highlights or features is given underneath:&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Correspondence speed.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Document sharing&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Back up and Roll back is simple&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Programming and Hardware sharing&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Security&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Adaptability&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Dependability&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia; font-size: medium;&quot;&gt;Communication speed&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The network gives us to impart or communicate over the network in a quick and proficient way. For instance, we can do video conferencing, email, and so on net. Thusly, the Computer network is an incredible method to share our insight and thoughts.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; color: #610b4b; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;File sharing&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;File sharing is one of the significant benefits of the computer network. Computer network furnishes us to impart documents or files to one another.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; color: #610b4b; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Back up and Roll back is easy&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Since the files or records are put away in the main server, centrally located. Accordingly, it is not difficult to take them back up from the main server.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #610b4b;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Software and Hardware sharing&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;On the main server, We can install the applications, thusly, the client can get to the applications midway. Thus, we don&#39;t have to install the software on each machine. Essentially, the equipment or hardware can likewise be shared.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #610b4b;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Security&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Network permits security by guaranteeing that the client has the option to get to the specific documents or files and applications.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #610b4b;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Scalability&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Scalability implies that we can include the new parts of the network. The network should be scalable so we can expand the network by adding new gadgets or devices. However, it diminishes the speed of the connection, and data of the transmission speed additionally diminishes, this expands the chances of error happening. This issue can be overwhelmed by utilizing the directing or switching gadgets.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; color: #610b4b; line-height: 1.3em; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Reliability&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Computer networks can utilize the alternative source for the data communication if there should arise an occurrence of any hardware disappointment.&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/2942187123999471234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/03/features-of-computer-network.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2942187123999471234'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/2942187123999471234'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/03/features-of-computer-network.html' title='Features Of Computer Network | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-wYAJNP3ubVo/YJDa-KbhJLI/AAAAAAAABos/BI0PmzjJNSs5PaLnLkzziEf-luTHMrbZwCLcBGAsYHQ/s72-w640-h360-c/Features%2BOf%2BComputer%2BNetwork.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-7167944279199001637</id><published>2021-03-01T17:10:00.006+05:30</published><updated>2021-04-06T18:49:06.661+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Java Introduction | infoStud blogs</title><content type='html'>  &lt;h1 style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;Java Introduction&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;letter-spacing: 0.3px; text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;u&gt;What is Java?&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Java is a robust, high-level, secure, and object-oriented programming language. It provides a computing platform for the development of applications. Java is a programming language that has lesser implementation dependencies and also the reason for our digital lifestyle. Currently, it is widely used in developing the application for laptops, mobiles, gaming consoles, scientific equipment, etc.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;It was developed by the sun microsystems in the year 1995. James Ghosting is the father of java (Programing Language).&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: medium;&quot;&gt;Example&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Print &quot;Hello World&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;color: #d4d4d4; white-space: pre;&quot;&gt;&lt;span style=&quot;background-color: black; font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;HelloWorld&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Print&amp;nbsp;Hello&amp;nbsp;World&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Hello&amp;nbsp;World)&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;letter-spacing: 0.3px;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;u&gt;What is Java Platform?&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;strong style=&quot;background-color: white; box-sizing: inherit; color: #222222; font-size: 18px; line-height: inherit;&quot;&gt;Java Platform&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-size: 18px;&quot;&gt;&amp;nbsp;is a collection of programs which help programmer or developers to develop and run Java programming applications efficiently.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-size: 18px;&quot;&gt;Java Platform contains:&amp;nbsp;&lt;/span&gt;&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;color: #741b47; font-family: georgia;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-size: 18px;&quot;&gt;Execution Engine&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-size: 18px;&quot;&gt;Compiler&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-size: 18px;&quot;&gt;Set of Libraries&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;h2 style=&quot;letter-spacing: 0.3px; text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;u&gt;Applications of Java&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Technology is constantly evolving, due to this there are so many languages are used to develop them. Java is one of the popular programming languages and has a number of applications. Here I have written some applications of java.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;Open Sans&amp;quot;, sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; font-size: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;   &lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Desktop GUI Applications&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Big Data Technologies&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Distributed Applications&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Cloud-based Applications&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Web servers and Application servers&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Software Tools&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Gaming Applications&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Mobile Applications&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enterprise Applications&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Scientific Applications&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Embedded Systems&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;letter-spacing: 0.3px; text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;u&gt;Types of Java Application&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 27px; margin: 0px; padding: 5px 0px; vertical-align: baseline; word-spacing: 0.5px;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Java applications have to classified into:&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;list-1&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #212529; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px; padding: 0px 0px 0px 20px; vertical-align: baseline;&quot;&gt;&lt;/ul&gt;&lt;/span&gt;&lt;/div&gt;   &lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Standalone Application&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Web Application&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enterprise Application&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Mobile Application&lt;/span&gt;&lt;/li&gt;&lt;/ol&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://1.bp.blogspot.com/-d2pALfrsl6M/YDzJ7mEKFFI/AAAAAAAABc0/unbGvrKTkM85K_GKTip-TBUUWjkkia86ACLcBGAsYHQ/s2048/Black%2BColorful%2BStickers%2BStraightforward%2BClassroom%2BRules%2BEducation%2BPortrait%2BPoster.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;img alt=&quot;Types of Java Application&quot; border=&quot;0&quot; data-original-height=&quot;2048&quot; data-original-width=&quot;1446&quot; height=&quot;400&quot; src=&quot;https://1.bp.blogspot.com/-d2pALfrsl6M/YDzJ7mEKFFI/AAAAAAAABc0/unbGvrKTkM85K_GKTip-TBUUWjkkia86ACLcBGAsYHQ/w283-h400/Black%2BColorful%2BStickers%2BStraightforward%2BClassroom%2BRules%2BEducation%2BPortrait%2BPoster.jpg&quot; title=&quot;Types of Java Application&quot; width=&quot;283&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: 500; line-height: 30px; margin: 0px; padding: 10px 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: medium;&quot;&gt;Standalone Applications&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; letter-spacing: 0.2px; line-height: 27px; margin: 0px; padding: 8px 0px; text-align: justify; vertical-align: baseline; word-spacing: 0.5px;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;A program that doesn&#39;t require an operating system process and run by a separate computer process in the absence of an existing file process is known as a standalone application.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: georgia; letter-spacing: 0.2px;&quot;&gt;Swing&lt;/span&gt;&lt;span style=&quot;font-family: georgia; letter-spacing: 0.2px;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: georgia; letter-spacing: 0.2px;&quot;&gt;AWT (Abstract Window Toolkit)&amp;nbsp; are used to create stand-alone applications.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: 500; line-height: 30px; margin: 0px; padding: 10px 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: medium;&quot;&gt;Web Applications&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; letter-spacing: 0.2px; line-height: 27px; margin: 0px; padding: 8px 0px; text-align: justify; vertical-align: baseline; word-spacing: 0.5px;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Web application is a client-server software application that is used to develop rich online applications like online retail sales and information websites. Java web applications are run by the client. Servlets and jsp are used to develop web applications.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; letter-spacing: 0.2px; line-height: 27px; margin: 0px; padding: 8px 0px; text-align: justify; vertical-align: baseline; word-spacing: 0.5px;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: medium;&quot;&gt;Enterprises Applications&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; letter-spacing: 0.2px; line-height: 27px; margin: 0px; padding: 8px 0px; text-align: justify; vertical-align: baseline; word-spacing: 0.5px;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Enterprise applications is an application that used to develop web and enterprises applications. This type of application is mainly designed for corporates and includes topics like servlets, jsp, Web services, etc.&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: 500; line-height: 30px; margin: 0px; padding: 10px 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #351c75; font-family: georgia; font-size: medium;&quot;&gt;Mobile Application&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; letter-spacing: 0.2px; line-height: 27px; margin: 0px; padding: 8px 0px; text-align: justify; vertical-align: baseline; word-spacing: 0.5px;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;This is the micro edition which mainly uses for developing mobile applications.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;letter-spacing: 0.3px; text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: georgia;&quot;&gt;&lt;u&gt;Java Features&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;              &lt;p style=&quot;background-color: white; box-sizing: inherit; margin: 0px 0px 1.3rem;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Here are some important Java features:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Easy to use and learn programming language.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Once a code return, it will run on any computer platform.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Java is a platform-independent language.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia;&quot;&gt;Design for building and developing&amp;nbsp; object-oriented applications&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Multithreaded language with automatic memory management.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;It is created for the vast and divided environment of the Internet.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;  &lt;center&gt;    &lt;span style=&quot;font-family: georgia;&quot;&gt;&lt;script async=&quot;async&quot; data-cfasync=&quot;false&quot; src=&quot;//softenedimmortalityprocedure.com/f847cc95f388c6d344d3cef4a675070b/invoke.js&quot;&gt;&lt;/script&gt;&lt;/span&gt;&lt;div id=&quot;container-f847cc95f388c6d344d3cef4a675070b&quot;&gt;&lt;/div&gt;  &lt;/center&gt;     &lt;div style=&quot;box-sizing: inherit;&quot;&gt;&lt;h2 style=&quot;box-sizing: inherit; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-align: center; text-rendering: optimizelegibility;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; letter-spacing: 0.3px;&quot;&gt;&lt;u&gt;Parts of Java Programming Language&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.3px;&quot;&gt;A Java Programmer composes a program in an intelligible language called Source Code. Along these lines, the CPU or Chips never comprehend the source code written in any programming language.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: 400; text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span id=&quot;art-2&quot; style=&quot;box-sizing: border-box; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span id=&quot;art-2&quot; style=&quot;box-sizing: border-box; letter-spacing: 0.3px;&quot;&gt;&lt;span class=&quot;dv_bg_coloor&quot; data-id=&quot;2&quot; style=&quot;background-color: white; box-sizing: border-box; padding: 6px 0px;&quot;&gt;These PCs or chips use language to understand the code in a code which is called machine language or code.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px;&quot;&gt;&amp;nbsp;These machine codes run at the CPU level. Thusly, it would be diverse machine codes for different models of CPU.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;   &lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;Notwithstanding, you need to stress over the machine code, as writing computer programs is about the source code. The machine comprehends this source code and makes an interpretation of them into machine reasonable code, which is an executable code.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;Every one of these functionalities occurs inside the accompanying 3 Java stage segments:&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; letter-spacing: 0.3px;&quot;&gt;Java Development Kit (JDK)&lt;/span&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px;&quot;&gt;JDK is a product improvement climate utilized for making applets and Java applications.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span id=&quot;art-8&quot; style=&quot;box-sizing: border-box; letter-spacing: 0.3px;&quot;&gt;&lt;span class=&quot;dv_bg_coloor&quot; data-id=&quot;8&quot; style=&quot;box-sizing: border-box; padding: 6px 0px;&quot;&gt;The JDK stands for Java Development Kit.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;art-9&quot; style=&quot;box-sizing: border-box; letter-spacing: 0.3px;&quot;&gt;&lt;span class=&quot;dv_bg_coloor&quot; data-id=&quot;9&quot; style=&quot;box-sizing: border-box; padding: 6px 0px;&quot;&gt;Java engineers can use it on&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;macOS, Solaris,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; letter-spacing: 0.3px;&quot;&gt;&lt;span class=&quot;dv_bg_coloor&quot; data-id=&quot;9&quot; style=&quot;box-sizing: border-box; padding: 6px 0px;&quot;&gt;Windows, and Linux.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px;&quot;&gt;&amp;nbsp;JDK encourages them to code and runs Java programs. It is conceivable to introduce more than one JDK form on a similar PC.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; letter-spacing: 0.3px;&quot;&gt;Why use JDK?&lt;/span&gt;&lt;/h4&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;Here are the primary purposes behind utilizing JDK:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;JDK contains devices needed to compose Java projects and JRE to execute them.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;It incorporates a compiler, Java application launcher, Appletviewer, and so forth&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;Compiler changes over code written in Java into byte code.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;Java application launcher opens a JRE, loads the fundamental class, and executes its principle technique.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; letter-spacing: 0.3px;&quot;&gt;Java Virtual Machine (JVM):&lt;/span&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;Java Virtual Machine (JVM) is a motor that gives a runtime climate to drive the Java Code or applications. It changes over Java bytecode into machine language. JVM is a piece of the Java Run Environment (JRE). In other programming dialects, the compiler produces machine code for a specific framework. Nonetheless, the Java compiler produces code for a Virtual Machine known as Java Virtual Machine.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; letter-spacing: 0.3px;&quot;&gt;Why JVM?&lt;/span&gt;&lt;/h4&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;Here are the significant explanations behind utilizing JVM:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;JVM gives a stage autonomous method of executing Java source code.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;It has various libraries, apparatuses, and structures.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;When you run a Java program, you can run it on any stage and save heaps of time.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;JVM accompanies JIT (Just-in-Time) compiler that changes over Java source code into low-level machine language. Subsequently, it runs quicker than a standard application.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #351c75; letter-spacing: 0.3px;&quot;&gt;Java Runtime Environment (JRE)&lt;/span&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px;&quot;&gt;JRE is a piece of programming that is intended to run another programming.&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;art-24&quot; style=&quot;box-sizing: border-box; letter-spacing: 0.3px;&quot;&gt;&lt;span class=&quot;dv_bg_coloor&quot; data-id=&quot;24&quot; style=&quot;background-color: white; box-sizing: border-box; padding: 6px 0px;&quot;&gt;It&lt;/span&gt;&lt;span class=&quot;dv_bg_coloor&quot; data-id=&quot;24&quot; style=&quot;background-color: #fdeded; box-sizing: border-box; padding: 6px 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;dv_bg_coloor&quot; data-id=&quot;24&quot; style=&quot;background-color: white; box-sizing: border-box; padding: 6px 0px;&quot;&gt;contains the class libraries, loader class, and JVM.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;In basic terms, in the event that you need to run a Java program, you need JRE. On the off chance that you are not a developer, you don&#39;t have to introduce JDK, yet only JRE to run Java programs.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #ffa400; letter-spacing: 0.3px;&quot;&gt;Why use JRE?&lt;/span&gt;&lt;/h4&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;Here are the fundamental reasons for utilizing JRE:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px;&quot;&gt;JRE contains class libraries, JVM, and other supporting records. It does exclude any apparatus for Java advancement like a debugger, compiler, and so forth. JRE uses&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;classes like&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;swing, util, lang, at,&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.3px;&quot;&gt;math,&amp;nbsp; and runtime libraries.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-weight: 400; letter-spacing: 0.3px; text-align: start;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.3px;&quot;&gt;In the event that you need to run Java applets, JRE should be introduced in your framework.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/7167944279199001637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/01/java-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7167944279199001637'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/7167944279199001637'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/01/java-introduction.html' title='Java Introduction | infoStud blogs'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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://1.bp.blogspot.com/-d2pALfrsl6M/YDzJ7mEKFFI/AAAAAAAABc0/unbGvrKTkM85K_GKTip-TBUUWjkkia86ACLcBGAsYHQ/s72-w283-h400-c/Black%2BColorful%2BStickers%2BStraightforward%2BClassroom%2BRules%2BEducation%2BPortrait%2BPoster.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8829471421669026450.post-5394121821956525321</id><published>2021-02-19T01:58:00.004+05:30</published><updated>2021-02-19T01:58:57.598+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Write a Java program that keeps a number from the user and generates an integer between 1 and 7 and displays the name of the weekday</title><content type='html'>&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #4c1130; font-family: georgia; font-size: medium;&quot;&gt;Write a Java program that keeps a number from the user and generates an integer between 1 and 7 and displays the name of the weekday.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #4c1130; font-family: georgia; font-size: medium;&quot;&gt;Code&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Switch1&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;main&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;args&lt;/span&gt;[]){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;a&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayS&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;switch&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;a&lt;/span&gt;)&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Monday&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Tuesday&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Wednesday&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Thursday&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Friday&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Saturday&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;case&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Sunday&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;default:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;&amp;nbsp;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Invalid&amp;nbsp;Number&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;DayString&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #4c1130; font-family: georgia; font-size: medium;&quot;&gt;Output&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.87);&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Monday&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.87);&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.87); font-family: georgia; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.infostudblogs.in/feeds/5394121821956525321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.infostudblogs.in/2021/02/write-java-program-that-keeps-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/5394121821956525321'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8829471421669026450/posts/default/5394121821956525321'/><link rel='alternate' type='text/html' href='https://www.infostudblogs.in/2021/02/write-java-program-that-keeps-number.html' title='Write a Java program that keeps a number from the user and generates an integer between 1 and 7 and displays the name of the weekday'/><author><name>AAYUSH SHARMA</name><uri>http://www.blogger.com/profile/00714272228860447068</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>