<?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: PHAGUN JAIN</title>
    <description>The latest articles on DEV Community by PHAGUN JAIN (@phagunjain).</description>
    <link>https://dev.to/phagunjain</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%2F487423%2F69c425bf-2e9c-4744-9dde-ea21025391a0.jpg</url>
      <title>DEV Community: PHAGUN JAIN</title>
      <link>https://dev.to/phagunjain</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phagunjain"/>
    <language>en</language>
    <item>
      <title>what is Zero Trust?</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Mon, 29 May 2023 16:53:12 +0000</pubDate>
      <link>https://dev.to/phagunjain/zero-trust-what-is-the-hype-all-about-133j</link>
      <guid>https://dev.to/phagunjain/zero-trust-what-is-the-hype-all-about-133j</guid>
      <description>&lt;p&gt;People who work in the arena of cybersecurity or networking solutions most certainly have come across the terms Zero Trust/Zero Trust Architecture, SASE (Secure Access Service Edge), ZTNA, and other fancy words. Let's discuss what these are.&lt;/p&gt;

&lt;h4&gt;
  
  
  Origin of Zero Trust
&lt;/h4&gt;

&lt;p&gt;At Google, there was an attack performed by a hacker. During the attack, the hacker gained access to an employee's workstation. After gaining access, the attacker was able to laterally navigate to the organization's critical workloads and set up other malicious activities. This is what is referred to as the problem of implicit trust. Traditionally, in corporate networks or LAN setups, the objective is to create a trusted perimeter where all trusted devices can access resources as they please.&lt;/p&gt;

&lt;p&gt;Zero Trust Architecture (ZTA) advocates for removing implicit trust completely. Users should only be given access to what they require to perform their tasks and nothing more. This is a significant departure from traditional networking. Although there is no complete or official definition yet, my basic understanding is that anything that talks about perimeters, like in traditional networking, is far from ZTA.&lt;/p&gt;

&lt;h4&gt;
  
  
  Principles of ZTA
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Minimize the trust placed on users.&lt;/li&gt;
&lt;li&gt;Verify everything.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Unlike traditional perimeter-based security, where everything inside the perimeter is assumed to be trusted and therefore doesn't need verification, ZTA promotes monitoring and scoping the access to resources.&lt;/p&gt;

&lt;h4&gt;
  
  
  How is it achieved?
&lt;/h4&gt;

&lt;p&gt;It is a common tendency to adapt old things to fit new trends, and that's exactly what is happening with ZTA. Nowadays, everyone is trying to incorporate the zero-trust methodology. Vendors are attempting to sell traditional security tools like firewalls, VPNs, etc., with additional features labeled as zero trust because it is currently trending. Since this area is still in its early days, it will be interesting to see how things develop and how different vendors implement this concept.&lt;/p&gt;

&lt;p&gt;There's no such thing as "zero trust" because there must be some trust for anything to operate. ZT isn't about eliminating trust. It's about controlling it.&lt;/p&gt;

&lt;h4&gt;
  
  
  What is SASE
&lt;/h4&gt;

&lt;p&gt;Secure access service edge—or SASE is the new concept in field of network and security, where ZT focuses more on the cyber security side, SASE in implemented on top of ZT along with other techniques to completely revamp how networking is done, it bring together different technologies, including secure web gateways, cloud access security brokers, firewalls, and zero-trust network access, into a unified, cloud-delivered service.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;some resources for further read:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.protocol.com/enterprise/security-zero-trust-cloudflare-zscaler#toggle-gdpr" rel="noopener noreferrer"&gt;security-zero-trust-cloudflare-zscaler&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.reddit.com/r/cybersecurity/comments/uhe5ip/why_are_people_here_treating_zero_trust/?onetap_auto=true" rel="noopener noreferrer"&gt;why_are_people_here_treating_zero_trust_badly&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aryaka.com/blog/zero-trust-ztna-sase/" rel="noopener noreferrer"&gt;Flavours of zero trust&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://youtu.be/EF_0dr8WkX8" rel="noopener noreferrer"&gt;Zero-Trust Networks: The Future Is Here - SANS Blue Team Summit 2019&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.strongdm.com/blog/zero-trust-vs-sase#:~:text=The%20most%20significant%20difference%20between,security%20services%2C%20including%20Zero%20Trust." rel="noopener noreferrer"&gt;Zero trust and sase everything you need to know&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>zerotrust</category>
      <category>beginners</category>
      <category>learning</category>
      <category>cybersecurity</category>
    </item>
    <item>
      <title>Virtualization Fundamentals for Containers</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Sun, 06 Feb 2022 11:10:10 +0000</pubDate>
      <link>https://dev.to/phagunjain/virtualization-fundamentals-for-containers-4mc3</link>
      <guid>https://dev.to/phagunjain/virtualization-fundamentals-for-containers-4mc3</guid>
      <description>&lt;h2&gt;
  
  
  What is Virtualization?
&lt;/h2&gt;

&lt;p&gt;It is the technique with which the IT person can create the isolated environments such that the process or the group of processes operating within that isolated environment assumes as if it is executing in the real computing infrastructure, this kind of practice leads to more effective use of resources available to the organization along with this the concept of virtualization is the fundamental block upon which the whole cloud computing infrastructure works.&lt;/p&gt;

&lt;p&gt;There are several different kinds of virtualization used like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hardware Virtualization (most widely known type VMs)&lt;/li&gt;
&lt;li&gt;Operating System Virtualization (trending nowadays containers)&lt;/li&gt;
&lt;li&gt;Network Virtualization&lt;/li&gt;
&lt;li&gt;Storage Virtualization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwb98vjbi7oem0b7m2mt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwb98vjbi7oem0b7m2mt.png" alt="img src-(Linux foundation training)" width="800" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Containers work on the concept of Os-level virtualization. Os level virtualization is the kernel's ability to make multiple isolated environments on a single host; These environments encapsulate the programs and hide the true nature of the environment.&lt;br&gt;
Three fundamental components enable OS-level virtualization possible Control Groups, Namespaces, and Unification Filesystem.&lt;/p&gt;

&lt;h3&gt;
  
  
  Control Groups(Cgroups)
&lt;/h3&gt;

&lt;p&gt;A control group is the mechanism of the Linux kernel that allows the limitation, accounting, and isolation of resources used by a group of processes and their subgroups. It allows the limitation of resources such as memory, disk, I/O, and network usage for a group of processes.&lt;br&gt;
The processes of a container are treated as a whole unit, containers benefit from Cgroups primarily because they allow system resources to limit for processes grouped by a container, also a container may be prioritized for resource allocation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Namespaces
&lt;/h3&gt;

&lt;p&gt;Another feature of the Linux system, it allows the processes to have restricted visibility of the host system resources. It can limit the visibility of cgroups, hostname, process IDs, etc. To a process running inside a namespaced resource, appear as its dedicated resources.&lt;br&gt;
Namespace isolates processes from one container to prevent modifying the hostname, network interfaces, or mounts for processes running in other containers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Unification Filesystem
&lt;/h3&gt;

&lt;p&gt;This feature allows the overlay of the multiple filesystems to produce a single mock filesystem. The contents of different filesystems are virtually stacked, and their contents appear to be in a single filesystem, although, physically, they remain separate.&lt;br&gt;
unionfs is used in containers to overlay a base container image with other writable layers. Storage layers such as ephemeral storage layers, custom storage layers, config layers are stacked. unionfs uses the mechanism called copy-on-write (cow) to modify the files in a running container cow strategy lets users indirectly change the content of files available to the running container from the base container image. Container image files are read-only, when a user attempts to modify such files the base image file is copied into the ephemeral storage layer of the container, a user is allowed to make changes to this new copy while the base container image files remain untouched.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Here are some great resources for further read:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://it20.info/2007/03/hardware-virtualization-vs-os-virtualization-vs-application-virtualization/" rel="noopener noreferrer"&gt;Hardware-virtualization-vs-os-virtualization-vs-application-virtualization&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/educative/top-tech-trends-of-2022-virtualization-4n13"&gt;What is virtualization&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/bojana_dev/virtualization-400k"&gt;Hypervisor, full and para virtualization&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kunal/docker-made-easy-2gcf"&gt;Docker made easy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>devops</category>
      <category>docker</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Understanding OTT(over the top) technology</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Sun, 17 Oct 2021 13:35:06 +0000</pubDate>
      <link>https://dev.to/phagunjain/understanding-ottover-the-top-technology-5eic</link>
      <guid>https://dev.to/phagunjain/understanding-ottover-the-top-technology-5eic</guid>
      <description>&lt;p&gt;We all witnessed how the consumption of online content has drastically increased in the last few years, although it is happening around the globe there are multiple factors that catalyzed this trend in India, and that are yes very cheap internet provided by &lt;strong&gt;Jio&lt;/strong&gt; and affordable Chinese smartphones also among all the devices available mobile devices are the major medium of content consumption, another major reason was the global pandemic which forced everyone to stay at homes and reduced the sources of entertainment, eventually people started to try out other sources of entertainment like Hotstar, Netflix and many more.&lt;/p&gt;

&lt;p&gt;But among all these sudden changes something is missing and that is the actual technology that made all this possible and i.e. &lt;em&gt;&lt;strong&gt;OTT video streaming&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  Overview of OTT
&lt;/h3&gt;

&lt;p&gt;OTT (over the top) (originally used for devices such as Apple TV which uses the internet to stream the content), refers to the distribution of video content over the internet, bypassing traditional linear or pay-TV services to bring content directly to end-user on their internet-connected devices—their phones, smart TVs, and others&lt;/p&gt;

&lt;p&gt;even though OTT has been there before but it's now becoming more popular as a media thing.&lt;br&gt;
There are few terms associated with OTT and there are OTT Devices, OTT Services, OTT Platforms, and OTT Apps.&lt;/p&gt;

&lt;h4&gt;
  
  
  OTT Devices
&lt;/h4&gt;

&lt;p&gt;These are any device which can bypass traditional methods and connect to the internet such as smartphones, smart TV's&lt;/p&gt;

&lt;h4&gt;
  
  
  OTT Services
&lt;/h4&gt;

&lt;p&gt;These are the content providers such as Netflix, Disney Plus Hotstar that anyone can watch anytime, anywhere they want &lt;/p&gt;

&lt;h4&gt;
  
  
  OTT Apps
&lt;/h4&gt;

&lt;p&gt;These applications are built according to the hardware specification of the device and act as the medium that makes all things work as the apps make it possible to consume content on devices provided by the content providers&lt;/p&gt;

&lt;h4&gt;
  
  
  OTT Platforms
&lt;/h4&gt;

&lt;p&gt;These are the companies that provide a platform using which anyone can  launch their own app for OTT such as uscreen OTT platform for their viewers to watch&lt;/p&gt;




&lt;h3&gt;
  
  
  Benefits of OTT
&lt;/h3&gt;

&lt;p&gt;Apart from the features like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;on-demand consumption,&lt;br&gt;
high-quality experience,&lt;br&gt;
increased options to choose from.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;OTT is much more than that and that is the reason big media houses are investing in the space, that less understood corner is the business side of OTT space.&lt;/p&gt;

&lt;p&gt;OTT Apps utilities the machine learning models to identify the consumer's online behaviors and activities in identifying the demand in the market and based on these insights big players can decide what content to buy and what not for placing on the app, also the OTT Ads works in a similar fashion which makes use of AI&amp;amp;ML to gather the data and identify the needs of the consumer and based on the needs the ads are placed such that it aligns with the interest of the viewer leading to enriched experience for the user and better strategy for the business owners campaign &lt;/p&gt;

&lt;p&gt;Also, it is not that OTT is only for big players many new media houses and individuals are rising with the increased popularity which is heading to the establishment of business for content providers where they can provide content to the audience for consumption on their own pace.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Future
&lt;/h3&gt;

&lt;p&gt;OTT does seem very interesting and it does have disrupted the traditional TV and entertainment industry, as during the Lockdown period many films that were supposed to be released on big screens either stopped or moved to the services such as Netflix, Hotstar, etc and the proved to be an absolute hit for the business of those movies.&lt;/p&gt;

&lt;p&gt;It is already visible that many people have started to cancel their cable TV subscription since none watches it anymore.&lt;br&gt;
also, there is some work going on in VR with the OTT area which is very fascinating, VR in itself is very exciting, and being able to stream it will open up a whole new space of both opportunities and experience.&lt;br&gt;
if you are interested in VR and OTT do read this &lt;a href="https://www.mesaonline.org/2018/06/05/pwc-forecast-vr-ott-video-among-major-me-growth-segments-through-2022/" rel="noopener noreferrer"&gt;pwc-vr-ott forecast&lt;/a&gt; &lt;/p&gt;

</description>
      <category>computerscience</category>
      <category>beginners</category>
      <category>ott</category>
    </item>
    <item>
      <title>Tcp, Udp, Http</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Fri, 25 Jun 2021 08:36:47 +0000</pubDate>
      <link>https://dev.to/phagunjain/tcp-udp-http-4595</link>
      <guid>https://dev.to/phagunjain/tcp-udp-http-4595</guid>
      <description>&lt;p&gt;Many times while learning about web applications and application architecture, it is common to get across some basic concepts related to computer networks, I got across the terms "TCP/UDP" "HTTP/HTTPS" "SSL/tls" quite a lot and realized that I don't understand these terms correctly, so as a result of re-learning those terms related to networking am writing this post this is more of a revision note for myself :}&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;before starting it will be great to mention about &lt;strong&gt;OSI model&lt;/strong&gt; &lt;br&gt;
OSI model is a set of standardized rules that specifies the communication functions of a computer networking system. This model divides the transfer process of data from one computer to another into 7 layers tasks, such that each layer serves to the next layer of completing the required task.&lt;/p&gt;

&lt;h3&gt;
  
  
  Layer Architecture
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Layer 1: Physical Layer&lt;/li&gt;
&lt;li&gt;Layer 2: Data Link Layer&lt;/li&gt;
&lt;li&gt;Layer 3: Network Layer&lt;/li&gt;
&lt;li&gt;Layer 4: Transport Layer&lt;/li&gt;
&lt;li&gt;Layer 5: Session Layer&lt;/li&gt;
&lt;li&gt;Layer 6: Presentation Layer&lt;/li&gt;
&lt;li&gt;Layer 7: Application Layer&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;not going in the depth&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;now, before going to protocols, one doubt I got was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;why are there two protocols like HTTP, and TCP/UDP &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And these are mentioned quite often, I was confused after some reading online I realized HTTP and TCP are not alternatives, These protocols work in two different layers. HTTP needs some transport layer protocol. &lt;/p&gt;

&lt;h2&gt;
  
  
  what is HTTP?
&lt;/h2&gt;

&lt;p&gt;HTTP is a Hypertext Transfer Protocol. It works in layer seven or the application layer and it fetches resources such as HTML documents. It is used for exchanging data on the Web and is a client-server protocol which means requests are initiated by the recipient usually the Web browser.&lt;br&gt;
HTTP clients generally use Transmission Control Protocol (TCP) connection to communicate with servers.&lt;/p&gt;

&lt;h2&gt;
  
  
  what is TCP?
&lt;/h2&gt;

&lt;p&gt;TCP is Transmission Control Protocol. It works in layer four or transport layer it states a connection is established and maintained until the application data at each end have finished exchange. TCP breaks application data into packets. This packet delivers to the transport layer.&lt;/p&gt;

&lt;p&gt;Where TCP ensures that all the packets are received by re-transmitting any defected or lost packets sometimes this is not required. Then udp comes in to picture it does not re-transmit the dropped packets thus ensuring fast delivery hence when the requirement is of fast delivery rather than of ensuring everything is delivered UDP is preferred.&lt;/p&gt;

&lt;p&gt;that's it thanks for reading :)&lt;/p&gt;




</description>
      <category>protocols</category>
      <category>http</category>
      <category>tls</category>
      <category>ssl</category>
    </item>
    <item>
      <title>Why is it important to create a default constructor explicitly when we create a parametrized constructor explicitly??</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Fri, 19 Feb 2021 08:28:32 +0000</pubDate>
      <link>https://dev.to/phagunjain/why-is-it-important-to-create-a-default-constructor-explicitly-when-we-create-a-parametrized-constructor-explicitly-3pan</link>
      <guid>https://dev.to/phagunjain/why-is-it-important-to-create-a-default-constructor-explicitly-when-we-create-a-parametrized-constructor-explicitly-3pan</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foij5r7njh5ivjwpo22n9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foij5r7njh5ivjwpo22n9.png" alt="Alt Text" width="728" height="177"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;java implicitly creates a default constructor for us in a class, but only if we have not created any parametrized constructor in that particular class, however it is not important to declare a default  constructor if there is no use of it in the implementation i.e, if we are providing parameters for each object created for example: the following program does not call default constructor&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0xf8bgfgpm96omujc4zz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0xf8bgfgpm96omujc4zz.jpg" alt="Alt Text" width="800" height="590"&gt;&lt;/a&gt;&lt;br&gt;
OUTPUT:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F48uhybv759hdhe4rjh7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F48uhybv759hdhe4rjh7o.png" alt="Alt Text" width="342" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but when we inherit a super class to create some sub class we should keep in mind that every subclass calls super class constructor first, therefore we need to define a default constructor in super class, but if we explicitly call parametrized constructor of super class in the subclass then also there is no need for creating default constructor in super class&lt;/p&gt;

&lt;p&gt;here is another example :&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flttajrep4m9h228qfozc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flttajrep4m9h228qfozc.png" alt="Alt Text" width="800" height="599"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;OUTPUT: &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmegns48ziotil8ceqz8c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmegns48ziotil8ceqz8c.png" alt="Alt Text" width="417" height="75"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/7187799/why-default-constructor-is-required-in-a-parent-class-if-it-has-an-argument-ed-c" rel="noopener noreferrer"&gt;Sources&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>devops</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Error: Could not find or load main class</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Sat, 06 Feb 2021 15:22:25 +0000</pubDate>
      <link>https://dev.to/phagunjain/error-could-not-find-or-load-main-class-1pb9</link>
      <guid>https://dev.to/phagunjain/error-could-not-find-or-load-main-class-1pb9</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F81vtkd83u4i730r899se.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F81vtkd83u4i730r899se.png" alt="alt text" width="602" height="82"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;While trying to execute java code via command-line you may have encountered the above error quite commonly (if you declare your class as a part of some package)&lt;/p&gt;

&lt;h2&gt;
  
  
  What is package?
&lt;/h2&gt;

&lt;p&gt;Packages are containers for classes that are used to keep the class name space compartmentalized. For example, a package allows you to create a class named List, which you can store in your own package without concern that it will collide with some other class named List stored elsewhere. &lt;/p&gt;

&lt;h2&gt;
  
  
  Finding packages
&lt;/h2&gt;

&lt;p&gt;How does the Java run-time system know where to look for packages that you create? &lt;br&gt;
The answer has three parts. First, by default, the Java run-time system uses the current working directory as its starting point. Thus, if your package is in a subdirectory of the current directory, it will be found. Second, you can specify a directory path or paths by setting the CLASSPATH environmental variable. Third, you can use the -classpath option with java and javac to specify the path to your classes.&lt;br&gt;
In this read I will focus on the most easiest way, i.e. first one &lt;/p&gt;

&lt;h3&gt;
  
  
  The Demonstration :-
&lt;/h3&gt;

&lt;p&gt;1&amp;gt;  Checkin into your development directory in my case this is&lt;br&gt;
 C:\Users\omgill\Desktop\Java&lt;br&gt;
2&amp;gt;  The easiest way is to simply create your package directory below your development folder.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzkba5sez6i5zln4qcuoc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzkba5sez6i5zln4qcuoc.png" alt="alt text" width="602" height="194"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3&amp;gt;   Now put your .java file into the package directory complie the code .&lt;br&gt;
CAUTION: make sure that all the .class files are placed in the right folder/directory. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0omanuquvlub76lkt4va.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0omanuquvlub76lkt4va.png" alt="alt text" width="540" height="198"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4&amp;gt; Then execute the class using the command:&lt;br&gt;
                java . &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ftj0q1kedr5rpvbceaw3y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ftj0q1kedr5rpvbceaw3y.png" alt="alt text" width="523" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and that's that. :)&lt;/p&gt;

</description>
      <category>java</category>
      <category>debug</category>
    </item>
    <item>
      <title>How to setup java in windows 10</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Fri, 15 Jan 2021 08:34:02 +0000</pubDate>
      <link>https://dev.to/phagunjain/how-to-setup-java-in-windows-10-59kc</link>
      <guid>https://dev.to/phagunjain/how-to-setup-java-in-windows-10-59kc</guid>
      <description>&lt;p&gt;Recently i was installing JDK on my system, and i did everything from downloading jdk, jre and setting environment variables but when i went to run java code with the command "java MyProg" Error occurred saying something like "JNI error check your installation and try again" so I went on some online research and below is what i found: --&amp;gt;&lt;/p&gt;

&lt;p&gt;JRE(JAVA Runtime Environment):it provides us with minimum stuff required for execution of java application/program, NOTE that it is helpful only in execution, We cannot compile or create byte code with it for that you need jdk.&lt;/p&gt;

&lt;p&gt;JDK(JAVA Development Kit): it provides us with everything we need for developing java applications/programs, using jdk we can create byte code as it contains javac&lt;br&gt;
during the online surfing I also came to know that for the versions of jdk older than jdk-11 we used to have JRE folder separately but in JDK-11 we don't need that as JRE is the part of JDK-11 &lt;a href="https://stackoverflow.com/questions/52584888/how-to-use-jdk-without-jre-in-java-11" rel="noopener noreferrer"&gt;link to source&lt;/a&gt; &lt;br&gt;
also before doing anything understand the need means, if you are a developer who writes code you need to have compiler, runtime environment and other stuff but if you are a client or just want to run certain application then only thing you require is JRE that's it &lt;a href="https://stackoverflow.com/questions/32988601/do-i-need-both-jdk-and-jre" rel="noopener noreferrer"&gt;source&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  so if you want to install jdk
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;goto &lt;a href="https://jdk.java.net/java-se-ri/11" rel="noopener noreferrer"&gt;this&lt;/a&gt; website.&lt;/li&gt;
&lt;li&gt;download the JDK&lt;/li&gt;
&lt;li&gt;unzip the folder in downloads&lt;/li&gt;
&lt;li&gt;setup the environment variable&lt;/li&gt;
&lt;li&gt;enjoy : )&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  &lt;a href="https://www.journaldev.com/476/java-windows-10-download-install" rel="noopener noreferrer"&gt;Here&lt;/a&gt; is the step-by-step guide.
&lt;/h1&gt;

&lt;p&gt;i struggled with this for two days so i thought it is worth sharing!&lt;/p&gt;

</description>
      <category>java</category>
    </item>
    <item>
      <title>New Path Taken!</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Sun, 15 Nov 2020 06:21:54 +0000</pubDate>
      <link>https://dev.to/phagunjain/new-path-taken-1n7i</link>
      <guid>https://dev.to/phagunjain/new-path-taken-1n7i</guid>
      <description>&lt;p&gt;I was trying to spare time for this challenge for long time but never made it, then i realized its now or never so, I'm publicly committing to the 100DaysOfCode Challenge starting today!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;will code for at least an hour every day for the next 100 days.&lt;/li&gt;
&lt;li&gt;will tweet about my progress every day -&amp;gt; using the hashtag #100DaysOfCode also post on dev for more accountability&lt;/li&gt;
&lt;li&gt;will push code to GitHub every day so that anyone can see my progress.&lt;/li&gt;
&lt;li&gt;will update the (Log)with the day's progress and provide a link so that others can see my progress.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>MY Hacktoberfest Experience</title>
      <dc:creator>PHAGUN JAIN</dc:creator>
      <pubDate>Thu, 29 Oct 2020 13:31:42 +0000</pubDate>
      <link>https://dev.to/phagunjain/my-hacktoberfest-experience-16pe</link>
      <guid>https://dev.to/phagunjain/my-hacktoberfest-experience-16pe</guid>
      <description>&lt;h3&gt;
  
  
  [My first ever Contribution]
&lt;/h3&gt;

&lt;p&gt;Hi Everyone! I am a 2nd-year student pursuing computer science, my name is Phagun, for about a year. I was struggling on how to get started with open source contributions, all I was doing is searching and more searching but could not find the right project, this hacktoberfest thingy helped me in making my first contribution as many beginners friendly projects came out in which I could contribute with my little experience.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Background
&lt;/h3&gt;

&lt;p&gt;I got to know about this event organized by @DigitalOcean around the 11th of October, I was not very positive about the event but registered myself anyway.&lt;/p&gt;

&lt;h3&gt;
  
  
  Progress
&lt;/h3&gt;

&lt;p&gt;I am not a hardcore coder but I know front-end quite well so I contributed to various front-end projects or minor c++ code patches.&lt;br&gt;
and I have finally completed this year's challenge, next time I will try to contribute to some major projects too&lt;/p&gt;

&lt;h3&gt;
  
  
  Reflections
&lt;/h3&gt;

&lt;p&gt;This was my first time participating in this event and it helped me a lot, I would love to do it again. &lt;/p&gt;

</description>
      <category>hacktoberfest</category>
    </item>
  </channel>
</rss>
