<?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-5725160226146572329</id><updated>2026-10-11T15:32:29.399-07:00</updated><category term="UGC NET December 2012 Paper I"/><category term="core java"/><category term="coreJava"/><category term="UGC NET June  2013 Paper I"/><category term="AdvanceJava"/><category term="Java"/><category term="UGC NET June  2013 Paper III"/><category term="java language"/><category term="IBPS clerk"/><category term="ITI instructor 2013"/><category term="classification of computer"/><category term="collection"/><category term="ibps question"/><category term="question for IT&amp;ESM"/><category term="solution"/><category term="Swing"/><category term="java.util.Vector"/><category term="C programming"/><category term="ICT"/><category term="JList"/><category term="JVM performance"/><category term="Java 25 LTS"/><category term="Project Valhalla"/><category term="Spring Boot 2026"/><category term="interview question"/><category term="java books"/><category term="jvm"/><category term="macro in c"/><category term="multithreading"/><category term="programming language"/><category term="random number"/><category term="== vs equals()"/><category term="Ads not by this site"/><category term="Android development"/><category term="BSNL broadband"/><category term="Bihar board"/><category term="Constructor"/><category term="Disadvantage"/><category term="Driver for HCL Me Tablet."/><category term="FAQ"/><category term="Fair &amp; Lovely offer"/><category term="Flexible Constructor Bodies"/><category term="HCL Me V1 Tablet"/><category term="Hazard"/><category term="IPL"/><category term="In which of the following categories the enrolment of students in higher education in 2010-11 was beyond the percentage of seats reserved"/><category term="JDK 2026"/><category term="JDK 2026 updates"/><category term="Java 26 roadmap"/><category term="Java 26 updates"/><category term="Java programming"/><category term="Java programming news"/><category term="Java vs Python 2026"/><category term="KVS"/><category term="KVS Syllabus"/><category term="KVS preparation books"/><category term="Kendriya Vidyalaya Sngathan"/><category term="Kernel"/><category term="Method"/><category term="OpenJDK migration"/><category term="Operating System"/><category term="Oracle Java licensing"/><category term="Oracle vs OpenJDK"/><category term="Prevention"/><category term="Results"/><category term="SL2_141 ADSL modem"/><category term="Software development trends"/><category term="String"/><category term="TreeSet"/><category term="Virtual Threads"/><category term="WiFi configuration"/><category term="abstraction"/><category term="abstraction vs encapsulation"/><category term="achievement"/><category term="article"/><category term="beaware of such emails"/><category term="biodata"/><category term="c basics"/><category term="check even number without using modulus operator"/><category term="class 10"/><category term="configure jsp in web.xml"/><category term="cv"/><category term="difference between JDK and JRE"/><category term="editable html page"/><category term="encapsulation"/><category term="equals()"/><category term="executable"/><category term="factorial"/><category term="fresher java job"/><category term="garbage collector"/><category term="inheritance"/><category term="instantiation"/><category term="java joke"/><category term="javamail API"/><category term="jdk"/><category term="jdk jre jvm jit"/><category term="jio"/><category term="jiofi"/><category term="jit"/><category term="jre"/><category term="jsp"/><category term="learn Java"/><category term="mail using java"/><category term="memory management"/><category term="multiprocessing"/><category term="multitasking"/><category term="new"/><category term="news"/><category term="odd or even"/><category term="programming"/><category term="removal of Ads"/><category term="resume"/><category term="router"/><category term="scam emails"/><category term="scholarship"/><category term="sharing internet"/><category term="structured programming vs Object Oriented Programming"/><category term="tools and gadgets"/><category term="uses of computer"/><category term="wamfeos"/><category term="why to learn java"/><title type='text'>java discussion</title><subtitle type='html'>javamitra, Samastipur</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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>183</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5725160226146572329.post-4707842434879849476</id><published>2026-02-13T01:49:02.350-08:00</published><updated>2026-02-13T01:51:40.997-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flexible Constructor Bodies"/><category scheme="http://www.blogger.com/atom/ns#" term="Java 25 LTS"/><category scheme="http://www.blogger.com/atom/ns#" term="Java 26 updates"/><category scheme="http://www.blogger.com/atom/ns#" term="Java vs Python 2026"/><category scheme="http://www.blogger.com/atom/ns#" term="JDK 2026"/><category scheme="http://www.blogger.com/atom/ns#" term="JVM performance"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenJDK migration"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Java licensing"/><category scheme="http://www.blogger.com/atom/ns#" term="Project Valhalla"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring Boot 2026"/><title type='text'>Flexible Constructor Bodies&quot; (the new Java 25 feature)</title><content type='html'>&lt;div&gt;&lt;b&gt;​The Problem (Pre-Java 22/25)&lt;/b&gt;: Traditionally, super() or this() had to be the very first line of a constructor. You couldn&#39;t validate data or perform logic before calling the parent class.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;​The Solution&lt;/b&gt;: You can now execute statements (like if checks or data formatting) before calling the parent constructor.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;​The Benefit&lt;/b&gt;: This prevents &quot;half-initialized&quot; objects. You can now throw an exception before the parent class even allocates memory, leading to cleaner, safer code.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;public class UserAccount extends BaseAccount {&lt;div&gt;&amp;nbsp; &amp;nbsp; public UserAccount(String email) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // NEW in Java 22/25: Logic&amp;nbsp;&lt;/div&gt;&lt;div&gt;BEFORE super()&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!email.contains(&quot;@&quot;)) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throw new IllegalArgumentException(&quot;Invalid email format!&quot;);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(email.toLowerCase()); // Now we pass cleaned data to the parent&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Account created for: &quot; + email);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/4707842434879849476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2026/02/flexible-constructor-bodies-new-java-25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4707842434879849476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4707842434879849476'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2026/02/flexible-constructor-bodies-new-java-25.html' title='Flexible Constructor Bodies&quot; (the new Java 25 feature)'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-8741126636626254757</id><published>2026-02-13T01:38:47.722-08:00</published><updated>2026-02-13T01:38:49.312-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java 25 LTS"/><category scheme="http://www.blogger.com/atom/ns#" term="Java 26 roadmap"/><category scheme="http://www.blogger.com/atom/ns#" term="Java programming news"/><category scheme="http://www.blogger.com/atom/ns#" term="JDK 2026 updates"/><category scheme="http://www.blogger.com/atom/ns#" term="JVM performance"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle vs OpenJDK"/><category scheme="http://www.blogger.com/atom/ns#" term="Project Valhalla"/><category scheme="http://www.blogger.com/atom/ns#" term="Software development trends"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring Boot 2026"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtual Threads"/><title type='text'>Java in 2026: Why the Ecosystem is Shifting Faster Than Ever</title><content type='html'>&lt;div&gt;1. The Power of Java 25 (LTS)&lt;/div&gt;&lt;div&gt;If your readers haven&#39;t upgraded yet, they are missing out on the most stable and feature-rich version of Java in years. Java 25 is a Long-Term Support (LTS) release, meaning it’s the new gold standard for enterprise.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Flexible Constructor Bodies: You can now perform logic (like validation) before calling super() in a constructor. This fixes a decade-old developer headache.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Compact Object Headers: A &quot;behind-the-scenes&quot; update that reduces the memory footprint of every Java object, leading to faster performance and lower cloud costs.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Scoped Values: A modern, more efficient replacement for ThreadLocal, designed specifically to work with Virtual Threads.&lt;/div&gt;&lt;div&gt;2. The Rise of &quot;AI-Infused&quot; Java&lt;/div&gt;&lt;div&gt;According to the 2026 State of Java reports, Java is no longer just for &quot;boring&quot; backend systems:&lt;/div&gt;&lt;div&gt;&amp;nbsp;* 62% of developers are now using Java specifically for AI development.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Frameworks like Deep Java Library (DJL) and JavaML have exploded in popularity, allowing developers to run LLMs and machine learning models directly on the JVM without needing Python.&lt;/div&gt;&lt;div&gt;3. The &quot;Great Migration&quot; to OpenJDK&lt;/div&gt;&lt;div&gt;One of the biggest news stories this month (February 2026) is the mass exodus from Oracle JDK.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Pricing Pressure: Due to Oracle’s employee-based pricing model, nearly 81% of developers are planning to migrate to OpenJDK distributions (like Amazon Corretto, Azul Zulu, or Eclipse Temurin).&lt;/div&gt;&lt;div&gt;&amp;nbsp;* The Trend: If you’re writing a blog, advise your readers to check their license compliance—it’s the #1 topic in Java offices right now.&lt;/div&gt;&lt;div&gt;4. A Sneak Peek at Java 26&lt;/div&gt;&lt;div&gt;While still in early development, Java 26 is focusing on &quot;Project Valhalla&quot; features, which aim to make Java&#39;s memory handling as efficient as C++, and Stream Gatherers, which make complex data processing much simpler to write.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/8741126636626254757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2026/02/java-in-2026-why-ecosystem-is-shifting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/8741126636626254757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/8741126636626254757'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2026/02/java-in-2026-why-ecosystem-is-shifting.html' title='Java in 2026: Why the Ecosystem is Shifting Faster Than Ever'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-6910562312695979261</id><published>2025-01-10T08:12:00.001-08:00</published><updated>2025-01-10T08:12:16.777-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programming"/><category scheme="http://www.blogger.com/atom/ns#" term="learn Java"/><category scheme="http://www.blogger.com/atom/ns#" term="why to learn java"/><title type='text'>Java: A Cornerstone in the Programming World</title><content type='html'>&lt;div&gt;Java, a robust, platform-independent programming language, has been a cornerstone of the software industry for decades. Its versatility and reliability have made it an indispensable tool for developers across various domains.&lt;/div&gt;&lt;div&gt;Why Learn Java?&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Object-Oriented Programming (OOP): Java is a pure object-oriented language, emphasizing concepts like classes, objects, inheritance, polymorphism, and abstraction. These principles promote code reusability, modularity, and maintainability, making it easier to build complex systems.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Platform Independence: Java&#39;s &quot;Write Once, Run Anywhere&quot; (WORA) principle allows developers to compile their code into bytecode, which can then be executed on any platform with a Java Virtual Machine (JVM). This portability is crucial in today&#39;s diverse computing landscape.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Large and Active Community: Java boasts a massive and active community of developers. This translates to:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;* Extensive libraries: A vast collection of pre-built libraries (like Java Standard Edition, Java Enterprise Edition) provides ready-to-use solutions for common programming tasks, saving developers time and effort.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;* Strong support: Easy access to tutorials, forums, and online resources makes learning and problem-solving much smoother.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;* Vibrant job market: High demand for Java skills across various industries ensures ample career opportunities.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Versatility: Java finds applications in:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;* Web development: Building robust and scalable web applications using frameworks like Spring and Hibernate.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;* Android development: Creating mobile applications for the world&#39;s most popular mobile operating system.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;* Enterprise applications: Developing complex business applications for various sectors, including finance, healthcare, and e-commerce.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;* Big Data: Processing and analyzing massive datasets using frameworks like Hadoop and Spark.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;* Game development: Creating engaging and interactive games.&lt;/div&gt;&lt;div&gt;Getting Started with Java&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Install the Java Development Kit (JDK): This provides the necessary tools for compiling and running Java programs.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Choose an Integrated Development Environment (IDE): Popular choices include Eclipse, IntelliJ IDEA, and NetBeans, which offer features like code completion, debugging, and version control.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Learn the fundamentals: Start with basic syntax, data types, control flow, object-oriented concepts, and exception handling.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Practice with projects: Work on small projects to gain practical experience and apply your knowledge.&lt;/div&gt;&lt;div&gt;&amp;nbsp;* Explore advanced topics: Dive deeper into Java libraries, frameworks, and advanced concepts like multithreading, concurrency, and design patterns.&lt;/div&gt;&lt;div&gt;Conclusion&lt;/div&gt;&lt;div&gt;Learning Java is a valuable investment for any aspiring programmer. Its robust features, strong community support, and wide range of applications make it a highly sought-after skill in the job market. By mastering Java, you&#39;ll gain a solid foundation in programming principles and open doors to exciting career opportunities in various domains.&lt;/div&gt;&lt;div&gt;Disclaimer: This blog post is for informational purposes only and does not constitute professional advice.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/6910562312695979261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2025/01/java-cornerstone-in-programming-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/6910562312695979261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/6910562312695979261'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2025/01/java-cornerstone-in-programming-world.html' title='Java: A Cornerstone in the Programming World'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-5271403026964010125</id><published>2024-06-19T16:12:00.001-07:00</published><updated>2024-06-19T16:12:18.815-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bihar board"/><category scheme="http://www.blogger.com/atom/ns#" term="class 10"/><category scheme="http://www.blogger.com/atom/ns#" term="ICT"/><title type='text'>Introduction about web servers and web clients for class 10 in hindi</title><content type='html'>&lt;div&gt;### वेब सर्वर और वेब क्लाइंट का विस्तृत परिचय&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;#### वेब सर्वर क्या है?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;**परिभाषा:**&lt;/div&gt;&lt;div&gt;वेब सर्वर एक कंप्यूटर सिस्टम या सॉफ्टवेयर है जो वेब पेजों को संग्रहीत करता है और इंटरनेट के माध्यम से वेब क्लाइंट को वितरित करता है। यह HTTP (हाइपरटेक्स्ट ट्रांसफर प्रोटोकॉल) का उपयोग करके वेब ब्राउज़र से आने वाले अनुरोधों को प्रबंधित और संसाधित करता है।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;**मुख्य कार्य:**&lt;/div&gt;&lt;div&gt;1. **डेटा स्टोरेज और मैनेजमेंट:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब सर्वर पर वेबसाइट की फाइलें संग्रहीत होती हैं, जैसे HTML, CSS, JavaScript, इमेज और वीडियो।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- यह फ़ाइलों का प्रबंधन करता है और उन्हें व्यवस्थित रूप से संग्रहीत करता है।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. **HTTP अनुरोधों का प्रबंधन:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- जब कोई उपयोगकर्ता अपने ब्राउज़र में URL दर्ज करता है, तो वेब सर्वर HTTP अनुरोध प्राप्त करता है।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब सर्वर अनुरोध को संसाधित करता है और संबंधित वेब पेज या संसाधन वापस भेजता है।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. **सुरक्षा और प्रमाणिकता:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब सर्वर विभिन्न सुरक्षा उपायों का पालन करता है जैसे SSL/TLS एन्क्रिप्शन, फायरवॉल, और प्रमाणीकरण।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- यह सुनिश्चित करता है कि केवल अधिकृत उपयोगकर्ताओं को ही संवेदनशील डेटा तक पहुंच हो।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4. **लोड बैलेंसिंग और स्केलेबिलिटी:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब सर्वर कई अनुरोधों को संभालने के लिए लोड बैलेंसिंग तकनीकों का उपयोग करता है।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- यह सुनिश्चित करता है कि सर्वर का प्रदर्शन उच्च मात्रा में ट्रैफिक के दौरान भी स्थिर रहे।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;5. **डेटा कैशिंग:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब सर्वर अक्सर अनुरोधित डेटा को कैश करता है ताकि बार-बार अनुरोध किए गए संसाधनों की डिलीवरी तेज हो सके।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;**उदाहरण:**&lt;/div&gt;&lt;div&gt;- Apache HTTP Server&lt;/div&gt;&lt;div&gt;- Nginx&lt;/div&gt;&lt;div&gt;- Microsoft Internet Information Services (IIS)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;#### वेब क्लाइंट क्या है?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;**परिभाषा:**&lt;/div&gt;&lt;div&gt;वेब क्लाइंट एक सॉफ्टवेयर या प्रोग्राम है जो उपयोगकर्ता को वेब सर्वर से जानकारी प्राप्त करने और ब्राउज़ करने में सक्षम बनाता है। आमतौर पर, वेब ब्राउज़र (जैसे Google Chrome, Mozilla Firefox, Microsoft Edge) वेब क्लाइंट के रूप में कार्य करते हैं।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;**मुख्य कार्य:**&lt;/div&gt;&lt;div&gt;1. **HTTP अनुरोध भेजना:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- उपयोगकर्ता द्वारा वेब पेज का URL दर्ज करने पर वेब क्लाइंट HTTP अनुरोध वेब सर्वर को भेजता है।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- यह अनुरोध में अतिरिक्त डेटा जैसे कुकीज़, हेडर और फॉर्म डेटा भी शामिल हो सकता है।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. **डेटा प्राप्त करना:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब सर्वर से प्राप्त डेटा (HTML, CSS, JavaScript) को वेब क्लाइंट प्राप्त करता है।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- इसमें वेब पेज का टेक्स्ट, इमेज, वीडियो और अन्य मल्टीमीडिया सामग्री शामिल होती है।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. **डेटा को रेंडर करना:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब क्लाइंट प्राप्त डेटा को वेब पेज के रूप में प्रदर्शित करता है।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- यह HTML को रेंडर करता है, CSS के साथ स्टाइल करता है और JavaScript को निष्पादित करता है।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4. **सुरक्षा:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब क्लाइंट सुरक्षित कनेक्शन के लिए SSL/TLS एन्क्रिप्शन का समर्थन करता है।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- यह उपयोगकर्ताओं को फिशिंग और अन्य ऑनलाइन खतरों से बचाने के लिए सुरक्षा उपाय प्रदान करता है।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;5. **यूजर इंटरफेस:**&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- वेब क्लाइंट एक उपयोगकर्ता-अनुकूल इंटरफेस प्रदान करता है जिससे उपयोगकर्ता आसानी से नेविगेट और इंटरैक्ट कर सकें।&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- इसमें बुकमार्क, हिस्ट्री, टैब मैनेजमेंट और अन्य फीचर्स शामिल होते हैं।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;**उदाहरण:**&lt;/div&gt;&lt;div&gt;- Google Chrome&lt;/div&gt;&lt;div&gt;- Mozilla Firefox&lt;/div&gt;&lt;div&gt;- Microsoft Edge&lt;/div&gt;&lt;div&gt;- Safari&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;#### निष्कर्ष&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;वेब सर्वर और वेब क्लाइंट इंटरनेट के माध्यम से जानकारी के आदान-प्रदान में महत्वपूर्ण भूमिका निभाते हैं। वेब सर्वर वेब पेजों को संग्रहीत और वितरित करता है, जबकि वेब क्लाइंट उपयोगकर्ता के लिए उन पेजों को अनुरोध और प्रदर्शित करता है। इन दोनों के बिना, इंटरनेट पर जानकारी का आदान-प्रदान संभव नहीं होता।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;यह विस्तृत परिचय कक्षा 10 के छात्रों को वेब सर्वर और वेब क्लाइंट की गहरी समझ प्रदान करेगा और उन्हें इंटरनेट के बुनियादी कार्यों को समझने में मदद करेगा।&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/5271403026964010125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/introduction-about-web-servers-and-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/5271403026964010125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/5271403026964010125'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/introduction-about-web-servers-and-web.html' title='Introduction about web servers and web clients for class 10 in hindi'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-564094679612673713</id><published>2024-06-08T07:38:00.001-07:00</published><updated>2024-06-08T07:38:39.965-07:00</updated><title type='text'>Write a Java program to implement binary search on a sorted array</title><content type='html'>&lt;p&gt;&amp;nbsp;import java.util.Scanner;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;public class BinarySearch {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner scanner = new Scanner(System.in);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(&quot;Enter the number of elements in the array: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int n = scanner.nextInt();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int[] arr = new int[n];&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Enter the sorted elements:&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; n; i++) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arr[i] = scanner.nextInt();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(&quot;Enter the element to search: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int key = scanner.nextInt();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanner.close();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int result = binarySearch(arr, key);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result == -1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Element not present in the array.&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Element found at index: &quot; + result);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static int binarySearch(int[] arr, int key) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int left = 0, right = arr.length - 1;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (left &amp;lt;= right) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int mid = left + (right - left) / 2;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (arr[mid] == key)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return mid;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (arr[mid] &amp;lt; key)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; left = mid + 1;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; right = mid - 1;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/564094679612673713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-implement-binary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/564094679612673713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/564094679612673713'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-implement-binary.html' title='Write a Java program to implement binary search on a sorted array'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-8193931138974420475</id><published>2024-06-08T07:38:00.000-07:00</published><updated>2024-06-08T07:38:14.688-07:00</updated><title type='text'>Write a Java program to implement a simple singly linked list</title><content type='html'>&lt;p&gt;&amp;nbsp;public class LinkedList {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Node head;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; static class Node {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int data;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Node next;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Node(int d) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data = d;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; next = null;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public void printList() {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Node n = head;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (n != null) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(n.data + &quot; &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; n = n.next;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LinkedList list = new LinkedList();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list.head = new Node(1);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Node second = new Node(2);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Node third = new Node(3);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list.head.next = second;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; second.next = third;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list.printList();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/8193931138974420475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-implement-simple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/8193931138974420475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/8193931138974420475'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-implement-simple.html' title='Write a Java program to implement a simple singly linked list'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-4345814367351193382</id><published>2024-06-08T07:37:00.001-07:00</published><updated>2024-06-08T07:37:50.010-07:00</updated><title type='text'>Write a Java program to find the largest element in an array</title><content type='html'>&lt;p&gt;&amp;nbsp;import java.util.Scanner;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;public class LargestElement {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner scanner = new Scanner(System.in);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(&quot;Enter the number of elements in the array: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int n = scanner.nextInt();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int[] arr = new int[n];&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Enter the elements:&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; n; i++) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arr[i] = scanner.nextInt();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanner.close();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int max = arr[0];&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 1; i &amp;lt; n; i++) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (arr[i] &amp;gt; max) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; max = arr[i];&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Largest element: &quot; + max);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/4345814367351193382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-find-largest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4345814367351193382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4345814367351193382'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-find-largest.html' title='Write a Java program to find the largest element in an array'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-1757837557890553787</id><published>2024-06-08T07:37:00.000-07:00</published><updated>2024-06-08T07:37:26.038-07:00</updated><title type='text'>Write a Java program to check if a string is a palindrome.</title><content type='html'>&lt;p&gt;&amp;nbsp;import java.util.Scanner;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;public class Palindrome {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner scanner = new Scanner(System.in);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(&quot;Enter a string: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String str = scanner.nextLine();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanner.close();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boolean isPalindrome = isPalindrome(str);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Is Palindrome: &quot; + isPalindrome);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static boolean isPalindrome(String str) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i = 0, j = str.length() - 1;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (i &amp;lt; j) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (str.charAt(i) != str.charAt(j))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j--;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/1757837557890553787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-check-if-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/1757837557890553787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/1757837557890553787'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-check-if-string.html' title='Write a Java program to check if a string is a palindrome.'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-3087372022690054570</id><published>2024-06-08T07:36:00.001-07:00</published><updated>2024-06-08T07:46:44.350-07:00</updated><title type='text'>Write a java program to reverse a String.</title><content type='html'>&lt;p&gt;The provided Java program reverses a string entered by the user. Let&#39;s break down the logic step by step:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Steps of the Program&lt;/p&gt;&lt;p&gt;1. Importing the Scanner Class:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;```java&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;import java.util.Scanner;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;```&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This line imports the `Scanner` class, which is used to read input from the console.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2. Class Definition:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;```java&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;public class ReverseString {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;```&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This line defines a public class named `ReverseString`.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3. Main Method:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;```java&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;public static void main(String[] args) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;```&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This is the entry point of the program. The `main` method is where the program execution begins.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;4. Creating a Scanner Object:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Scanner scanner = new Scanner(System.in);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This line creates a `Scanner` object to read input from the standard input stream (usually the keyboard).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;5. Prompting the User for Input:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;System.out.print(&quot;Enter a string: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This line prints a prompt asking the user to enter a string.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;6. Reading the User Input:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;String str = scanner.nextLine();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This line reads a full line of input from the user and stores it in the variable `str`.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;7. Closing the Scanner:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;scanner.close();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This line closes the `Scanner` object to prevent resource leaks.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;8. Reversing the String:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;String reversedStr = new StringBuilder(str).reverse().toString();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This line performs the actual string reversal:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;- `new StringBuilder(str)`: Creates a new `StringBuilder` object initialized with the string `str`.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;- `.reverse()`: Calls the `reverse` method on the `StringBuilder` object, which reverses the sequence of characters.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;- `.toString()`: Converts the reversed `StringBuilder` object back to a `String`.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;9. Printing the Reversed String:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;System.out.println(&quot;Reversed String: &quot; + reversedStr);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;This line prints the reversed string to the console.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Logic Breakdown&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. &lt;b&gt;Input Handling&lt;/b&gt;: The program uses the `Scanner` class to read a string input from the user.&lt;/p&gt;&lt;p&gt;2. &lt;b&gt;String Reversal&lt;/b&gt;:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;- &lt;b&gt;StringBuilder&lt;/b&gt;: The `StringBuilder` class is used because it has a built-in method `reverse()` that efficiently reverses the sequence of characters in the `StringBuilder` object.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;- &lt;b&gt;Conversion&lt;/b&gt;: The reversed sequence is converted back to a string using `toString()`.&lt;/p&gt;&lt;p&gt;3. &lt;b&gt;Output&lt;/b&gt;: The reversed string is printed to the console.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Why Use StringBuilder?&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;- &lt;b&gt;Efficiency&lt;/b&gt;: `StringBuilder` is mutable, meaning it can be modified without creating a new object for each modification. This makes it more efficient for operations like reversing a string, which involves multiple character manipulations.&lt;/p&gt;&lt;p&gt;- &lt;b&gt;Convenience&lt;/b&gt;: The `StringBuilder` class provides a `reverse()` method that simplifies the reversal process compared to manually iterating through the string&#39;s characters and constructing the reversed string.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;By utilizing `StringBuilder`, the code is both concise and efficient, making it a good choice for this task.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Complete java code:&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;import java.util.Scanner;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;public class ReverseString {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner scanner = new Scanner(System.in);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(&quot;Enter a string: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String str = scanner.nextLine();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanner.close();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String reversedStr = new StringBuilder(str).reverse().toString();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Reversed String: &quot; + reversedStr);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/3087372022690054570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-reverse-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/3087372022690054570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/3087372022690054570'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-reverse-string.html' title='Write a java program to reverse a String.'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-5853274738857734912</id><published>2024-06-08T07:36:00.000-07:00</published><updated>2024-06-08T07:40:14.737-07:00</updated><title type='text'>Write a Java program to generate the first n Fibonacci numbers</title><content type='html'>&lt;p&gt;The Fibonacci series is a sequence of numbers in which each number (after the first two) is the sum of the two preceding ones. The sequence typically starts with 0 and 1, although some variations start with 1 and 1. The mathematical definition of the Fibonacci sequence is:&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F(n) = F(n-1) + F(n-2)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;katex-html&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;−&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;−&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;With the initial conditions:&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F(0) = 0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;katex-html&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F(1) = 1&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;katex-html&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;This means that:&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F(2) = F(1) + F(0) = 1 + 0 = 1&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;katex-html&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F(3) = F(2) + F(1) = 1 + 1 = 2&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;katex-html&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;4&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F(4) = F(3) + F(2) = 2 + 1 = 3&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;katex-html&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;5&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;4&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;F&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;5&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;F(5) = F(4) + F(3) = 3 + 2 = 5&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;katex-html&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mbin&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mrel&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mspace&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo&gt;…&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;\ldots&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;katex-html&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot;&gt;&lt;/span&gt;&lt;span class=&quot;minner&quot;&gt;…&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;So, the beginning of the Fibonacci series looks like this:&lt;/p&gt;&lt;p&gt;0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...&lt;/p&gt;&lt;p&gt;The Fibonacci sequence has many interesting properties and appears in various areas of mathematics and nature, such as in the branching of trees, the arrangement of leaves on a stem, the fruit sprouts of a pineapple, the flowering of an artichoke, and the arrangement of a pine cone.&lt;/p&gt;&lt;p&gt;java program sample code:&amp;nbsp;&lt;/p&gt;&lt;p&gt;import java.util.Scanner;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;public class Fibonacci {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner scanner = new Scanner(System.in);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(&quot;Enter the number of terms: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int n = scanner.nextInt();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanner.close();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int a = 0, b = 1, c;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(&quot;Fibonacci Series: &quot; + a + &quot; &quot; + b);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 2; i &amp;lt; n; i++) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c = a + b;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.print(&quot; &quot; + c);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a = b;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b = c;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/5853274738857734912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-generate-first-n.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/5853274738857734912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/5853274738857734912'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/06/write-java-program-to-generate-first-n.html' title='Write a Java program to generate the first n Fibonacci numbers'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-7588521279177779884</id><published>2024-05-29T18:22:00.000-07:00</published><updated>2024-05-29T18:23:01.013-07:00</updated><title type='text'>Java Journeys: Unraveling the Past</title><content type='html'>&lt;div&gt;&lt;b&gt;Java&lt;/b&gt; is a high-level, class-based, object-oriented programming language that was designed to have as few implementation dependencies as possible. Here&#39;s a brief overview of its history:&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEilA7Kr6_JJn5OQdu1rX82CvBxhg9KboAbYpnkPiFHk1e7evXvaaJKCcMkYxA_OgFMdxfTCQqU-hAPd9Z7MKyrdoJtJleabAy2bWNtW273yKqW3_43sSbFVIGNg2qZW9ilzFd-55soOABWC_Td2MAb4fvKT42tO15ccAW_xca0B5OAZ4jwGGESMQh6oORQ&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
    &lt;img border=&quot;0&quot;   src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEilA7Kr6_JJn5OQdu1rX82CvBxhg9KboAbYpnkPiFHk1e7evXvaaJKCcMkYxA_OgFMdxfTCQqU-hAPd9Z7MKyrdoJtJleabAy2bWNtW273yKqW3_43sSbFVIGNg2qZW9ilzFd-55soOABWC_Td2MAb4fvKT42tO15ccAW_xca0B5OAZ4jwGGESMQh6oORQ&quot; width=&quot;400&quot;&gt;
  &lt;/a&gt;
&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1. &lt;b&gt;Origins and Development&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Java was first developed in the 1990s by &lt;b&gt;James Gosling&amp;nbsp;&lt;/b&gt;and his team at &lt;b&gt;Sun Microsystems&lt;/b&gt;. Initially, it was called &lt;b&gt;Oak&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- The language was designed for interactive television, but it turned out to be too advanced for the digital cable television industry at the time.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Work on Java began in &lt;b&gt;1991&lt;/b&gt;, and its syntax borrowed elements from &lt;b&gt;C&lt;/b&gt;&amp;nbsp;and &lt;b&gt;C++&amp;nbsp;&lt;/b&gt;to make it more appealing to existing programmers.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Eventually, the team shifted their focus to a new niche: the &lt;b&gt;World Wide Web.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. &lt;b&gt;Key Milestones&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- &lt;b&gt;May 1995&lt;/b&gt;: Java was officially released as a core component of Sun&#39;s Java platform.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- &lt;b&gt;1997&lt;/b&gt;: The &lt;b&gt;Java Community Process&lt;/b&gt;&amp;nbsp;(JCP) was established to guide the evolution of the language.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- &lt;b&gt;2007&lt;/b&gt;: Most of Sun&#39;s Java technologies were relicensed under the &lt;b&gt;GPL-2.0-only license&lt;/b&gt;.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- &lt;b&gt;2010&lt;/b&gt;: &lt;b&gt;Oracle&amp;nbsp;&lt;/b&gt;acquired Sun Microsystems, becoming the new owner of Java.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. &lt;b&gt;Features and Popularity&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Java&#39;s key features include &lt;b&gt;platform&lt;/b&gt; &lt;b&gt;independence&lt;/b&gt;, &lt;b&gt;object&lt;/b&gt; &lt;b&gt;orientation&lt;/b&gt;, and &lt;b&gt;automatic garbage collection&lt;/b&gt;.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- It allows programmers to write code once and run it anywhere (WORA), thanks to its bytecode compilation and Java Virtual Machine (JVM).&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Java gained popularity rapidly after its release and has remained a widely used programming language.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- As of &lt;b&gt;2022&lt;/b&gt;, it was the &lt;b&gt;third most popular&lt;/b&gt;&amp;nbsp;language on GitHub¹.&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://youtu.be/iURpJe7fwKk&quot;&gt;https://youtu.be/iURpJe7fwKk&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In summary, Java has a rich history and continues to be relevant in the software development world. If you have any more questions or need further details, feel free to ask! 😊&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/7588521279177779884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/java-journeys-unraveling-past.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/7588521279177779884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/7588521279177779884'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/java-journeys-unraveling-past.html' title='Java Journeys: Unraveling the Past'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEilA7Kr6_JJn5OQdu1rX82CvBxhg9KboAbYpnkPiFHk1e7evXvaaJKCcMkYxA_OgFMdxfTCQqU-hAPd9Z7MKyrdoJtJleabAy2bWNtW273yKqW3_43sSbFVIGNg2qZW9ilzFd-55soOABWC_Td2MAb4fvKT42tO15ccAW_xca0B5OAZ4jwGGESMQh6oORQ=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5725160226146572329.post-6876197781818722111</id><published>2024-05-17T19:24:00.001-07:00</published><updated>2024-05-17T19:24:40.276-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ICT"/><category scheme="http://www.blogger.com/atom/ns#" term="uses of computer"/><title type='text'>Uses of different types of Computer </title><content type='html'>कंप्यूटरों के उपयोग और कार्यों के आधार पर विभिन्न प्रकारों का विवरण इस प्रकार है:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;सुपर कंप्यूटर (Supercomputer):&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;उपयोग: वैज्ञानिक अनुसंधान, मौसम पूर्वानुमान, परमाणु ऊर्जा अनुसंधान, जटिल सिमुलेशन।&lt;/div&gt;&lt;div&gt;कार्य: ये सबसे तेज और शक्तिशाली कंप्यूटर होते हैं जो बड़ी मात्रा में डेटा को तेज़ी से प्रोसेस करते हैं।&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;strong&gt;मेनफ्रेम कंप्यूटर (Mainframe Computer):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; बड़ी कंपनियाँ, बैंक, सरकारी संस्थाएँ।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; भारी मात्रा में डेटा प्रोसेसिंग, ट्रांजेक्शन प्रोसेसिंग, बड़े डेटाबेस का प्रबंधन।&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;p&gt;&lt;strong&gt;मिनीकंप्यूटर (Minicomputer):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; छोटे और मध्यम आकार के व्यवसाय।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; मध्यम स्तर की प्रोसेसिंग, डेटा प्रबंधन, विशिष्ट कार्यों के लिए उपयोग।&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;p&gt;&lt;strong&gt;माइक्रोकंप्यूटर (Microcomputer):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; व्यक्तिगत और व्यावसायिक उपयोग।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; सामान्य कार्यालय कार्य, इंटरनेट ब्राउज़िंग, मनोरंजन, शिक्षा।&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;div&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;वर्कस्टेशन (Workstation):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; ग्राफिक्स डिज़ाइन, एनिमेशन, वैज्ञानिक अनुसंधान।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; उच्च प्रदर्शन वाले कंप्यूटर जो ग्राफिक्स और डेटा प्रोसेसिंग के लिए उपयोग किए जाते हैं।&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;सर्वर (Server):&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; नेटवर्क में डेटा और संसाधनों को प्रबंधित करना।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; वेब होस्टिंग, डेटाबेस प्रबंधन, एप्लीकेशन होस्टिंग।&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;मोबाइल कंप्यूटर (Mobile Computer):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; पोर्टेबल कंप्यूटिंग, व्यक्तिगत और व्यावसायिक कार्य।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; संचार, इंटरनेट एक्सेस, मल्टीमीडिया, कार्य प्रबंधन।&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;एनालॉग कंप्यूटर (Analog Computer):&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; वैज्ञानिक और इंजीनियरिंग अनुप्रयोग।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; निरंतर डेटा प्रोसेसिंग, भौतिक मात्राओं का मापन और विश्लेषण।&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;डिजिटल कंप्यूटर (Digital Computer):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; सामान्य व्यापारिक, वैज्ञानिक, और व्यक्तिगत कार्य।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; डिस्क्रीट डेटा प्रोसेसिंग, गणना, डेटा भंडारण।&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;हाइब्रिड कंप्यूटर (Hybrid Computer):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;उपयोग:&lt;/strong&gt; अस्पताल, वैज्ञानिक अनुसंधान।&lt;/li&gt;&lt;li&gt;&lt;strong&gt;कार्य:&lt;/strong&gt; एनालॉग और डिजिटल दोनों प्रकार के डेटा का प्रोसेसिंग करना।&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/6876197781818722111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/uses-of-different-types-of-computer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/6876197781818722111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/6876197781818722111'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/uses-of-different-types-of-computer.html' title='Uses of different types of Computer '/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-6274437717759175356</id><published>2024-05-07T21:26:00.002-07:00</published><updated>2024-05-07T21:26:26.845-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="classification of computer"/><title type='text'>Classification of computer based on size</title><content type='html'>&lt;div&gt;Classifying computers based on size is a foundational approach that helps understand their capabilities and applications.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;---&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Computers come in all shapes and sizes, each tailored to specific tasks and environments. One of the earliest and most fundamental ways to classify them is by size. This classification scheme not only reflects the physical dimensions of the machines but also hints at their computational power, scalability, and typical use cases.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1. &lt;b&gt;Supercomputers&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;At the top of the size spectrum are supercomputers. These behemoths are massive in both physical size and computational power. Designed to tackle the most complex problems requiring immense processing capabilities, supercomputers are often used in scientific research, weather forecasting, and simulations of nuclear reactions or galaxy formations.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. &lt;b&gt;Mainframe Computers&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;Mainframes, while not as powerful as supercomputers, are still substantial machines. They excel at handling large volumes of data and supporting multiple users simultaneously. Commonly found in large organizations like banks, government agencies, and corporations, mainframes power critical operations such as transaction processing, database management, and enterprise resource planning (ERP) systems.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. &lt;b&gt;Minicomputers&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;Minicomputers, as the name suggests, are smaller in size compared to mainframes but still pack a punch in terms of computing power. They serve as intermediaries between mainframes and microcomputers, offering sufficient processing capabilities to support departmental or small-scale computing needs. Minicomputers were popular in the 1970s and 1980s before being largely replaced by microcomputers.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4. &lt;b&gt;Microcomputers&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;Also known as personal computers (PCs), microcomputers represent the democratization of computing. These compact machines are designed for individual use and come in various form factors, including desktops, laptops, and tablets. Microcomputers are ubiquitous in homes, offices, schools, and practically everywhere else, empowering users with capabilities ranging from word processing and internet browsing to gaming and multimedia production.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;5. &lt;b&gt;Embedded Computers&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;At the other end of the size spectrum are embedded computers. These specialized systems are integrated into other devices and equipment, often operating behind the scenes without direct user interaction. Embedded computers power everyday objects like smart appliances, automotive control systems, medical devices, and industrial machinery, enabling automation, monitoring, and control functionalities.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;By classifying computers based on size, we gain insight into their capabilities, applications, and the diverse ways they shape our lives and society. From the towering supercomputers driving cutting-edge research to the compact microcomputers empowering individuals worldwide, each size category represents a unique facet of the digital landscape.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/6274437717759175356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/classification-of-computer-based-on-size.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/6274437717759175356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/6274437717759175356'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/classification-of-computer-based-on-size.html' title='Classification of computer based on size'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-7337291982099588799</id><published>2024-05-07T21:26:00.001-07:00</published><updated>2024-05-07T21:26:17.807-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="classification of computer"/><title type='text'>Classification of computer based on Architecture </title><content type='html'>&lt;div class=&quot;sticky top-0 z-10 flex min-h-[40px] items-center justify-center border-b border-token-border-medium bg-token-main-surface-primary pl-1 md:hidden&quot;&gt;&lt;div type=&quot;button&quot; id=&quot;radix-:r5:&quot; aria-haspopup=&quot;menu&quot; aria-expanded=&quot;false&quot; data-state=&quot;closed&quot; class=&quot;group flex cursor-pointer items-center gap-1 rounded-xl py-2 px-3 text-lg font-medium hover:bg-token-main-surface-secondary radix-state-open:bg-token-main-surface-secondary&quot;&gt;&lt;div class=&quot;juice:text-token-text-secondary&quot;&gt;Computers can be classified based on their architecture into several categories:&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;main class=&quot;relative h-full w-full flex-1 overflow-auto transition-width&quot;&gt;&lt;div role=&quot;presentation&quot; class=&quot;flex h-full flex-col focus-visible:outline-0&quot;&gt;&lt;div class=&quot;flex-1 overflow-hidden&quot;&gt;&lt;div class=&quot;react-scroll-to-bottom--css-anuss-79elbk h-full&quot;&gt;&lt;div class=&quot;react-scroll-to-bottom--css-anuss-1n7m0yu&quot;&gt;&lt;div class=&quot;flex flex-col text-sm pb-9&quot;&gt;&lt;div class=&quot;w-full text-token-text-primary&quot; dir=&quot;auto&quot; data-testid=&quot;conversation-turn-5&quot; data-scroll-anchor=&quot;true&quot;&gt;&lt;div class=&quot;py-2 px-3 text-base md:px-4 m-auto md:px-5 lg:px-1 xl:px-5&quot;&gt;&lt;div class=&quot;mx-auto flex flex-1 gap-3 text-base juice:gap-4 juice:md:gap-6 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]&quot;&gt;&lt;div class=&quot;relative flex w-full min-w-0 flex-col agent-turn&quot;&gt;&lt;div class=&quot;flex-col gap-1 md:gap-3&quot;&gt;&lt;div class=&quot;flex flex-grow flex-col max-w-full&quot;&gt;&lt;div data-message-author-role=&quot;assistant&quot; data-message-id=&quot;3c3a38cd-81a3-4183-9089-3ce040b22075&quot; dir=&quot;auto&quot; class=&quot;min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto gap-3&quot;&gt;&lt;div class=&quot;markdown prose w-full break-words dark:prose-invert dark&quot;&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Von Neumann Architecture:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Named after mathematician and physicist John von Neumann.&lt;/li&gt;&lt;li&gt;Features a single shared memory for both data and instructions.&lt;/li&gt;&lt;li&gt;Instructions and data are fetched from memory sequentially.&lt;/li&gt;&lt;li&gt;Most modern computers, including PCs and servers, follow this architecture.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Harvard Architecture:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Features separate memory spaces for data and instructions.&lt;/li&gt;&lt;li&gt;Allows simultaneous access to data and instructions, which can improve performance.&lt;/li&gt;&lt;li&gt;Commonly used in embedded systems, digital signal processors, and microcontrollers.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Modified Harvard Architecture:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Similar to Harvard architecture but allows data and instructions to be fetched from the same memory.&lt;/li&gt;&lt;li&gt;Used in systems where data and instructions are stored separately but fetched together, such as some microcontrollers.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Pipelined Architecture:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Divides the instruction execution process into several stages (fetch, decode, execute, etc.).&lt;/li&gt;&lt;li&gt;Allows multiple instructions to be processed simultaneously, improving throughput.&lt;/li&gt;&lt;li&gt;Found in many modern CPUs to enhance performance.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;CISC (Complex Instruction Set Computer):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Supports a large number of complex instructions.&lt;/li&gt;&lt;li&gt;Instructions can perform multiple low-level operations.&lt;/li&gt;&lt;li&gt;Often used in general-purpose computers and older architectures like x86.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;RISC (Reduced Instruction Set Computer):&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Features a smaller set of simple and frequently used instructions.&lt;/li&gt;&lt;li&gt;Emphasizes simplicity and efficiency in instruction execution.&lt;/li&gt;&lt;li&gt;Commonly used in embedded systems, mobile devices, and high-performance computing.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;These architectures have different strengths and weaknesses, influencing their suitability for specific applications and performance characteristics.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/main&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/7337291982099588799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/classification-of-computer-based-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/7337291982099588799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/7337291982099588799'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/classification-of-computer-based-on.html' title='Classification of computer based on Architecture '/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-3166982679404941387</id><published>2024-05-07T21:26:00.000-07:00</published><updated>2024-05-07T21:26:06.090-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="classification of computer"/><title type='text'>Classification of computer based on purpose</title><content type='html'>&lt;div class=&quot;sticky top-0 z-10 flex min-h-[40px] items-center justify-center border-b border-token-border-medium bg-token-main-surface-primary pl-1 md:hidden&quot;&gt;&lt;div type=&quot;button&quot; id=&quot;radix-:r5:&quot; aria-haspopup=&quot;menu&quot; aria-expanded=&quot;false&quot; data-state=&quot;closed&quot; class=&quot;group flex cursor-pointer items-center gap-1 rounded-xl py-2 px-3 text-lg font-medium hover:bg-token-main-surface-secondary radix-state-open:bg-token-main-surface-secondary&quot;&gt;&lt;div class=&quot;juice:text-token-text-secondary&quot;&gt;&lt;div class=&quot;flex-1 overflow-hidden&quot;&gt;&lt;div class=&quot;react-scroll-to-bottom--css-anuss-79elbk h-full&quot;&gt;&lt;div class=&quot;react-scroll-to-bottom--css-anuss-1n7m0yu&quot;&gt;&lt;div class=&quot;flex flex-col text-sm pb-9&quot;&gt;&lt;div class=&quot;w-full text-token-text-primary&quot; dir=&quot;auto&quot; data-testid=&quot;conversation-turn-7&quot; data-scroll-anchor=&quot;true&quot;&gt;&lt;div class=&quot;py-2 px-3 text-base md:px-4 m-auto md:px-5 lg:px-1 xl:px-5&quot;&gt;&lt;div class=&quot;mx-auto flex flex-1 gap-3 text-base juice:gap-4 juice:md:gap-6 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]&quot;&gt;&lt;div class=&quot;relative flex w-full min-w-0 flex-col agent-turn&quot;&gt;&lt;div class=&quot;flex-col gap-1 md:gap-3&quot;&gt;&lt;div class=&quot;flex flex-grow flex-col max-w-full&quot;&gt;&lt;div data-message-author-role=&quot;assistant&quot; data-message-id=&quot;1b22b9e7-7b53-4f52-b97d-b33945457dd7&quot; dir=&quot;auto&quot; class=&quot;min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto gap-3&quot;&gt;&lt;div class=&quot;markdown prose w-full break-words dark:prose-invert dark&quot;&gt;&lt;p&gt;Computers can be classified based on their purpose into several categories:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;General-Purpose Computers:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Designed to perform a wide range of tasks and applications.&lt;/li&gt;&lt;li&gt;Examples include personal computers (PCs), laptops, and tablets used for various purposes such as browsing, word processing, gaming, and multimedia.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Special-Purpose Computers:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Designed for specific tasks or applications.&lt;/li&gt;&lt;li&gt;Examples include:&lt;ul&gt;&lt;li&gt;Gaming Consoles: Dedicated to playing video games.&lt;/li&gt;&lt;li&gt;Embedded Systems: Built into other devices to control specific functions (e.g., automotive systems, medical devices, home appliances).&lt;/li&gt;&lt;li&gt;Point-of-Sale (POS) Systems: Used in retail environments for transactions and inventory management.&lt;/li&gt;&lt;li&gt;Servers: Dedicated to providing services or resources to other computers or devices, such as web servers, database servers, and file servers.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Supercomputers:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Extremely powerful computers designed for intensive computational tasks.&lt;/li&gt;&lt;li&gt;Used for complex simulations, scientific research, weather forecasting, and cryptography.&lt;/li&gt;&lt;li&gt;Examples include IBM&#39;s Summit and Sierra, and Fujitsu&#39;s Fugaku.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Mainframe Computers:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Large-scale computers used in organizations for critical applications requiring high reliability, security, and scalability.&lt;/li&gt;&lt;li&gt;Commonly used in banking, finance, government, and large enterprises for tasks such as transaction processing, data processing, and hosting databases.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Minicomputers:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Mid-sized computers that offer more computing power than microcomputers but less than mainframes.&lt;/li&gt;&lt;li&gt;Historically used for tasks such as scientific computation, process control, and data acquisition.&lt;/li&gt;&lt;li&gt;Now, their role has largely been replaced by microcomputers.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Understanding the purpose of a computer helps in selecting the most suitable type for specific tasks or applications, optimizing performance, efficiency...&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;mt-1 flex gap-3 empty:hidden&quot;&gt;&lt;div class=&quot;text-gray-400 flex self-end lg:self-center items-center justify-center lg:justify-start mt-0 -ml-1 h-7 gap-[2px] visible&quot;&gt;&lt;span class=&quot;&quot; data-state=&quot;closed&quot;&gt;&lt;button class=&quot;flex items-center gap-1.5 rounded-md p-1 text-xs text-token-text-tertiary hover:text-token-text-primary&quot;&gt;&lt;svg width=&quot;24&quot; height=&quot;24&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon-md&quot;&gt;&lt;path fill-rule=&quot;evenodd&quot; clip-rule=&quot;evenodd&quot; d=&quot;M12 3.5C10.8954 3.5 10 4.39543 10 5.5H14C14 4.39543 13.1046 3.5 12 3.5ZM8.53513 3.5C9.22675 2.3044 10.5194 1.5 12 1.5C13.4806 1.5 14.7733 2.3044 15.4649 3.5H17.25C18.9069 3.5 20.25 4.84315 20.25 6.5V18.5C20.25 20.1569 19.1569 21.5 17.25 21.5H6.75C5.09315 21.5 3.75 20.1569 3.75 18.5V6.5C3.75 4.84315 5.09315 3.5 6.75 3.5H8.53513ZM8 5.5H6.75C6.19772 5.5 5.75 5.94772 5.75 6.5V18.5C5.75 19.0523 6.19772 19.5 6.75 19.5H17.25C18.0523 19.5 18.25 19.0523 18.25 18.5V6.5C18.25 5.94772 17.8023 5.5 17.25 5.5H16C16 6.60457 15.1046 7.5 14 7.5H10C8.89543 7.5 8 6.60457 8 5.5Z&quot; fill=&quot;currentColor&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;pr-2 lg:pr-0&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/3166982679404941387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/classification-of-computer-based-on_5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/3166982679404941387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/3166982679404941387'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/classification-of-computer-based-on_5.html' title='Classification of computer based on purpose'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-2260884170912928322</id><published>2024-05-05T01:49:00.001-07:00</published><updated>2024-05-05T01:49:54.547-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="classification of computer"/><title type='text'>Classification of computer </title><content type='html'>&lt;div&gt;Computers can be classified based on various factors such as size, purpose, architecture, and functionality. Here are some common classifications:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1. &lt;b&gt;Based on Size&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Supercomputers: Extremely powerful machines used for complex computations.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Mainframe Computers: Large-scale computing used in organizations for critical applications.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Minicomputers: Mid-sized computers, smaller than mainframes but larger than microcomputers.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Microcomputers: Personal computers, including desktops, laptops, tablets, and smartphones.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. &lt;b&gt;Based on Purpose&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- General-Purpose Computers: Used for a wide range of tasks.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Special-Purpose Computers: Designed for specific tasks like gaming consoles, embedded systems, etc.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. &lt;b&gt;Based on Architecture&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Von Neumann Architecture: Classical architecture with separate storage and processing units.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Harvard Architecture: Separate storage and processing for instructions and data.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Hybrid Architectures: Combining features of both Von Neumann and Harvard architectures.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4. &lt;b&gt;Based on Functionality&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Analog Computers: Utilize continuous data and physical quantities for computation.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Digital Computers: Process discrete data using binary digits (0s and 1s).&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;- Hybrid Computers: Combine features of analog and digital computers for specific tasks.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;These classifications help in understanding the diverse range of computers and their applications in various fields.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/2260884170912928322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/classification-of-computer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/2260884170912928322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/2260884170912928322'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2024/05/classification-of-computer.html' title='Classification of computer '/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-4161214512948106496</id><published>2023-04-02T00:05:00.001-07:00</published><updated>2023-04-02T00:05:46.242-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C programming"/><category scheme="http://www.blogger.com/atom/ns#" term="factorial"/><category scheme="http://www.blogger.com/atom/ns#" term="macro in c"/><category scheme="http://www.blogger.com/atom/ns#" term="programming language"/><title type='text'>C macro for factorial </title><content type='html'>&lt;div&gt;Macro in C for computing the factorial of a number:&lt;/div&gt;&lt;div&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;#define FACT(n) ((n &amp;lt;= 1) ? 1 : n * FACT(n-1))&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;int main() {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; int n = 5;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; int result = FACT(n);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; printf(&quot;Factorial of %d is %d\n&quot;, n, result);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Result:&lt;/div&gt;&lt;div&gt;Factorial of 5 is 120&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Explanation:&lt;/div&gt;&lt;div&gt;In this example, the FACT macro with an argument n is defined that calls itself recursively to compute the factorial of n.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The ternary operator is used to check whether n is less than or equal to 1. If so, it returns 1, which is the base case of the recursive algorithm. If n is greater than 1, the macro multiplies n by the result of FACTORIAL(n-1), which computes the factorial of n-1.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/4161214512948106496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2023/04/c-macro-for-factorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4161214512948106496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4161214512948106496'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2023/04/c-macro-for-factorial.html' title='C macro for factorial '/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-2710510512915247526</id><published>2023-04-01T00:30:00.001-07:00</published><updated>2023-04-01T02:20:09.254-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C programming"/><category scheme="http://www.blogger.com/atom/ns#" term="macro in c"/><category scheme="http://www.blogger.com/atom/ns#" term="programming language"/><title type='text'>macro programming in C</title><content type='html'>&lt;br&gt;&lt;div&gt;Macro programming in C involves the use of preprocessor directives to define macros, which are essentially short pieces of code that can be used to simplify the programming process. Here&#39;s an example of how to use macros in C:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;#define SQUARE(x) ((x) * (x))&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;int main()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; int num = 5;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; int square = SQUARE(num);&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; printf(&quot;The square of %d is %d\n&quot;, num, square);&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;In this example, we define a macro called SQUARE, which takes a single argument x and returns the square of x. We then use the macro in our main function to calculate the square of the variable num, and store the result in a new variable called square.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;video demonstration&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Also we surround the entire macro definition with parentheses to ensure that the order of operations is correct, and surround the argument x with parentheses within the macro itself to prevent any unexpected behavior when the macro is used.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;When we compile and run this program, we should see the following output:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The square of 6 is 36&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This is because the macro SQUARE has replaced the expression SQUARE(num) with ((num) * (num)), which evaluates to 25 in this case.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/2710510512915247526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2023/04/macro-programming-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/2710510512915247526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/2710510512915247526'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2023/04/macro-programming-in-c.html' title='macro programming in C'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-4523081902362663321</id><published>2021-07-17T09:40:00.004-07:00</published><updated>2021-07-17T09:42:05.781-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AdvanceJava"/><category scheme="http://www.blogger.com/atom/ns#" term="collection"/><category scheme="http://www.blogger.com/atom/ns#" term="java.util.Vector"/><title type='text'>How to sort elements of vector object on particular column</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;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/F_NZDaEHlOk&quot; width=&quot;320&quot; youtube-src-id=&quot;F_NZDaEHlOk&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Using sort() method on vector object we can sort elements of vector object.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;For this purpose we need to create our own comparator.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Steps to follow&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;1. Create own Comparator class by implementing Comparator interface and define compare method.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;2. use vector.sort() method and pass the object of your own Comparator implemented class.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;3. finally you vector object will have sorted elements as per your compare() method defined.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Please go through the above video for more in details.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/4523081902362663321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2021/07/how-to-sort-elements-of-vector-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4523081902362663321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4523081902362663321'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2021/07/how-to-sort-elements-of-vector-object.html' title='How to sort elements of vector object on particular column'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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://img.youtube.com/vi/F_NZDaEHlOk/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5725160226146572329.post-4947514120592087036</id><published>2021-07-04T09:02:00.009-07:00</published><updated>2021-07-17T09:42:27.129-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AdvanceJava"/><category scheme="http://www.blogger.com/atom/ns#" term="collection"/><category scheme="http://www.blogger.com/atom/ns#" term="java.util.Vector"/><title type='text'>Java Collection #20 | Using Vector Part-2</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://youtube.com/embed/o-tFrSbbrOI&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;div&gt;How to add custom object to Vector?&lt;/div&gt;&lt;div&gt;What is the requirement to be able to search an custom object from vector?&lt;/div&gt;&lt;div&gt;Why and how to override equals() method?&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/4947514120592087036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2021/07/java-collection-20-using-vector-part-2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4947514120592087036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/4947514120592087036'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2021/07/java-collection-20-using-vector-part-2.html' title='Java Collection #20 | Using Vector Part-2'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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://img.youtube.com/vi/o-tFrSbbrOI/default.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5725160226146572329.post-2069089330004911328</id><published>2021-07-04T08:43:00.004-07:00</published><updated>2023-04-01T02:18:19.774-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AdvanceJava"/><category scheme="http://www.blogger.com/atom/ns#" term="collection"/><category scheme="http://www.blogger.com/atom/ns#" term="java.util.Vector"/><title type='text'>Java Collection #19 | Using Vector</title><content type='html'>&lt;div&gt;Video demonstration&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;How to use java.util.Vector&lt;/div&gt;&lt;div&gt;How it is different from java.util.ArrayList&lt;/div&gt;&lt;div&gt;Different ways to add or remove elements.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In Java, a vector is a dynamic array that can grow or shrink in size based on the number of elements it contains. The Vector class in Java is a part of the java.util package and provides methods for manipulating dynamic arrays.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;To use the Vector class in Java, we need to import the java.util package at the beginning. Here is an example:&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;import java.util.Vector;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;public class MyClass {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;public static void main(String[] args) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // create a vector&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Vector&amp;lt;String&amp;gt; vector = new Vector&amp;lt;String&amp;gt;();&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // add elements to the vector&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; vector.add(&quot;Apple&quot;);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; vector.add(&quot;Banana&quot;);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; vector.add(&quot;Orange&quot;);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // get the size of the vector&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int size = vector.size();&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Size of vector: &quot; + size);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // access an element in the vector&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; String element = vector.get(1);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Element at index 1: &quot; + element);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // remove an element from the vector&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; vector.remove(2);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // print all elements in the vector&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for (String s : vector) {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println(s);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&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;In this example, we create a vector of strings, add elements to it, get the size of the vector, access an element in the vector, remove an element from the vector, and print all elements in the vector using a for-each loop. Note that the Vector class is synchronized, which means that it is thread-safe and can be used in a multi-threaded environment.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/2069089330004911328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2021/07/java-collection-19-using-vector.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/2069089330004911328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/2069089330004911328'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2021/07/java-collection-19-using-vector.html' title='Java Collection #19 | Using Vector'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5725160226146572329.post-1546848792495822671</id><published>2021-07-02T12:43:00.002-07:00</published><updated>2021-07-02T12:43:18.085-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AdvanceJava"/><category scheme="http://www.blogger.com/atom/ns#" term="collection"/><category scheme="http://www.blogger.com/atom/ns#" term="core java"/><category scheme="http://www.blogger.com/atom/ns#" term="TreeSet"/><title type='text'>Requirement to use TreeSet for custom object</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/327EwSlAR0A&quot; width=&quot;320&quot; youtube-src-id=&quot;327EwSlAR0A&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;The video explains about&lt;p&gt;&lt;/p&gt;&lt;p&gt;1. How to use TreeSet?&lt;/p&gt;&lt;p&gt;2. What is the requirement for a custom object to be added to Treeset?&lt;/p&gt;&lt;p&gt;3. What is Comparable and Comparator?&lt;/p&gt;&lt;p&gt;4. When and how to use Comparable?&lt;/p&gt;&lt;p&gt;5. When and how to use Comparator?&lt;/p&gt;&lt;p&gt;6. How to iterate the elements added to the TreeSet object?&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/1546848792495822671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2021/07/requirement-to-use-treeset-for-custom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/1546848792495822671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/1546848792495822671'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2021/07/requirement-to-use-treeset-for-custom.html' title='Requirement to use TreeSet for custom object'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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://img.youtube.com/vi/327EwSlAR0A/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5725160226146572329.post-3113431139048637707</id><published>2020-06-11T08:10:00.001-07:00</published><updated>2020-06-11T08:10:51.020-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wamfeos"/><title type='text'>Promote your service in your local area</title><content type='html'>&lt;ul&gt;&lt;li class=&quot;text-muted&quot;&gt;Join&amp;nbsp;&lt;a href=&quot;https://wamfeos.com/&quot;&gt;wamfeos.com&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;To be a part of family.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;To fill the gap between producer and consumer services.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;To reach to the needy person to serve in your locality.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;To satisfy your daily needs by your local service provider.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;You can raise a request as per your time schedule:&lt;/li&gt;&lt;ul&gt;&lt;li class=&quot;text-muted&quot;&gt;To provide best service.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;To receive the best service.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;The consumer will add a feedback after work completion.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;This feedback will help others to select the best service provider near them depending upon the feedback &amp;amp; area pincode.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;The feedback points will be shown with every service provider profile.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;h5 class=&quot;text-muted&quot;&gt;Membership Benefits:&lt;/h5&gt;&lt;ul&gt;&lt;li class=&quot;text-muted&quot;&gt;Own custom web page on&amp;nbsp;&lt;a href=&quot;https://wamfeos.com/&quot;&gt;wamfeos.com&lt;/a&gt;&amp;nbsp;(AMC applied).&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;You will have an dashboard to manage your own profile &amp;amp; service page.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;You will able to&lt;/li&gt;&lt;ul&gt;&lt;li class=&quot;text-muted&quot;&gt;Add and change your logo.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;Upload profile picture.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;Add your own article with images(if any).&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;&lt;b&gt;Promote&lt;/b&gt;&amp;nbsp;your products or services.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;get online enquiry request.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;As per consumer satisfaction, service provider will receive a feedback from consumer that will help you to get more valuable consumers.&lt;/li&gt;&lt;li class=&quot;text-muted&quot;&gt;Your profile will be viewed by other visitors, sorted on the basis of the feedback.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/3113431139048637707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2020/06/promote-your-service-in-your-local-area.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/3113431139048637707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/3113431139048637707'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2020/06/promote-your-service-in-your-local-area.html' title='Promote your service in your local area'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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-5725160226146572329.post-8025467375208069873</id><published>2020-02-27T03:30:00.001-08:00</published><updated>2020-02-27T03:30:46.361-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c basics"/><category scheme="http://www.blogger.com/atom/ns#" term="FAQ"/><title type='text'>what is pointer</title><content type='html'>&lt;div&gt;Pointer in c language is a variable that stores the address of other variable at run time (dynamically). It can be of any primitive data type or user defined data type. Pointer enables us to access a variable that might be defined outside the function.&amp;nbsp;&lt;br&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/8025467375208069873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2020/02/what-is-pointer.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/8025467375208069873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/8025467375208069873'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2020/02/what-is-pointer.html' title='what is pointer'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5725160226146572329.post-7951725474439936153</id><published>2020-02-27T03:29:00.001-08:00</published><updated>2020-02-27T03:29:46.772-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="core java"/><title type='text'>Why doesn&#39;t Java have pointers?</title><content type='html'>&lt;div&gt;First we need to discuss about pointer before going further.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Pointer in c language is a variable that stores the address of other variable at run time (dynamically). It can be of any primitive data type or user defined data type. Pointer enables us to access a variable that might be defined outside the function.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Java has pointers everywhere but terminology is different. In java, objects created are referred/pointed by reference variable. Except primitive data type, everything in java is instance or object which can be used via reference variable which is similar to pointer in c/c++.&amp;nbsp;&lt;div&gt;But there is no &#39;address of&#39; (&amp;amp;) operator to get the address of the object as we can in c/c++.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;So,&amp;nbsp;&lt;/div&gt;&lt;div&gt;1. we can&#39;t use pointer arithmetic like things in java.&amp;nbsp;&lt;/div&gt;&lt;div&gt;2. We can&#39;t use get the address of an object.&lt;/div&gt;&lt;div&gt;3. We can&#39;t move from one node to another by incrementing the pointer, as we can in c/c++&lt;/div&gt;&lt;div&gt;4. We can use pointer for an array and traverse the whole array via pointer increment or decrement.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaguru-here.blogspot.com/feeds/7951725474439936153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javaguru-here.blogspot.com/2020/02/why-doesnt-java-have-pointers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/7951725474439936153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5725160226146572329/posts/default/7951725474439936153'/><link rel='alternate' type='text/html' href='http://javaguru-here.blogspot.com/2020/02/why-doesnt-java-have-pointers.html' title='Why doesn&#39;t Java have pointers?'/><author><name>Java Mitra</name><uri>http://www.blogger.com/profile/08501750120817164659</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>