<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[NewTechTips - Medium]]></title>
        <description><![CDATA[Discussing Programming, Tips, and internships - Medium]]></description>
        <link>https://medium.com/newtechtips?source=rss----325218704b1a---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>NewTechTips - Medium</title>
            <link>https://medium.com/newtechtips?source=rss----325218704b1a---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:16:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/newtechtips" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Java: The Collections Framework]]></title>
            <link>https://medium.com/newtechtips/java-data-structures-101-collections-framework-8b9323d369a3?source=rss----325218704b1a---4</link>
            <guid isPermaLink="false">https://medium.com/p/8b9323d369a3</guid>
            <category><![CDATA[java-collection]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[java-frameworks]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[java8]]></category>
            <dc:creator><![CDATA[Nathan Chiche]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 02:02:21 GMT</pubDate>
            <atom:updated>2022-12-21T05:16:57.036Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jr_2ICrlhHxtNgO7" /><figcaption>Photo by <a href="https://unsplash.com/@hishahadat?utm_source=medium&amp;utm_medium=referral">Shahadat Rahman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Both C++ and Java have libraries that let us implement common data structures. In Java, we use the collections framework which provide various types of containers for storing and manipulating collections of objects or data. These containers are known as collections.</p><ul><li>C++ has STL</li><li>Java has Collections classes</li></ul><h3>Java has the collections classes:</h3><p>We can use the java util package and to import whole package:</p><p>import java.util.*;</p><p>For high-level applications it is relatively rare to build your own linked list, hash table, binary search tree, etc. Instead these are already implemented for us through these classes!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5YR7vxZAPLZI0B6WqIqpQ.png" /></figure><p>By using the collections provided by the framework, developers can focus on solving business problems rather than worrying about the low-level details of collection implementation.</p><p>Nevertheless the occasion does arise to construct your own class or to modify the class, so it is important to know how the lower-level algorithms work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b9323d369a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/newtechtips/java-data-structures-101-collections-framework-8b9323d369a3">Java: The Collections Framework</a> was originally published in <a href="https://medium.com/newtechtips">NewTechTips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java OOP : What are the Four Pillars?]]></title>
            <link>https://medium.com/newtechtips/java-oop-what-are-the-four-pillars-55920313a9b4?source=rss----325218704b1a---4</link>
            <guid isPermaLink="false">https://medium.com/p/55920313a9b4</guid>
            <category><![CDATA[oop-concepts]]></category>
            <category><![CDATA[oops-interview-questions]]></category>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Nathan Chiche]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 00:56:40 GMT</pubDate>
            <atom:updated>2023-02-10T10:12:29.815Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*m8SG-c1f65wgsvu3RxdrTw.png" /></figure><h3>Java OOP : What are the Four Pillars?</h3><p>Java is an object oriented based programming language. It only started supporting functional programming in 2014 with <strong>Java 8</strong>. Java’s full potential isn’t realized if you haven’t explored OOP and only used learned using functional approaches.</p><p>Object-oriented programming (OOP) is extremely relevant, and we will explore the 4 biggest topics not only within Java but also in other OOP languages like <strong>Javascript</strong>.</p><p>I’ve always had issues with these concepts myself so i hope this article will help you on your journey.</p><h3>OOPS concepts:</h3><ol><li>Class</li><li>Object</li><li>Method</li><li>Four Pillars</li></ol><p>Getting familiar with classes, objects, and methods is highly recommended if you haven’t already.</p><p>We’ll now discuss the four pillars that make up Object-Oriented Programming:</p><ul><li>Encapsulation(also Getters/Setters)</li><li>Inheritance (Parent and child relationship)</li><li>Abstraction(Interface and abstract classes)</li><li>Polymorphism (also overloading/overriding)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*okWMvihm_bOETOFjHJ_NJw.png" /></figure><h3>Encapsulation</h3><p>In Java, encapsulation is the mechanism of wrapping the data (variables) and the code that manipulates them (methods) together as a single unit. The process of hiding data in a class using private and showing the methods with public</p><ul><li>Utilizes and emphasises the use of access modifiers(control the visibility of fields, methods, and constructors in a class.)</li></ul><p>We also use Setters and Getters to access and modify the data in a controlled manner, without being able to directly access the private variables</p><pre>public class Person {<br>    // Private variables that cannot be accessed directly<br>    private String username;<br>    private String password;<br><br>    // Public methods that can be used to access and modify the private variables<br>    public void setName(String name) {<br>        this.name = name;<br>    }<br><br>    public String getName() {<br>        return this.name;<br>    }<br><br>    public void setAge(int age) {<br>        this.age = age;<br>    }<br><br>    public int getAge() {<br>        return this.age;<br>    }<br>}</pre><p>In this example, the Person class contains private variables for the username and password of a person, as well as public methods for setting and getting the values of these variables.</p><p><strong>Why is this important in the real world?</strong></p><blockquote>Encapsulation emphasizes software security. It helps root out unintended vulnerabilities in data breaches in which the attacker can gain access to unauthorized access to an objects internal data for example an individual’s username and password.</blockquote><h3>Inheritance</h3><p>Inheritance is a way for the child class to reuse and extend the items of its parent class. The child class inherits the attributes and behaviors of the parent class, and can also have its own attributes and behaviors. This allows the child class to have the same capabilities as the parent class, and also to add new features to those that it inherits.</p><ul><li><strong>A child receives methods from parent class</strong></li><li>Uses the extends keyword</li></ul><p>A Vehicle can take on many diffrent forms such as a bike, scooter, or car. The main component they can all agree that they use is either they are moving or they are stopped which we can include in the parent class</p><blockquote>void go() method prints out vehicle moving</blockquote><blockquote>void stop() method prints out vehicle stopped</blockquote><p>We can extend this base class to any other child classes such that adding battery percentage to a electric scooter, or maybe a Miles-to-Empty guage on a car, and many more different features within their own child class</p><pre>// Parent class<br>public class Vehicle {<br>  void go() {<br>    System.out.println(&quot;we are accelerating.&quot;);<br>  }<br><br>  void stop() {<br>    System.out.println(&quot;We are stopping.&quot;);<br>  }<br>}<br><br>// Child class<br>public class electricScooter extends Vehicle {<br><br>  public void toggleBatteryPercentage() {<br>    if (this.batteryPercentageOn) {<br>      this.batteryPercentageOn = false;<br>    } else {<br>      this.batteryPercentageOn = true;<br>    }<br>  }<br>}<br><br>// Create a electricScooter object<br>electricScooter Razor = new electricScooter();<br><br>Razor.stop();<br>Razor.toggleBatteryPercentage();</pre><h3>Polymorphism</h3><p>Polymorphism is a confusing concept but actually quite simple. Imagine a single function that adds two numbers. There are many data types such as: Ints, Floats, etc. How would you go about it so that we can use one function to add all data types? Well we use polymorphism. All of these data types can be added together. This flexibility allows for more concise and modular code, and can make it easier to write and maintain complex programs.</p><ul><li>Practically a child inheriting a method but being able to change</li></ul><p>Assume there is a base class named <strong>Shape</strong> from which the subclasses <strong>Triangle and Circle,</strong> are derived.</p><p>Shape class has a method called calculateArea(),which is inherited by all subclasses. when the calculateArea()method is called in an object of the <strong>Triangle class</strong>, the method might respond by displaying the area of the <strong>Triangle</strong>. On the other hand, when the same method is called in an object of the <strong>Circle class</strong>, the circle’s area might be calculated and displayed on the screen.</p><p>Below is an example of how polymorphism is used</p><pre>class Shapes {<br>  public void area() {<br>    System.out.println(&quot;The formula for area of &quot;);<br>  }<br>}<br>class Triangle extends Shapes {<br>  public void area() {<br>    System.out.println(&quot;Triangle is ½ * base * height &quot;);<br>  }<br>}<br>class Circle extends Shapes {<br>  public void area() {<br>    System.out.println(&quot;Circle is 3.14 * radius * radius &quot;);<br>  }<br>}<br>class Main {<br>  public static void main(String[] args) {<br>    Shapes myShape = new Shapes();  // Create a Shapes object<br>    Shapes myTriangle = new Triangle();  // Create a Triangle object<br>    Shapes myCircle = new Circle();  // Create a Circle object<br>    myShape.area();<br>    myTriangle.area();<br>    myShape.area();<br>    myCircle.area();<br>  }<br>}</pre><h3>Abstraction</h3><p>Java abstraction hides the details of how a class is implemented from its user. Therefore, a class’s user only needs to know what it does, not how it does it.</p><p>An interface is a collection of abstract methods that must be implemented by any class that implements the interface.</p><blockquote><strong>We use the </strong><strong>abstract keyword</strong></blockquote><p>Classes that are abstract can’t be instantiated, but they can be subclassed. What does this mean?</p><p>The code below doesn’t work because we can’t use an abstract class we can only use it to help make regular classes</p><pre>abstract class Dog{<br>    public void bark(){<br>	  System.out.println(&quot;bark&quot;);<br>    }<br>}<br>public class Abstraction{<br>    public static void main(string[] args){<br>	Dog d = new Dog();<br>	d.bark();<br>    }<br><br>}</pre><p>The code below works since its been subclassed</p><pre>abstract class Dog{<br>    public void bark(){<br>	System.out.println(&quot;bark&quot;);<br>    }<br>}<br><br>class chihuahua extends Dog{}<br><br>public class Abstraction{<br>    public static void main(string[] args){<br>	Chihuahua c = new Chihuahua();<br>	d.bark();<br>    }<br>}</pre><h3>Method overriding vs overloading</h3><p>Method overloading and overriding are two completely different concepts. and has to do with types of polymorphism.</p><ul><li><strong>Static polymorphism</strong> is also known as compile time polymorphism.</li><li><strong>Dynamic polymorphism</strong> is also known as runtime polymorphism.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1DEoWbDINNXfF7p_yo4pHw.png" /></figure><ul><li><a href="https://medium.com/newtechtips/java-journey-what-to-do-after-the-basics-1f79c96acdbf">Java Journey: What to do after the basics?</a></li><li><a href="https://medium.com/@nchic006/java-architect-what-is-jvm-jdk-and-jre-d4da10df4f0d">Java Essentials: what is JVM | JDK | JRE?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55920313a9b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/newtechtips/java-oop-what-are-the-four-pillars-55920313a9b4">Java OOP : What are the Four Pillars?</a> was originally published in <a href="https://medium.com/newtechtips">NewTechTips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Journey: What to do after the basics?]]></title>
            <link>https://medium.com/newtechtips/java-journey-what-to-do-after-the-basics-1f79c96acdbf?source=rss----325218704b1a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1f79c96acdbf</guid>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[java-tips]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[basics-of-programming]]></category>
            <dc:creator><![CDATA[Nathan Chiche]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 00:56:29 GMT</pubDate>
            <atom:updated>2024-10-15T15:35:31.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*f_50gGFqBOR3SfGCO0k4Cw.jpeg" /></figure><p>Once you have learned the <strong>basics</strong> of java what Should you learn next?</p><blockquote>Java is a powerful language that has a wide range of uses. Its support for object-oriented programming, inheritance, and other important concepts make it a good choice for developing robust, scalable applications. Its rich set of libraries and support for concurrency make it a versatile language that can be used for a wide range of purposes</blockquote><p>Reading what Java is might leave you wondering where to start after learning the <strong>basics</strong>. Below I have compiled topics you should look into on your Java journey.</p><p>One of the most important concepts in Java is the concept of object-oriented programming. This involves organizing code into small, self-contained units, known as objects, which can interact with each other through well-defined interfaces. This allows for code to be organized in a way that is intuitive and easy to understand, and it makes it easier to build complex, large-scale applications.</p><p>In java these include:</p><ul><li>Encapsulation(also Getters/Setters)</li><li>Inheritance (Parent and child relationship)</li><li>Abstraction(Interface and abstract classes)</li><li>Polymorphism (also overloading/overriding)</li></ul><h3>Life of an Object</h3><p><strong><em>where do objects and variables live in Java?</em></strong></p><p>It is important to understand what stacks and heaps are. You need to know about local and instance variables. Learn about constructors and important keywords such as ‘this’ and ‘super’.</p><h3>Data Structures</h3><p>When learning any programming language, this is one of the most important concepts to understand. It is highly recommended that you develop your own <strong>data structures</strong> before learning about Java collections.</p><p>The <strong>Collection in Java</strong> is a framework that provides an architecture to store and manipulate the group of objects, meaning you can instantly create data structures such as array lists, hashmaps, and more</p><h3>Generics</h3><p>Another powerful tool in java. You will find <strong>generics</strong> a lot in production code. A<strong> must know</strong> topic of java.</p><blockquote>💡 Generics are most used for collections</blockquote><h3>Death of an Object</h3><p>Learn about <strong>Garbage collection</strong> of java. If you are starting on java at least get yourself acquainted with the terminology.</p><h3>Networking &amp; Threads</h3><p>One of the biggest advantage of java is to reach out to other programs and process the requests in <strong>parallel</strong>. Learn about serialization, buffer readers/writers and life cycle of thread. You should know about Thread class and Runnable interface.</p><h3>Additional</h3><p>In addition to these fundamental concepts, Java also includes many more number of <strong><em>powerful features</em></strong> that make it a versatile language.</p><p>For example, it has a rich set of <strong>libraries</strong> that provide a wide range of functionality, working with <strong>databases and networks</strong> to creating graphical user interfaces and more. It also has strong support for <strong>concurrency</strong>, which allows <strong>multiple threads</strong> of execution to run simultaneously, making it well-suited for building high-performance, scalable applications.</p><h3>What to do if you’ve already built a solid foundation?</h3><p>Once you have a solid foundation in Java programming, there are many directions you can continue learning on your journey. <strong>Some ideas</strong> for what to do next might include:</p><ul><li><strong>Practice, practie, practice</strong>: As with any skill, the best way to improve your Java programming abilities is to practice. You can find online resources such as coding challenges or practice problems to work on, or you can try building small projects on your own to apply what you have learned.</li><li><strong>Dive deeper into specific Java concepts</strong>: Depending on your interests, you may want to focus on learning more about specific areas of Java programming in greater depth. For example, you could learn more about object-oriented programming, data structures, or algorithms.</li><li><strong>Explore frameworks and libraries</strong>: There are many frameworks and libraries available for Java that can make it easier to build certain types of applications or solve common programming problems. You may want to try out a few different frameworks or libraries to see how they can help you with your projects.</li><li><strong>Learn about other programming languages</strong>: While you are focusing on Java, it can also be beneficial to learn about other programming languages, as this can help you to broaden your understanding of programming concepts and techniques.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PRdlJ7p_gZ_vRcqM" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f79c96acdbf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/newtechtips/java-journey-what-to-do-after-the-basics-1f79c96acdbf">Java Journey: What to do after the basics?</a> was originally published in <a href="https://medium.com/newtechtips">NewTechTips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>