<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jian Wei Tee</title>
    <description>The latest articles on DEV Community by Jian Wei Tee (@jian_weitee_f32a164fa000).</description>
    <link>https://dev.to/jian_weitee_f32a164fa000</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2646713%2Fc9c4165a-7706-47f0-a213-026671ccf1b5.png</url>
      <title>DEV Community: Jian Wei Tee</title>
      <link>https://dev.to/jian_weitee_f32a164fa000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jian_weitee_f32a164fa000"/>
    <language>en</language>
    <item>
      <title>Java Interview questions for Freshers (1-2)</title>
      <dc:creator>Jian Wei Tee</dc:creator>
      <pubDate>Thu, 02 Jan 2025 14:51:14 +0000</pubDate>
      <link>https://dev.to/jian_weitee_f32a164fa000/java-interview-questions-for-freshers-1-2-5edh</link>
      <guid>https://dev.to/jian_weitee_f32a164fa000/java-interview-questions-for-freshers-1-2-5edh</guid>
      <description>&lt;p&gt;&lt;em&gt;Edited from: &lt;a href="https://www.geeksforgeeks.org/java-interview-questions/" rel="noopener noreferrer"&gt;https://www.geeksforgeeks.org/java-interview-questions/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  1. Is Java Platform Independent if then how?
&lt;/h1&gt;

&lt;p&gt;Javac compiles the program into bytecode, which is stored in a .class file. This file can be executed on any operating system as long as a JVM (Java Virtual Machine) is preinstalled. Therefore, bytecode can be created on one system and executed on another, making Java platform-independent.&lt;/p&gt;

&lt;h1&gt;
  
  
  2. What are the top features of Java?
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Simple:&lt;/strong&gt; Java is simpler compared to other languages such as C and C++ because it eliminates the need to manually create and release allocated memory using pointers. Instead, Java implements a garbage collection mechanism to automatically release unused references.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Object-Oriented:&lt;/strong&gt; Java is an object-oriented language that supports the concepts of classes and the four pillars of OOP (Object-Oriented Programming).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Encapsulation:&lt;/strong&gt; Controls data access using access modifiers such as &lt;code&gt;public&lt;/code&gt;, &lt;code&gt;private&lt;/code&gt;, and &lt;code&gt;protected&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inheritance:&lt;/strong&gt; Promotes code reuse by allowing a child class to inherit the properties and methods of a parent class.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Polymorphism:&lt;/strong&gt; Enables a single method to behave differently based on the object that invokes it. This can be achieved through method overloading (compile-time polymorphism) and method overriding (runtime polymorphism).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Abstraction:&lt;/strong&gt; Allows users to interact with an object through a well-defined interface without needing to understand its implementation details. This can be achieved using abstract classes and interfaces.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multithreaded:&lt;/strong&gt; Allows multiple threads to run concurrently within a program. A concurrency framework is provided under the &lt;code&gt;java.util.concurrent&lt;/code&gt; package. &lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

</description>
      <category>java</category>
      <category>interview</category>
    </item>
  </channel>
</rss>
