<?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[Stories by Bhavitha Thippanna on Medium]]></title>
        <description><![CDATA[Stories by Bhavitha Thippanna on Medium]]></description>
        <link>https://medium.com/@bhavitha.thippanna?source=rss-c8b643e1423d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*g4XBqxujIQM8faJN</url>
            <title>Stories by Bhavitha Thippanna on Medium</title>
            <link>https://medium.com/@bhavitha.thippanna?source=rss-c8b643e1423d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:10:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhavitha.thippanna/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How do LOD Expressions work in Tableau?]]></title>
            <link>https://medium.com/edureka/lod-expressions-work-in-tableau-c9b4eabf61cd?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9b4eabf61cd</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[expression]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Thu, 02 Dec 2021 11:13:10 GMT</pubDate>
            <atom:updated>2021-12-02T11:13:10.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*3htZ6-Xke_AiJnV0shZvVw.png" /></figure><p>The aim of any BI tool is to give <strong><em>Data Analysis</em></strong> a better flow. If one, as a professional, faces the difficulty of using the tool while solving a problem, the state of flow is broken. One common cause of this problem is the need to work with data that has been aggregated to different <strong><em>Level Of Detail in Tableau (LOD)</em></strong>.</p><p>Tableau placing on top of the pile for the 6th time in a Row, on Gartner’s Magic Quadrant, definitely says something about its demand in the market. This is probably the best time for the <a href="https://www.edureka.co/tableau-certification-training">Tableau certification course</a>.</p><p>This blog will help you understand LOD expressions and discuss the following topics:</p><ul><li><a href="https://www.edureka.co/blog/tableau-lod/#Why_do_you_need_Level_of_Detail_in_Tableau"><strong>Why do you need Level of Detail in Tableau?</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#What_is_Level_of_Detail_in_Tableau"><strong>What is Level of Detail in Tableau?</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#Row_Level_and_View_Level_Expressions"><strong>Row Level &amp; View Level Expressions</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#Types_of_LOD_Expressions"><strong>Types of LOD Expressions</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#Aggregation_and_LOD_Expressions"><strong>Aggregation and LOD Expressions</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#Filters_and_LOD_Expressions"><strong>Filters and LOD Expressions</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#Creating_LOD_Expressions"><strong>Creating LOD Expressions</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#Data_Sources_supporting_Level_Of_Detail_in_Tableau"><strong>Data Sources supporting Level Of Detail in Tableau</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#Table_Calculations_vs_LOD"><strong>Table Calculations vs Level Of Detail in Tableau</strong></a></li><li><a href="https://www.edureka.co/blog/tableau-lod/#Limitations_of_Level_Of_Detail_in_Tableau"><strong>Limitations of Level Of Detail in Tableau</strong></a></li></ul><h4>Tableau LOD: Why do you need LOD?</h4><p>There often are questions that one is bound to come across when analysing data. These questions are often simple to ask, but hard to answer. They often sound something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qI1NvJ4DOCBnwUAp.png" /></figure><p>To address these types of questions, a new syntax was introduced called <strong>Level of Detail </strong>in Tableau 9.0. This new syntax both simplified and extended Tableau’s calculation language by making it possible to address these questions directly.</p><h4>Tableau LOD: What is LOD?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*0n1ReINnMqRqFK75.png" /></figure><p><em>LOD Expressions represent an elegant and powerful way to answer questions involving multiple levels of granularity in a single visualization.</em></p><p>Level of Detail in Tableau or LOD expressions allow you to compute values at the data source level and the visualization level. However, LOD expressions give you even more control on the level of granularity you want to compute. They can be performed at a <em>more granular</em> level (INCLUDE Calculation), a <em>less granular</em> level (EXCLUDE Calculation), or an<em> entirely independent leve</em>l (FIXED Calculation).</p><h3>Tableau LOD: Row Level &amp; View Level Expressions</h3><h4>Row Level</h4><p>In Tableau, expressions referencing <strong>unaggregated</strong> data source columns are computed for each row in the underlying table. In this case, the dimensionality of the expression is <em>row level</em>. An example of a row-level expression is:</p><p>[Sales] / [Profit]</p><p>This calculation will be evaluated in each row of the database. The Sales value in each row will be divided by the Profit value in that row, producing a new column with the result of the multiplication (a profit ratio).</p><p>If you create a calculation with this definition, save it with the name [ProfitRatio], and then drag it from the Data pane to a shelf, Tableau shall typically aggregate the calculated field for the view:</p><p>SUM[ProfitRatio]</p><h4>View Level</h4><p>By contrast, expressions referencing <strong>aggregated</strong> data source columns are computed at the dimensionality defined by the dimensions in the view. In this case, the dimensionality of the expression is view level. An example of a view-level expression is:</p><p>SUM(Sales) / SUM(Profit)</p><p>If you drag this calculation to a shelf (or type it directly on a shelf as an ad-hoc calculation), Tableau encloses it in an <strong>AGG function</strong>:</p><p>AGG(SUM(Sales) / SUM(Profit))</p><p>This is what is known as an<strong> Aggregate Calculation</strong>.</p><h3>Tableau LOD: Aggregation and LOD Expressions</h3><h4>LOD Expression is Coarser Than View Level of Detail</h4><p>An expression has a coarser level of detail than the view when it references a <strong>subset of the dimensions</strong> in the view.</p><p>For example, for a view that contained the dimensions [Category] and [Segment], you could create a level of detail in Tableau that uses only one of these dimensions:</p><p>{FIXED [Segment] : SUM([Sales])}</p><p>In this case, the expression has a coarser level of detail than the view. It bases its values on one dimension ([Segment]), whereas the view is basing its view on two dimensions ([Segment] and [Category]).</p><p>The result is that using the level of detail expression in the view causes certain values to be replicated — that is, to <strong>appear multiple times</strong>.</p><h4>LOD Expression is Finer Than View Level of Detail</h4><p>An expression has a finer level of detail than the view when it references a <strong>superset of the dimensions</strong> in the view.</p><p>When you use such an expression in the view, Tableau will aggregate results up to the view level. For example, the following level of detail in Tableau references two dimensions:</p><p>{FIXED [Segment], [Category] : SUM([Sales])}</p><p>When this expression is used in a view that has only [Segment] as its level of detail, the values <em>must be aggregated</em>. Here’s what you would see if you dragged that expression to a shelf:</p><p>AVG([{FIXED [Segment]], [Category]] : SUM([Sales]])}])</p><p>An <strong>aggregation</strong>(in this case, average) is automatically assigned by Tableau. You can change the aggregation as needed.</p><h4>Adding an LOD Expression to the View</h4><p>Whether a Level Of Detail in Tableau expression is aggregated or replicated in the view is determined by the <strong>expression type</strong> and <strong>granularity</strong>.</p><ul><li>INCLUDE expressions will have either the same level of detail as the view or a finer level of detail than the view. Therefore, values will never be replicated.</li><li>FIXED expressions can have a finer level of detail than the view, a coarser level of detail, or the same level of detail. The need to aggregate the results of a FIXED level of detail depends on what dimensions are in the view.</li><li>EXCLUDE expressions always cause replicated values to appear in the view. When calculations including EXCLUDE level of detail expressions are placed on a shelf, Tableau defaults to the <strong>ATTR aggregation</strong> as opposed to SUM or AVG, to indicate that the expression is not actually being aggregated and that changing the aggregation will have no effect on the view.</li></ul><p>I hope this blog was informative and added value to your knowledge.</p><p>If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, Python, Ethical Hacking, then you can refer to<a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=tableau-lod/"> Edureka’s official site.</a></p><p>Do look out for other articles in this series which will explain the various other aspects of Tableau.</p><blockquote><em>1.</em><a href="https://medium.com/edureka/tableau-tutorial-37d2d6a9684b"><em>Tableau Tutorial</em></a></blockquote><blockquote><em>2. </em><a href="https://medium.com/edureka/tableau-dashboards-3e19dd713bc7"><em>Tableau Dashboard</em></a></blockquote><blockquote><em>3. </em><a href="https://medium.com/edureka/tableau-functions-ce794b10e588"><em>Tableau Functions</em></a></blockquote><blockquote><em>4. </em><a href="https://medium.com/edureka/tableau-charts-111758e2ea97"><em>Tableau Charts</em></a></blockquote><blockquote><em>5. </em><a href="https://medium.com/edureka/tableau-lod-2f650ca1503d"><em>LOD Expressions in Tableau</em></a></blockquote><blockquote><em>6. </em><a href="https://medium.com/edureka/tableau-tips-and-tricks-a18bf8991afc"><em>Tableau Tips and Tricks</em></a></blockquote><blockquote><em>7.</em><a href="https://medium.com/edureka/tableau-public-942228327953"><em>Step By Step Guide To Learn Tableau Public</em></a></blockquote><blockquote><em>8.</em><a href="https://medium.com/edureka/tableau-desktop-vs-tableau-public-vs-tableau-reader-fbb2a3aa0bac"><em> Tableau Desktop vs Tableau Public vs Tableau Reader</em></a></blockquote><blockquote><em>9. </em><a href="https://medium.com/edureka/parameters-in-tableau-ac552e6b0cde-ac552e6b0cde"><em>How to Create and Use Parameters in Tableau?</em></a></blockquote><blockquote><em>10. </em><a href="https://medium.com/edureka/sets-in-tableau-39befe9b7fa1"><em>What are Sets in Tableau And How To Create Them</em></a></blockquote><blockquote><em>11. </em><a href="https://medium.com/edureka/tableau-lod-2f650ca1503d"><em>Data-blending</em></a></blockquote><blockquote><em>12 . </em><a href="https://medium.com/edureka/donut-chart-in-tableau-a2e6fadf6534"><em>Donut Charts in Tableau</em></a></blockquote><blockquote><em>13.</em><a href="https://medium.com/edureka/tableau-interview-questions-and-answers-4f80523527d"><em>Top 50 Tableau Interview Questions You Must Prepare In 2020</em></a></blockquote><blockquote><em>14. </em><a href="https://medium.com/edureka/tableau-charts-111758e2ea97"><em>How And When To Use Different Tableau Charts</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/what-is-tableau/"><em>www.edureka.co</em></a><em> on September 20, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9b4eabf61cd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/lod-expressions-work-in-tableau-c9b4eabf61cd">How do LOD Expressions work in Tableau?</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Android Widgets: Custom Toast]]></title>
            <link>https://medium.com/edureka/how-to-create-android-widgets-custom-toast-8826bd6025a?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8826bd6025a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[widget]]></category>
            <category><![CDATA[program]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Mon, 22 Nov 2021 16:45:21 GMT</pubDate>
            <atom:updated>2021-11-22T16:45:21.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*MEdwLqZEWQpORGzj_EH4Zg.png" /></figure><p>In this article of “How to Create Android Widgets,” we will help you learn how you can customize a Toast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0B_s2TzoxlkJeA3i.jpg" /></figure><p><strong>Are you bored using the same Toast all the time?</strong></p><p>This article will tell you how to create your own Customized Toast. Cool isn’t it. ;)</p><p>Using Customized Toast, you can truly redefine the look of the toast. You can even put images in your toast. In the above image next to the text “No Internet Connection”, It&#39;s an image placed to make this toast look great. Changing the colour, size of the text is very easy. So Let’s begin!</p><h3>How to create Android Widgets:</h3><h4>Custom Toast :</h4><p>Create an XML file and drag all the android widgets inside it that you want to display in the Toast.</p><p>Important key points :</p><ul><li>The layout id is necessary because it will be used in the activity.</li><li>The width and height of the layout should be set as “match_parent” in order to cover the complete Toast.</li></ul><h3>Create an xml file named custom_toast.xml:</h3><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;LinearLayout xmlns:android=&quot;<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot; android:id=&quot;@+id/toast_custom&quot; android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;match_parent&quot; android:background=&quot;<a href="http://twitter.com/drawable/custom_textview">@drawable/custom_textview</a>&quot; &gt;<br> <br>    &lt;ImageView android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;match_parent&quot; android:layout_margin=&quot;4dp&quot; android:contentDescription=&quot;<a href="http://twitter.com/string/android">@string/android</a>&quot; android:src=&quot;<a href="http://twitter.com/drawable/img2">@drawable/img2</a>&quot; /&gt;<br> <br>    &lt;TextView android:id=&quot;@+id/tvtoast&quot; android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;match_parent&quot; android:paddingRight=&quot;6dp&quot; android:paddingTop=&quot;6dp&quot; /&gt;<br> <br>&lt;/LinearLayout&gt;</pre><p>Creating another XML file that sets the appearance of the text view which will be used as background in the above layout. This file should be placed in drawable folder.</p><h3>Create another xml file named custom_textview.xml:</h3><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;shape xmlns:android=&quot;<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot; android:shape=&quot;rectangle&quot; &gt;<br> <br>    &lt;solid android:color=&quot;#98E8F9&quot; /&gt;<br> <br>    &lt;stroke android:width=&quot;1dip&quot; android:color=&quot;#4fa5d5&quot; /&gt;<br> <br>    &lt;corners android:radius=&quot;4dp&quot; /&gt;<br> <br>&lt;/shape&gt;</pre><h3>Within the onCreate() method :</h3><p>The custom layout that we created is inflated inside this method and using it we can create our customized Toast.</p><pre>// Inflating the layout for the toast<br>LayoutInflater inflater = getLayoutInflater();<br>View layout = inflater.inflate(R.layout.custom_toast,<br>        (ViewGroup) findViewById(R.id.toast_custom));<br> <br>// Typecasting and finding the view in the inflated layout<br>TextView text = (TextView) layout.findViewById(R.id.tvtoast);<br> <br>// Setting the text to be displayed in the Toast<br>text.setText(&quot;No internet connection&quot;);<br> <br>// Setting the color of the Text to be displayed in the toast<br>text.setTextColor(Color.rgb(0, 132, 219));<br> <br>// Creating the Toast<br>Toast toast = new Toast(getApplicationContext());<br> <br>// Setting the position of the Toast to centre<br>toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);<br> <br>// Setting the duration of the Toast<br>toast.setDuration(Toast.LENGTH_LONG);<br> <br>// Setting the Inflated Layout to the Toast<br>toast.setView(layout);<br> <br>// Showing the Toast<br>toast.show();</pre><p>[dl url=”#” class=’eModal eModal-11′ title=”Download Code” desc=”” type=”” align=”” for=”download”]</p><p>We hope, this Android Adapter tutorial was useful to you! Stay tuned for more tutorials in Android! Happy Learning!</p><p>If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, Python, Ethical Hacking, then you can refer to<a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=what-are-adapters-in-android/"> Edureka’s official site.</a></p><p>Do look out for other articles in this series that will explain the various other aspects of Android.</p><blockquote><a href="https://medium.com/edureka/kotlin-android-tutorial-cea896d0ae18"><em>How to Develop Android App using Kotlin?</em></a></blockquote><blockquote><a href="https://medium.com/edureka/basic-kotlin-native-app-a22febf0f6d7"><em>How to work with Kotlin Native?</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/android-tutorial-custom-toast/"><em>https://www.edureka.co</em></a><em> on </em>Oct 25,2020</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8826bd6025a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/how-to-create-android-widgets-custom-toast-8826bd6025a">How to Create Android Widgets: Custom Toast</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Run Hive Scripts?]]></title>
            <link>https://medium.com/edureka/how-to-run-hive-scripts-53b052501e92?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/53b052501e92</guid>
            <category><![CDATA[hive]]></category>
            <category><![CDATA[big-data-analytics]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[script]]></category>
            <category><![CDATA[hadoop]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Wed, 17 Nov 2021 12:08:48 GMT</pubDate>
            <atom:updated>2021-11-17T12:08:48.779Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*fYqzGQDxiUEfeT1_swc_TA.png" /></figure><p>Being a Data Warehousing package built on top of Hadoop, Apache Hive is increasingly getting used for data analysis, data mining and predictive modeling. Organizations are looking for professionals with a firm hold on <strong><em>Hive &amp; Hadoop skills</em></strong>.</p><p>In this post, let’s look at how to run Hive Scripts. In general, we use scripts to execute a set of statements at once. Hive Scripts are used pretty much in the same way. It will reduce the time and effort we put on into writing and executing each command manually.</p><p>Hive Scripts are supported in the Hive 0.10.0 and above versions. As Hive 0.90 version is installed in CDH3, we cannot run Hive Scripts in CDH3. You can try the below steps in CDH4 as it has Hive 0.10.0 version installed in them. Are you aware of how to create a Hive script? If not, click here to gain more clarification.</p><p>Now, let us see how to write the scripts in Hive and run them in CDH4:</p><h3>Step 1: Writing a Hive script.</h3><p>To write the Hive Script the file should be saved with .sql extension. Open a terminal in your Cloudera CDH4 distribution and give the following command to create a Hive Script.<br><strong>Command:</strong> sudo gedit sample.sql</p><p>On executing the above command, it will open the file with the list of all the Hive commands that need to be executed.</p><p>In this script, a table will be created, described and data will be loaded and retrieved from the table.</p><p><strong>1. Creating the Table in Hive:</strong></p><p><em>Command:</em> create table product ( productid: int, productname: string, price: float, category: string) rows format delimited fields terminated by ‘,’ ;</p><p>Here, product is the table name and { productid, productname, price, category} are the columns of this table.</p><p>Fields terminated by ‘,’ indicate that the columns in the input file are separated by the symbol ‘,’.</p><p>By default, the records in the input file are separated by a new line.</p><p><strong>2. Describing the Table:</strong></p><p><em>Command:</em> describe product;</p><h4>3. Loading the Data into the Table.</h4><p>To load the data into the table first we need to create an input file which contains the records that need to be inserted in the table.</p><p>Let us create an input file.</p><p><em>Command:</em> sudo gedit input.txt</p><p>Edit the contents in the file as shown in the figure.</p><p><strong>4. Retrieving the Data:</strong></p><p>To retrieve the data, the select command is used.</p><p><em>Command:</em> Select * from product;</p><p>The above command is used to retrieve the value of all the columns present in the table. The script should be like as it is shown in the below image.</p><h3>Step 2: Running the Hive Script</h3><p>The following is the command to run the Hive script:</p><p><em>Command:</em> hive –f /home/cloudera/sample.sql</p><p>While executing the script, make sure that the entire path of the location of the Script file is present.</p><p>We can see that all the commands are executed successfully.</p><p>This is how Hive scripts are run and executed in CDH4.</p><p>Hive is a critical component of Hadoop and your expertise in Hive can land you top-paying Hadoop jobs! Edureka has a specially curated Hadoop course that helps you master concepts such as MapReduce, Yarn, Pig, Hive, HBase, Oozie, Flume and Sqoop. Click on the button below to get started.</p><p>If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, Python, Ethical Hacking, then you can refer to <a href="https://www.edureka.co/blog?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=how-to-run-hive-scripts">Edureka’s official site.</a></p><p>Do look out for other articles in this series that will explain the various other aspects of Big data.</p><blockquote><em>1.</em><a href="https://medium.com/edureka/hadoop-tutorial-24c48fbf62f6"><em>Hadoop Tutorial</em></a></blockquote><blockquote><em>2.</em><a href="https://medium.com/edureka/hive-tutorial-b980dfaae765"><em>Hive Tutorial</em></a></blockquote><blockquote><em>3.</em><a href="https://medium.com/edureka/pig-tutorial-2baab2f0a5b0"><em>Pig Tutorial</em></a></blockquote><blockquote><em>4.</em><a href="https://medium.com/edureka/mapreduce-tutorial-3d9535ddbe7c"><em>Map Reduce Tutorial</em></a></blockquote><blockquote><em>5.</em><a href="https://medium.com/edureka/hbase-tutorial-bdc36ab32dc0"><em>HBase Tutorial</em></a></blockquote><blockquote><em>6.</em><a href="https://medium.com/edureka/hdfs-tutorial-f8c4af1c8fde"><em>HDFS Tutorial</em></a></blockquote><blockquote><em>7.</em><a href="https://medium.com/edureka/hadoop-3-35e7fec607a"><em>Hadoop 3</em></a></blockquote><blockquote><em>8.</em><a href="https://medium.com/edureka/apache-sqoop-tutorial-431ed0af69ee"><em>Sqoop tutorial</em></a></blockquote><blockquote><em>9.</em><a href="https://medium.com/edureka/apache-flume-tutorial-6f7150210c76"><em>Flume tutorial</em></a></blockquote><blockquote><em>10.</em><a href="https://medium.com/edureka/apache-oozie-tutorial-d8f7bbbe1591"><em>Oozie tutorial</em></a></blockquote><blockquote><em>11.</em><a href="https://medium.com/edureka/hadoop-ecosystem-2a5fb6740177"><em>Hadoop ecosystem</em></a></blockquote><blockquote><em>12.</em><a href="https://medium.com/edureka/hive-commands-b70045a5693a"><em>Top Hive Commands with Examples in HQL</em></a></blockquote><blockquote><em>13.</em><a href="https://medium.com/edureka/create-hadoop-cluster-with-amazon-emr-f4ce8de30fd"><em>Hadoop Cluster With Amazon EMR?</em></a></blockquote><blockquote><em>14.</em><a href="https://medium.com/edureka/big-data-engineer-resume-7bc165fc8d9d"><em>Big Data Engineer Resume</em></a></blockquote><blockquote><em>15.</em><a href="https://medium.com/edureka/hadoop-developer-cc3afc54962c"><em>Hadoop Developer- Job Trends and Salary</em></a></blockquote><blockquote><em>16.</em><a href="https://medium.com/edureka/big-data-tutorial-b664da0bb0c8"><em>Big Data Tutorial</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/kafka-streams/"><em>https://www.edureka.co</em></a><em> on April 30, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53b052501e92" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/how-to-run-hive-scripts-53b052501e92">How to Run Hive Scripts?</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS S3 Tutorial: Deep Dive into Amazon Simple Storage Service]]></title>
            <link>https://medium.com/edureka/aws-s3-tutorial-d883e5cc2cf5?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d883e5cc2cf5</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Fri, 29 Oct 2021 14:07:37 GMT</pubDate>
            <atom:updated>2021-10-29T14:07:37.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*JH4j8fUOCcFABZFIPm6ZJQ.png" /></figure><p>The AWS S3 tutorial will give you a clear understanding of the services along with some examples to which you can connect to.</p><p>The need for <strong>storage</strong> is increasing every day, so building and maintaining your own repositories, therefore, becomes a tedious and tiresome job because knowing the amount of capacity you may need in the future is difficult to predict. You may either over-utilize it leading to an application failure because of not having sufficient space or you may end up buying stacks of storage which will then be under-utilized.</p><p>Keeping all these hassles in mind, Amazon came up with an internet storage service called <em>AWS S3. </em>We will take you through this service in this AWS S3 tutorial blog.</p><h3>What is AWS S3?</h3><p>Amazon Simple Storage Service (S3) is a storage for the internet. It is designed for large-capacity, low-cost storage provision across multiple geographical regions. Amazon S3 provides developers and IT teams with <strong>Secure</strong>, <strong>Durable</strong> and <strong>Highly Scalable </strong>object storage.</p><p>S3 is <strong>Secure</strong> because AWS provides:</p><ul><li>Encryption to the data that you store. It can happen in two ways:</li><li>Client Side Encryption</li><li>Server Side Encryption</li><li>Multiple copies are maintained to enable regeneration of data in case of data corruption</li><li><em>Versioning,</em> wherein each edit is archived for a potential retrieval.</li></ul><p>S3 is <strong>Durable</strong> because:</p><ul><li>It regularly verifies the integrity of data stored using checksums e.g. if S3 detects there is any corruption in data, it is immediately repaired with the help of replicated data.</li><li>Even while storing or retrieving data, it checks incoming network traffic for any corrupted data packets.</li></ul><p>S3 is <strong>Highly Scalable</strong>, since it automatically scales your storage according to your requirement and you only pay for the storage you use.</p><p><em>The next question which comes to our mind is,</em></p><p><strong>What kind and how much of data one can store in AWS S3?</strong></p><p>You can store virtually any kind of data, in any format, in S3 and when we talk about capacity, the volume and the number of objects that we can store in S3 are unlimited.</p><p>*<em>An object</em> is the fundamental entity in S3. It consists of data, key and metadata.</p><p>When we talk about data, it can be of two types-</p><ul><li>Data which is to be accessed frequently.</li><li>Data which is accessed not that frequently.</li></ul><p>Therefore, Amazon came up with 3 storage classes to provide its customers the best experience and at an affordable cost.</p><p><strong>Let’s understand the 3 storage classes with a “health-care” use case:</strong></p><p><em>1.Amazon S3 Standard</em> for frequent data access</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/0*c2jQIKvFCs4jMhNh.png" /></figure><p>This is suitable for performance sensitive use cases where the latency should be kept low. e.g. in a hospital, frequently accessed data will be the data of admitted patients, which should be retrieved quickly.</p><p><em>2. Amazon S3 Standard</em> for infrequent data access</p><p>This is suitable for use cases where the data is long lived and less frequently accessed, i.e for data archival but still expects high performance. e.g. in the same hospital, people who have been discharged, their records/data will not be needed on a daily basis, but if they return with any complication, their discharge summary should be retrieved quickly.</p><p><em>3.Amazon Glacier</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/0*euiup4KT6C9gt5Bg.png" /></figure><p>Suitable for use cases where the data is to be archived, and high performance is not required, it has a lower cost than the other two services.e.g. in the hospital, patients’ test reports, prescriptions, MRI, X Ray, Scan docs etc. that are older than a year will not be needed in the daily run and even if it is required, lower latency is not needed.</p><p><strong>Specification Snapshot: </strong>Storage Classes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/0*guicbEhhXxa1ivl9.png" /></figure><h3>How is data organized in S3?</h3><p>Data in S3 is organized in the form of buckets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*cAp80-N675mydX7D.png" /></figure><ul><li>A Bucket is a logical unit of storage in S3.</li><li>A Bucket contains objects which contain the data and metadata.</li></ul><p>Before adding any data in S3 the user has to create a bucket which will be used to store objects.</p><h3>Where is your data stored geographically?</h3><p>You can self-choose where or in which region your data should be stored. Making a decision for the region is important and therefore it should be planned well.</p><p>These are the 4 parameters to choose the optimal region –</p><ul><li>Pricing</li><li>User/Customer Location</li><li>Latency</li><li>Service Availability</li></ul><p><strong>Let’s understand this through an example:</strong></p><p><em>Suppose there is a company which has to launch these storage instances to host a website for the customers in the US and India.</em></p><p><em>To provide the best experience, the company has to choose a region, which best fits its requirements.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*vf0uQyWX70vNN6op0YnnHw.png" /></figure><p>Now looking at the above parameters, we can clearly identify, that N Virginia will be the best region for this company because of the low latency and low price. Irrespective of your location, you can select any region which might suit your requirements, since you can access your S3 buckets from anywhere.</p><p>Talking about regions, let’s see about the possibility of having a backup in some other availability region or you may want to move your data to some other region. Thankfully, this feature has been recently added to the AWS S3 system and is pretty easy to use.</p><h3>Cross-region Replication</h3><p>As the name suggests, Cross-region Replication<strong> </strong>enables user to either replicate or transfer data to some other location without any hassle.</p><p>This obviously has a cost to it which has been discussed further in this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/0*1xmSGIBWak3sfv-s.png" /></figure><p><strong>How is the data transferred?</strong></p><p>Besides traditional transfer practices that is over the internet, AWS has 2 more ways to provide data transfer securely and at a faster rate:</p><ul><li>Transfer Acceleration</li><li>Snowball</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/0*pBsIN87CIGWzEbMo.png" /></figure><p><strong>Transfer Acceleration</strong> enables fast, easy and secure transfers over long distances by exploiting Amazon’s Cloud Front edge technology.</p><p><strong>Cloud Front</strong> is a caching service by AWS, in which the data from client site gets transferred to the nearest edge location and from there the data is routed to your AWS S3 bucket over an optimized network path.</p><p>The<strong> Snowball</strong> is a way of transferring your data physically. In this Amazon sends an equipment to your premises, on which you can load the data. It has a kindle attached to it which has your shipping address when it is shipped from Amazon. When data transfer is complete on the Snowball,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/0*GnJ3Maon9_6WqIL-.png" /></figure><p>kindle changes the shipping address back to the AWS headquarters where the Snowball has to be sent.</p><p>The Snowball is ideal for customers who have large batches of data move. The average turnaround time for Snowball is 5–7 days, in the same time Transfer Acceleration can transfer up to 75 TB of data on a dedicated 1Gbps line. So depending on the use case, a customer can decide.</p><p>Obviously, there will be some cost around it, let’s look at the overall costing around S3.</p><h3>Pricing</h3><p><strong>“Isn’t anything free on AWS?”</strong></p><p><strong><em>Yes!</em></strong> As a part of the AWS Free Usage Tier, you can get started with AWS S3 for free. Upon sign up, new AWS customers receive 5 GB of Amazon S3 standard storage, 20,000 Get-Requests, 2,000 Put-Requests, and 15GB of data transfer-out each month for one year.</p><p>Over this limit, there is a cost attached, let’s understand how amazon charges you:</p><h3>How is S3 billed?</h3><p>Though having so many features, AWS S3 is affordable and flexible in its costing. It works on <strong>Pay Per Use,</strong> meaning, you only pay what you use. The table below is an example for pricing of S3 for a specific region:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/0*sBtce4Ke8iuEmdlU.png" /></figure><p><strong>Source: aws.amazon.com for North Virginia region</strong></p><p><strong>Cross Region Replication</strong> is billed in the following way:</p><p>If you replicate 1,000 1 GB objects (1,000 GB) between regions you will incur a request charge of $0.005 (1,000 requests x $0.005 per 1,000 requests) for replicating 1,000 objects and a charge of $20 ($0.020 per GB transferred x 1,000 GB) for inter-region data transfer. After replication, the 1,000 GB will incur storage charges based on the destination region.</p><p><strong>Snowball,</strong> there are 2 variants:</p><ul><li>Snowball 50 TB : 200$</li><li>Snowball 80 TB: 250$</li></ul><p>This is the fixed service fee that they charge.</p><p>Apart from this there are on-site, charges which are exclusive of shipping days, the shipping days are free.</p><p>The first 10 on-site days are also free, meaning when the Snowball reaches your premises from then, till the day it is shipped back, they are the on-site days. The day it arrives, and the day it is shipped gets counted as shipping days, therefore are free.</p><p><strong>Transfer Acceleration </strong>pricing is shown in the following table:</p><p><strong>AWS S3 Use case: 1</strong></p><p>Industry “Media”</p><p>Let’s understand it through a real time use case to assimilate all what we have learnt so far:<em> IMDb Internet Movie Database</em> is a famous online database of information related to films, television programs and video games.</p><p>Let’s see how they exploit the AWS services:</p><ul><li>To get the lowest possible latency, all possible results for a search are pre-calculated with a document for every combination of letters in search. Each document is pushed to Amazon Simple Storage Service (S3) and thereby to <strong>Amazon Cloud Front</strong>, putting the documents physically close to the users. The theoretical number of possible searches to calculate is mind-boggling — a 20-character search has 23 x 1030 combinations</li><li>But in practice, using IMDb’s authority on movie and celebrity data can reduce the search space to about 150,000 documents, which Amazon S3 and <strong>Amazon Cloud Front</strong> can distribute in just a few hours.</li></ul><h3>AWS S3 Use case: 2</h3><p><strong>Project Statement — </strong>Hosting a Static Website on Amazon S3</p><p>Let’s first understand: What is a static website?</p><p>In short, it’s a website comprised of only HTML, CSS, and/or JavaScript. That means server-side scripts aren’t supported, so if you want to host a Rails or PHP app, you’ll need to look elsewhere.</p><p>For simpler purposes, welcome to the wonderful world of hosting websites on AWS S3!</p><p><strong>Step 1: Create a bucket</strong></p><p>To create a bucket, navigate to S3 in the AWS Management Console and hit Create Bucket. You’ll be prompted to enter a name and a region.</p><p>If you plan on using your own domain/sub-domain, use that for your bucket name. For the region, pick the one closest to you and hit Create. With any luck, you’ll see your new bucket appear in the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/0*gQ7WTzaFdmYXsezt.png" /></figure><p><strong>Step 2: Verify the Created Bucket</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/0*M8mjO7cfVRLOZYi5.png" /></figure><p><strong>Step3: Enable Website Hosting</strong></p><p>The only thing now left to do is, to enable Static Website Hosting. Just select it from the properties panel on the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*45up1ZWIRgZrIJh1.png" /></figure><p><strong>Step 4: Create a Html File</strong></p><p>Make sure you set the Index Document to index.html. You can also set an error page if you want. When you’re done, hit Save.</p><p>One nice thing about the AWS Management Console is that you can upload files to your bucket right from your browser. Let’s start by creating one called <strong>index.html</strong>. This will be the contents of the home page:</p><pre>&lt;!doctype html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;<br>Hello, S3!<br>&lt;/title&gt;<br>&lt;meta name=&quot;description&quot; content=&quot;My first S3 website&quot;&gt;<br>&lt;meta charset=&quot;utf-8&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;h2&gt;My first S3 website&lt;/h2&gt;<br>&lt;p&gt;I can&#39;t believe it was that easy!&lt;/p&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>Step 5: Upload the File in a Bucket</strong></p><p>To upload the file, select your new bucket and hit Start Upload button.</p><p>Once you’ve uploaded index.html, it will appear in your bucket. However, you won’t be able to see it in your browser yet because everything in AWS S3 is private by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/0*Mu8z7KLXmMRSEssl.png" /></figure><p><strong>Step 6: Make the Html File Public</strong></p><p>i) To make index.html file public, right-click on index.html and select Make Public. (Remember to do this for any other files you upload to your website!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*NcYOA3l0q1nZU2A2.png" /></figure><p>Now that your homepage is visible to the world, it’s time to test everything out!</p><p>ii) Now, select index.html in the console and go to the Properties tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/0*LCQmvXUGS0EHpiXa.png" /></figure><p><strong>Step 7: Final Step to Verify the Result</strong></p><p>Clicking the link will take you to your new homepage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*yrdSG9XURbyLHQse.png" /></figure><p><strong>Congratulations! </strong>You have just hosted an html website in AWS using S3.</p><p>Here’s a short AWS S3 tutorial Video that explains: Traditional Storage Tiers, Disadvantages of Traditional Storage over Cloud, AWS storage options: EBS, S3, Glacier, AWS Connecting Storage: Snowball &amp; Storage Gateway, AWS Command Line Interface (CLI), Demo etc. The AWS S3 tutorial is very important service for those who want to become AWS Certified Solutions Architect. I hope you have enjoyed the deep dive into this AWS S3 tutorial. It is one of the most sought-after skillsets that recruiters look for in an AWS Solution Architect Professional. If you wish to check out more articles on the market’s most trending technologies like Python, DevOps, Ethical Hacking, then you can refer to <a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=s3-aws-amazon-simple-storage-service">Edureka’s official site.</a></p><p>Do look out for other articles in this series that will explain the various other aspects of Azure.</p><blockquote><em>1. </em><a href="https://medium.com/edureka/azure-tutorial-5a97e30ee9a7"><em>Azure Tutorial</em></a></blockquote><blockquote><em>2. </em><a href="https://medium.com/edureka/azure-portal-all-you-need-to-know-about-the-azure-console-8ade1effa474"><em>Azure Portal</em></a></blockquote><blockquote><em>3. </em><a href="https://medium.com/edureka/azure-storage-tutorial-an-introduction-to-azure-storage-dae8fd8f555c"><em>Azure Storage Tutorial</em></a></blockquote><blockquote><em>4. </em><a href="https://medium.com/edureka/azure-virtual-network-securing-your-applications-using-vpc-744eba3aa5b1"><em>Azure Private Network</em></a></blockquote><blockquote><em>5. </em><a href="https://medium.com/edureka/azure-devops-cf755fb334ae"><em>Azure DevOps Tutorial</em></a></blockquote><blockquote><em>6. </em><a href="https://medium.com/edureka/azure-boards-ce093b2688bb"><em>Azure Boards</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/how-to-become-a-cloud-engineer/"><em>https://www.edureka.co</em></a><em> on June 18, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d883e5cc2cf5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/aws-s3-tutorial-d883e5cc2cf5">AWS S3 Tutorial: Deep Dive into Amazon Simple Storage Service</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is VLOOKUP in Excel and How to use it?]]></title>
            <link>https://medium.com/edureka/vlookup-in-excel-and-how-to-use-it-dd44c18e8c0f?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd44c18e8c0f</guid>
            <category><![CDATA[excel-vlookup]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[microsoft-excel]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[vlookup]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Mon, 18 Nov 2019 05:29:08 GMT</pubDate>
            <atom:updated>2021-09-15T11:50:07.876Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*RU3ArjP2XYn1VCDvVjIfxA.jpeg" /></figure><p>In this data-driven world, one needs various tools in order to manage data. Data in real-time is huge and fetching details regarding some particular piece of data would definitely be a tiring task but with VLOOKUP in Excel, this task can be achieved with a single line of command. In this article, you will be learning about one of the important Excel functions i.e the VLOOKUP Function.</p><p>Before moving on, let’s take a quick look at all the topics that are discussed over here:</p><ul><li>What is VLOOKUP in Excel?</li><li>How does it work?</li><li>Exact Match</li><li>Approximate Match</li><li>First Match</li><li>Case Sensitivity</li><li>Errors</li><li>#NAME</li><li>#N/ A</li><li>#REF</li><li>#VALUE</li><li>Two-way Lookup</li><li>Using Wildcards</li><li>Multiple Lookup tables</li></ul><h3>What is VLOOKUP in Excel?</h3><p>In Excel, VLOOKUP is a built-in function that is used to lookup and fetch specific data from an excel sheet. V stands for Vertical and in order to use the VLOOKUP function in Excel, the data must be arranged vertically. This function comes in very handy when you have a huge amount of data and would be practically impossible to manually search for some specific data.</p><h3>How does it work?</h3><p>The VLOOKUP function takes a value i.e the lookup value and starts to search for it in the leftmost column. When the first occurrence of the lookup value is found, it starts to move right in that row and returns a value from the column that you specify. This function can be used to return both exact as well as approximate matches (The default match is an approximate match).</p><h4>Syntax:</h4><p>The syntax of this function is as follows:</p><p><em>VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])</em></p><p>where,</p><ul><li><strong>lookup_value</strong> is the value to be looked out for in the first column of the given table</li><li><strong>table_index </strong>is the table from which the data is to be fetched</li><li><strong>col_index_num</strong> is the column from which the value is to be fetched</li><li><strong>range_lookup </strong>is a logical value that determines if the lookup value should be a perfect match or an approximate match (<strong>TRUE </strong>will find the closest match; <strong>FALSE</strong> checks for exact match)</li></ul><h3>Exact Match:</h3><p>When you want the VLOOKUP function to look for an exact match of the lookup value, you will have to set the <em>range_lookup</em> value to FALSE. Take a look at the following example which is a table consisting of employee details:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/0*CygsgNWYT7qAh0ki.png" /></figure><p>In case you want to look for the designation of any of these employees, you can do as follows:</p><ul><li>Select the cell where you want to display the output and then type a “=” sign</li><li>Use the VLOOKUP function and supply the <strong>lookup_value </strong>(Here, it will be the employee ID)</li><li>Then pass in the other parameters i.e the <strong>table_array</strong>, <strong>col_index_num</strong> and set the <strong>range_lookup</strong> value to FALSE</li><li>Therefore, the function and its parameters will be: =VLOOKUP(104, A1: D8, 3, FALSE)</li></ul><p>The VLOOKUP function starts to look for the employee ID 104 and then moves towards the right in the row where the value is found. It goes on till the col_index_num and returns the value present at that position.</p><h3>Approximate Match:</h3><p>This feature of the VLOOKUP function allows you to retrieve values even when you do not have an exact match for the loopup_value. As mentioned earlier, in order to make VLOOKUP look for an approximate match, you will need to set <em>range_lookup </em>value to TRUE. Take a look at the following example where the marks are mapped along with their grades and the class to which they belong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/0*I8XhWxHvFPEAY_z_.png" /></figure><ul><li>Just like how you did for an exact match, follow the same steps</li><li>In place of the range_lookup value, use TRUE instead of FALSE</li><li>Therefore, the function along with its parameters will be: =VLOOKUP(55, A12: C15, 3, TRUE)</li></ul><p>In a table that is sorted in the ascending order, VLOOKUP starts to look for an approximate match and stops at the next largest value that is smaller than the lookup value that you have entered. It then moves right in that row and returns the value from the specified column. In the above example, the lookup value is 55 and the next largest lookup value in the first column is 40. Therefore, the output is Second Class.</p><h3>First Match:</h3><p>In case you have a table that consists of multiple lookup values, VLOOKUP stops at the first match of it and retrieves a value from that row in the specified column.</p><p>Take a look at the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/0*rXPcVZr8xQf9xXiT.png" /></figure><p>The ID 105 is repeated and when the lookup value is specified as 105, VLOOKUP has returned the value from the row that has the first occurrence of the lookup value.</p><h3>Case Sensitivity:</h3><p>VLOOKUP function is case insensitive. In case you have a lookup value that in the upper case and the value present in the table is small, VLOOKUP will still fetch the value from the row in which the value is present. Take a look at the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/0*IiQpvgcJ3BVmBl9R.png" /></figure><p>As you can see, the value that I have specified as a parameter is “RAFA” whereas the value present in the table is “Rafa” but VLOOKUP has still returned the specified value. If you have an exact match even with the case, VLOOKUP will still return the first match of the lookup value irrespective of the case used. Take a look at the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/0*tubfhxn7azSyjJAQ.png" /></figure><h3>Errors:</h3><p>It is natural to encounter errors whenever we make use of functions. Similarly, you can encounter errors when using VLOOKUP function as well and some of the common errors are:</p><ul><li>#NAME</li><li>#N/A</li><li>#REF</li><li>#VALUE</li></ul><h4>#NAME Error:</h4><p>This error basically is to inform you that you have made some mistakes in the syntax. To avoid syntactical errors, it’s better to use the Function Wizard provided by Excel for every function. The Function Wizard helps you with information regarding every parameter and the type of values that you need to enter. Take a look at the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/0*Su4UB_TdzWgVRGwS.png" /></figure><p>As you can see, the Function Wizard informs you to enter any type of value in place of the lookup_value parameter and also gives a brief description of the same. Similarly, when you select the other parameters, you will see information regarding them as well.</p><h4>#N/A Error:</h4><p>This error is returned in case no match is found for the given lookup value. For example, if I enter “AFA” instead of “RAFA”, I will get #N/A error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/0*tl2bn1h2dd-9mo5K.png" /></figure><p>In order to define some error messages for the above two errors, you can make use of the IFNA function. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/0*UKRiPZIz1yRKlDuv.png" /></figure><h4>#REF Error:</h4><p>This error is encountered when you give reference to a column that is not available in the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/0*sn50xpxfKNT-n_z-.png" /></figure><h4>#VALUE Error:</h4><p>This error is encountered when you place wrong values to the parameters or miss some compulsory parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/0*86Um1cLUhgEkbj8s.png" /></figure><h3>Two-way Lookup:</h3><p>Two-way lookup refers to fetching a value from a two-dimensional table from any cell of the referenced table. In order to perform a two-way lookup using VLOOKUP, you will need to use the MATCH function along with it.</p><p>The syntax of MATCH is as follows:</p><p><em>MATCH(lookup_value, lookup_array, match_type)</em></p><ul><li><strong>lookup_value</strong> is the value that is to be searched for</li><li><strong>lookup_array</strong> is the range of cells that consist of the lookup values</li><li><strong>match_type </strong>can be a number i.e either 0, 1 or -1 representing exact match, less than and greater than respectively</li></ul><p>Instead of using hardcoded values with VLOOKUP, you can make it dynamic bypassing the cell references. Consider the following example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/0*KMvHZSz2qvpCg0-m.png" /></figure><p>As you can see in the image above, the VLOOKUP function takes in the cell reference as F6 for the lookup value and the column index value is determined by the MATCH function. When you make changes to any of these values, the output also will change accordingly. Take a look at the image below where I have changed the value present in F6 from Chris to Leo and the output also has been updated accordingly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*_26NAXM7m6cyXJHA.png" /></figure><p>In case I change the value of G5, or both F6 and G5, this formula will work accordingly displaying the corresponding results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/0*8lFbfz9HHiM3Jafo.png" /></figure><p>You can also create drop-down lists to make the task of changing the values very handy. In the above example, this should be done to F6 and G5. Here is how you can create drop-down lists:</p><ul><li>Select Data from the ribbon tab</li><li>From the Data Tools group, select Data Validation</li><li>Open the Settings pane and from Allow, select List</li><li>Specify the source list array</li></ul><p>Here is how it looks once you have created a drop-down list:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*cP2AjQxqCx1OsH2W.png" /></figure><h3>Using Wildcards:</h3><p>In case you do not know the exact lookup value but only a part of it, you can make use of wildcards. In Excel, the “*” symbol represents a wildcard character. This symbol informs Excel that the sequence that comes before, after or between must be searched and there can be any number of characters before or after them. For example, in the table that I have created, if enter “erg” along with wild cards on either side, VLOOKUP will return the output for “Sergio” as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*3Yzta9T-hqBX6Dqg.png" /></figure><h3>Multiple Lookup tables:</h3><p>In case you have multiple lookup tables, you can use the IF function along with it in order to look into either of the tables based on some given condition. For example, if there is a table holding data of two supermarkets and you need to find out the profit made by each of them based on the sales, you can do as follows:</p><p>Create the main table as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/0*7vkgi9Y4naf0IH0Y.png" /></figure><p>Then create the two tables from which the profit has to be fetched.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/0*xgxl4MJYa9LW4mBh.png" /></figure><p>Once this is done, create a Named range for each of the newly created tables. To create a named range, follow the steps given below:</p><ul><li>Select the table the entire table to which you want to assign a name</li><li>From the ribbon tab, select Formulas and then from the Defined Names group, select Define Name</li><li>You will see the following dialogue box</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/0*tBLiqgLloIHHOH1B.png" /></figure><ul><li>Give any name of your choice</li><li>Click OK</li></ul><p>Once this is done for both the tables, you can use these named ranges in the IF function as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/0*_raKz4afdm3zLA0p.png" /></figure><p>As you can see, VLOOKUP has returned the appropriate values to fill the Profit column according to which supermarket they belong to. Instead of writing the formula in each cell of the Profit column, I have just copied the formula in order to save time and energy.</p><p>This brings us to the end of this article on VLOOKUP in Excel. I hope you are clear with all that has been shared with you. <strong><em>Make sure you practice as much as possible and revert your experience. </em></strong>If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, DevOps, Ethical Hacking, then you can refer to <a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=excel-vlookup-function">Edureka’s official site.</a></p><p>Do look out for other articles in this series that will explain the various other aspects of Excel.</p><blockquote><em>1. </em><a href="https://medium.com/edureka/data-visualization-using-excel-724b96a8f85e"><em>Data Visualization Using Excel</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/excel-vlookup-function/"><em>https://www.edureka.co</em></a><em> on November 18, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd44c18e8c0f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/vlookup-in-excel-and-how-to-use-it-dd44c18e8c0f">What is VLOOKUP in Excel and How to use it?</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Java is a Secure language?]]></title>
            <link>https://medium.com/edureka/why-java-is-a-secure-language-3635dae8d1dd?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3635dae8d1dd</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[java-security]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[jvm]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Wed, 23 Oct 2019 09:43:30 GMT</pubDate>
            <atom:updated>2021-09-07T04:35:38.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*S10ZvC7UfL37oyULxk4VEQ.jpeg" /></figure><p>As you all are well aware that Java is a vast world. There are a lot of provisions that you can play within Java. It is one of the most popular languages in the programming world. Simply the most favourite language for the developers due to a lot of salient features that it offers. Java is a very eye-catching language as it is easy to understand and learn. Here, in this tutorial, I am going to discuss one of the most amazing features of Java, security!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*Td_HerqkDiLAdbs8.jpg" /></figure><ul><li>Why Java is secure?</li><li>Top 10 features that make Java Secure</li><li>JVM</li><li>Security API’s</li><li>Security manager</li><li>Void of Pointers</li><li>Memory management</li><li>Compile-time checking</li><li>Cryptographic Security</li><li>Java Sandbox</li><li>Exception Handling</li><li>Java ClassLoader</li></ul><p>Let’s begin.</p><h3>Why Java is secure?</h3><p>Java is an extremely safe language due to the variety of features described below. Have a look!</p><ul><li>The byte-code verification before the execution takes place, therefore the program becomes unable to jump to a malicious or undefined instruction or to make a type error at the instruction level.</li><li>The automatic bounds checking of arrays null checking of references verification of casts prevents the program from making any type errors.</li><li>Whenever a new code is being loaded, run-time security checks take place. The usage of security manager and class loader makes it easy for the Java run-time to avoid any arbitrary code from executing by mediating access to the system resources and preventing the program from loading or generating any arbitrary code at run-time.</li><li>Java provides library level safety.</li></ul><p>There are some more technical features elaborated below!</p><h3>Top 10 Features that make Java Secure</h3><ul><li><strong>JVM</strong></li></ul><p>Java virtual machine plays a fundamental role to verify the byte-code. The task of JVM is to check that the program is not making any unsafe operations. There are cases when a program jumps to the wrong locations that can hold malicious data. The JVM guarantees that such kinds of unsafe operations does not exist. The JVM helps to diminish the possibilities of the developers who suffer from memory safety flaws.</p><p>Let’s understand Security API.</p><ul><li><strong>Security API’s</strong></li></ul><p>The Java class library has several API that relates to security. This API is involved in cryptographic algorithms secure communication and authentication protocols.</p><p>Let’s move on with the Security Manager</p><ul><li><strong>Security Manager</strong></li></ul><p>Security manager guarantees that the doubted code or some malicious code does not accomplish the goal of accessing some features of the platform and API’s</p><ul><li><strong>Void of Pointers</strong></li></ul><p>There is no concept of pointers in the Java language. The only disadvantage of pointers is that they can be used to refer another object for doing some unauthorized read and write operation. This puts the feature of security in Java in jeopardy. Hence, there are no pointers!</p><ul><li><strong>Memory management</strong></li></ul><p>Java has an automatic garbage collection system. It has its own memory management mechanism. Allowed time users forget to free their memory when the utilization of some objects is done. But in the case of Java, the memory need not be vacated. JVM does your work.</p><ul><li><strong>Compile-time checking</strong></li></ul><p>For instance, if any unauthorized method is trying to access a private variable then at compile time JVM fetches an error. JVM catches as many errors as it encounters.</p><ul><li><strong>Cryptographic Security</strong></li></ul><p>Java.security.SouceCode class is helpful in Java. In the process of taking a code from some other network, it becomes important to maintain a record of it. The class mentioned above maintains the source information and keeps a digital signature that guarantees cryptographic security.</p><ul><li><strong>Java Sandbox</strong></li></ul><p>Java sandbox is basically a restricted area in which the Java applets Run. These applets can’t get system resources without a check.</p><ul><li><strong>Exception Handling</strong></li></ul><p>In exception handling, during runtime Java can catch the undesired result through exception handling and report the programmer. The code will not run until the programmer rectifies it. This feature adds more security to Java.</p><ul><li><strong>Java ClassLoader</strong></li></ul><p>There are many class loaders present in JVM. A different name is given to each class that is loaded. The classloader maintains namespaces for specific classes. The aim here is that the untrusted classes shall not behave like trusted ones.</p><p>I hope now you have the answer to the above-mentioned question, Why Java is secure! With this, I am concluding this tutorial. Keep reading, keep exploring. If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, DevOps, Ethical Hacking, then you can refer to<a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=why-java-is-secure"> Edureka’s official site.</a></p><p>Do look out for other articles in this series that will explain the various other aspects of Java.</p><blockquote><em>1. </em><a href="https://medium.com/edureka/object-oriented-programming-b29cfd50eca0"><em>Object Oriented Programming</em></a></blockquote><blockquote><em>2. </em><a href="https://medium.com/edureka/inheritance-in-java-f638d3ed559e"><em>Inheritance in Java</em></a></blockquote><blockquote><em>3. </em><a href="https://medium.com/edureka/polymorphism-in-java-9559e3641b9b"><em>Polymorphism in Java</em></a></blockquote><blockquote><em>4. </em><a href="https://medium.com/edureka/java-abstraction-d2d790c09037"><em>Abstraction in Java</em></a></blockquote><blockquote><em>5. </em><a href="https://medium.com/edureka/java-string-68e5d0ca331f"><em>Java String</em></a></blockquote><blockquote><em>6. </em><a href="https://medium.com/edureka/java-array-tutorial-50299ef85e5"><em>Java Array</em></a></blockquote><blockquote><em>7. </em><a href="https://medium.com/edureka/java-collections-6d50b013aef8"><em>Java Collections</em></a></blockquote><blockquote><em>8. </em><a href="https://medium.com/edureka/java-thread-bfb08e4eb691"><em>Java Threads</em></a></blockquote><blockquote><em>9. </em><a href="https://medium.com/edureka/java-servlets-62f583d69c7e"><em>Introduction to Java Servlets</em></a></blockquote><blockquote><em>10. </em><a href="https://medium.com/edureka/servlet-and-jsp-tutorial-ef2e2ab9ee2a"><em>Servlet and JSP Tutorial</em></a></blockquote><blockquote><em>11.</em><a href="https://medium.com/edureka/java-exception-handling-7bd07435508c"><em> Exception Handling in Java</em></a></blockquote><blockquote><em>12. </em><a href="https://medium.com/edureka/advanced-java-tutorial-f6ebac5175ec"><em>Advanced Java Tutorial</em></a></blockquote><blockquote><em>13. </em><a href="https://medium.com/edureka/java-interview-questions-1d59b9c53973"><em>Java Interview Questions</em></a></blockquote><blockquote><em>14. </em><a href="https://medium.com/edureka/java-programs-1e3220df2e76"><em>Java Programs</em></a></blockquote><blockquote><em>15. </em><a href="https://medium.com/edureka/kotlin-vs-java-4f8653f38c04"><em>Kotlin vs Java</em></a></blockquote><blockquote><em>16. </em><a href="https://medium.com/edureka/what-is-dependency-injection-5006b53af782"><em>Dependency Injection Using Spring Boot</em></a></blockquote><blockquote><em>17. </em><a href="https://medium.com/edureka/comparable-in-java-e9cfa7be7ff7"><em>Comparable in Java</em></a></blockquote><blockquote><em>18. </em><a href="https://medium.com/edureka/java-frameworks-5d52f3211f39"><em>Top 10 Java frameworks</em></a></blockquote><blockquote><em>19. </em><a href="https://medium.com/edureka/java-reflection-api-d38f3f5513fc"><em>Java Reflection API</em></a></blockquote><blockquote><em>20. </em><a href="https://medium.com/edureka/pattern-programs-in-java-f33186c711c8"><em>Top 30 Patterns in Java</em></a></blockquote><blockquote><em>21. </em><a href="https://medium.com/edureka/java-cheat-sheet-3ad4d174012c"><em>Core Java Cheat Sheet</em></a></blockquote><blockquote><em>22. </em><a href="https://medium.com/edureka/socket-programming-in-java-f09b82facd0"><em>Socket Programming In Java</em></a></blockquote><blockquote><em>23. </em><a href="https://medium.com/edureka/java-oop-cheat-sheet-9c6ebb5e1175"><em>Java OOP Cheat Sheet</em></a></blockquote><blockquote><em>24. </em><a href="https://medium.com/edureka/annotations-in-java-9847d531d2bb"><em>Annotations in Java</em></a></blockquote><blockquote><em>25.</em><a href="https://medium.com/edureka/library-management-system-project-in-java-b003acba7f17"><em> Library Management System Project in Java</em></a></blockquote><blockquote><em>26. </em><a href="https://medium.com/edureka/java-binary-tree-caede8dfada5"><em>Trees in Java</em></a></blockquote><blockquote><em>27. </em><a href="https://medium.com/edureka/machine-learning-in-java-db872998f368"><em>Machine Learning in Java</em></a></blockquote><blockquote><em>28. </em><a href="https://medium.com/edureka/data-structures-algorithms-in-java-d27e915db1c5"><em>Top Data Structures &amp; Algorithms in Java</em></a></blockquote><blockquote><em>29. </em><a href="https://medium.com/edureka/java-developer-skills-83983e3d3b92"><em>Java Developer Skills</em></a></blockquote><blockquote><em>30. </em><a href="https://medium.com/edureka/servlet-interview-questions-266b8fbb4b2d"><em>Top 55 Servlet Interview Questions</em></a></blockquote><blockquote><em>31.</em><a href="https://medium.com/edureka/java-exception-handling-7bd07435508c"><em> </em></a><a href="https://medium.com/edureka/java-projects-db51097281e3"><em>Top Java Projects</em></a></blockquote><blockquote><em>32. </em><a href="https://medium.com/edureka/java-string-cheat-sheet-9a91a6b46540"><em>Java Strings Cheat Sheet</em></a></blockquote><blockquote><em>33. </em><a href="https://medium.com/edureka/nested-classes-java-f1987805e7e3"><em>Nested Class in Java</em></a></blockquote><blockquote><em>34. </em><a href="https://medium.com/edureka/java-collections-interview-questions-162c5d7ef078"><em>Java Collections Interview Questions and Answers</em></a></blockquote><blockquote><em>35. </em><a href="https://medium.com/edureka/deadlock-in-java-5d1e4f0338d5"><em>How to Handle Deadlock in Java?</em></a></blockquote><blockquote><em>36. </em><a href="https://medium.com/edureka/java-collections-interview-questions-6d20f552773e"><em>Top 50 Java Collections Interview Questions You Need to Know</em></a></blockquote><blockquote><em>37. </em><a href="https://medium.com/edureka/java-string-pool-5b5b3b327bdf"><em>What is the concept of String Pool in Java?</em></a></blockquote><blockquote><em>38. </em><a href="https://medium.com/edureka/difference-between-c-cpp-and-java-625c4e91fb95"><em>What is the difference between C, C++, and Java?</em></a></blockquote><blockquote><em>39. </em><a href="https://medium.com/edureka/palindrome-in-java-5d116eb8755a"><em>Palindrome in Java- How to check a number or string?</em></a></blockquote><blockquote><em>40. </em><a href="https://medium.com/edureka/mvc-interview-questions-cd568f6d7c2e"><em>Top MVC Interview Questions and Answers You Need to Know</em></a></blockquote><blockquote><em>41. </em><a href="https://medium.com/edureka/applications-of-java-11e64f9588b0"><em>Top 10 Applications of Java Programming Language</em></a></blockquote><blockquote><em>42. </em><a href="https://medium.com/edureka/deadlock-in-java-5d1e4f0338d5"><em>Deadlock in Java</em></a></blockquote><blockquote><em>43. </em><a href="https://medium.com/edureka/java-sqrt-method-59354a700571"><em>Square and Square Root in Java</em></a></blockquote><blockquote><em>44. </em><a href="https://medium.com/edureka/type-casting-in-java-ac4cd7e0bbe1"><em>Typecasting in Java</em></a></blockquote><blockquote><em>45. </em><a href="https://medium.com/edureka/operators-in-java-fd05a7445c0a"><em>Operators in Java and its Types</em></a></blockquote><blockquote><em>46.</em><a href="https://medium.com/edureka/destructor-in-java-21cc46ed48fc"><em> Destructor in Java</em></a></blockquote><blockquote><em>47. </em><a href="https://medium.com/edureka/binary-search-in-java-cf40e927a8d3"><em>Binary Search in Java</em></a></blockquote><blockquote><em>48. </em><a href="https://medium.com/edureka/mvc-architecture-in-java-a85952ae2684"><em>MVC Architecture in Java</em></a></blockquote><blockquote><em>49. </em><a href="https://medium.com/edureka/hibernate-interview-questions-78b45ec5cce8"><em>Hibernate Interview Questions And Answers</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/why-java-is-secure/"><em>https://www.edureka.co</em></a><em> on October 23, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3635dae8d1dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/why-java-is-a-secure-language-3635dae8d1dd">Why Java is a Secure language?</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn How To Use Java Command Line Arguments With Examples]]></title>
            <link>https://medium.com/edureka/java-command-line-arguments-with-examples-863fc8bc5955?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/863fc8bc5955</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[technolog]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Thu, 19 Sep 2019 06:48:43 GMT</pubDate>
            <atom:updated>2021-10-28T11:14:20.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*DI4eMg_PSo93fmKWU_Dmzg.png" /></figure><p>Java programming language is versatile in every aspect, being platform-independent it makes Java a clear cut winner for any developer. The execution of any Java program is hustle-free and precise. We can even pass arguments during the execution of a program using the command-line arguments. In this article, you will learn how you could use command-line arguments in Java. Following are the topics discussed in this article:</p><ul><li>What Are Command Line Arguments?</li><li>Java Command Line Arguments Example</li><li>Factorial Of A Number</li><li>Sum Of Two Numbers</li><li>Fibonacci Series</li><li>Important Points To Remember</li></ul><h3>What Are Command Line Arguments?</h3><p>The command-line arguments are passed to the program at run-time. Passing command-line arguments in a Java program is quite easy. They are stored as strings in the String array passed to the args parameter of the main() method in Java.</p><pre>class Example0{<br>public static void main(String[] args){<br>System.out.println(&quot;edureka&quot; + args[0]);<br>}<br>}</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*UxzOzI-HGYbXueQx.png" /></figure><p>To compile and run a java program in the command prompt follow the steps written below.</p><ul><li>Save your program in a file with a .java extension</li><li>open the command prompt and go to the directory where your file is saved.</li><li>Run the command — javac filename.java</li><li>After the compilation run the command — java filename</li><li>Make sure the Java path is set correctly.</li></ul><h3>Java Command Line Arguments Example</h3><p>Here are a few examples to show how we can use the command-line arguments in a Java program.</p><p>The beauty relies on the parseInt method in the Integer class. Every Number classes such as Integer, Float, Double and so on have parseXXX methods that convert String into the respective object of their type.</p><p>As we all know that array starts its index with zero. Therefore args[0] is the first index in this String[] array which is taken from the console. Similarly, args[1] is second, args[2] is the third element and so on.</p><p>When an application is launched, the run-time system passes the command-line arguments to the application’s main method via an array of Strings.</p><h3>Factorial of a number using command-line arguments</h3><pre>class Example1{<br>public static void main(String[] args){<br>int a , b = 1;<br>int n = Integer.parseInt(args[0]);<br>for(a = 1; a&lt;= n ; a++)<br>{ <br>b = b*a;<br>}<br>System.out.println(&quot;factorial is&quot; +b);<br>}<br>}</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/0*GkGwn88URM2zQtiP.png" /></figure><h3>Sum of two numbers using command-line arguments</h3><pre>class Example2{<br>public static void main(String[] args){<br>int a = Integer.parseInt(args[0]);<br>int b = Integer.parseInt(args[1]);<br>int sum = a + b;<br>System.out.println(&quot;The sum is&quot; +sum);<br>}<br>}</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*ivaKxrjEOhQRaRo_.png" /></figure><h3>Fibonacci Series program using command-line arguments</h3><pre>class Example3{<br>public static void main(String[] args){<br>int n = Integer.parseInt(args[0]);<br>int t1 = 0;<br>int t2 = 1;<br> <br>for(int i = 1; i &lt;=n; i++){<br>System.out.println(t1);<br>int sum = t1+t2;<br>t1 = t2;<br>t2 = sum;<br>}<br>}<br>}</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*0jaGVAUbdCJWL-JY.png" /></figure><h3>Important Points To Remember</h3><ul><li>While launching your application, you can use the command-line arguments to specify the configuration information.</li><li>When you are using command-line arguments, there is no limitation on the number of arguments. You can use as many as per your requirement.</li><li>Information in the command-line arguments is passed as Strings.</li><li>The command-line arguments are stored in the String args of the main() method of the program.</li></ul><p>This brings us to the end of this article where we have learned about the Java command line arguments with examples. I hope you are clear with all that has been shared with you in this tutorial.</p><p>This brings us to the end of this article where we have learned about the Java command line arguments with examples. I hope you are clear with all that has been shared with you in this tutorial.</p><p>If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, Python, Ethical Hacking, then you can refer to<a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=java-command-line-argument/"><em> Edureka’s official site.</em></a></p><p>Do look out for other articles in this series that will explain the various other aspects of Java.</p><blockquote><em>1. </em><a href="https://medium.com/edureka/object-oriented-programming-b29cfd50eca0"><em>Object Oriented Programming</em></a></blockquote><blockquote><em>2. </em><a href="https://medium.com/edureka/inheritance-in-java-f638d3ed559e"><em>Inheritance in Java</em></a></blockquote><blockquote><em>3. </em><a href="https://medium.com/edureka/polymorphism-in-java-9559e3641b9b"><em>Polymorphism in Java</em></a></blockquote><blockquote><em>4. </em><a href="https://medium.com/edureka/java-abstraction-d2d790c09037"><em>Abstraction in Java</em></a></blockquote><blockquote><em>5. </em><a href="https://medium.com/edureka/java-string-68e5d0ca331f"><em>Java String</em></a></blockquote><blockquote><em>6. </em><a href="https://medium.com/edureka/java-array-tutorial-50299ef85e5"><em>Java Array</em></a></blockquote><blockquote><em>7. </em><a href="https://medium.com/edureka/java-collections-6d50b013aef8"><em>Java Collections</em></a></blockquote><blockquote><em>8. </em><a href="https://medium.com/edureka/java-thread-bfb08e4eb691"><em>Java Threads</em></a></blockquote><blockquote><em>9. </em><a href="https://medium.com/edureka/java-servlets-62f583d69c7e"><em>Introduction to Java Servlets</em></a></blockquote><blockquote><em>10. </em><a href="https://medium.com/edureka/servlet-and-jsp-tutorial-ef2e2ab9ee2a"><em>Servlet and JSP Tutorial</em></a></blockquote><blockquote><em>11.</em><a href="https://medium.com/edureka/java-exception-handling-7bd07435508c"><em> Exception Handling in Java</em></a></blockquote><blockquote><em>12. </em><a href="https://medium.com/edureka/java-tutorial-bbdd28a2acd7"><em>Java Tutorial</em></a></blockquote><blockquote><em>13. </em><a href="https://medium.com/edureka/java-interview-questions-1d59b9c53973"><em>Java Interview Questions</em></a></blockquote><blockquote><em>14. </em><a href="https://medium.com/edureka/java-programs-1e3220df2e76"><em>Java Programs</em></a></blockquote><blockquote><em>15. </em><a href="https://medium.com/edureka/kotlin-vs-java-4f8653f38c04"><em>Kotlin vs Java</em></a></blockquote><blockquote><em>16. </em><a href="https://medium.com/edureka/what-is-dependency-injection-5006b53af782"><em>Dependency Injection Using Spring Boot</em></a></blockquote><blockquote><em>17. </em><a href="https://medium.com/edureka/comparable-in-java-e9cfa7be7ff7"><em>Comparable in Java</em></a></blockquote><blockquote><em>18. </em><a href="https://medium.com/edureka/java-frameworks-5d52f3211f39"><em>Top 10 Java frameworks</em></a></blockquote><blockquote><em>19. </em><a href="https://medium.com/edureka/java-reflection-api-d38f3f5513fc"><em>Java Reflection API</em></a></blockquote><blockquote><em>20. </em><a href="https://medium.com/edureka/pattern-programs-in-java-f33186c711c8"><em>Top 30 Patterns in Java</em></a></blockquote><blockquote><em>21. </em><a href="https://medium.com/edureka/java-cheat-sheet-3ad4d174012c"><em>Core Java Cheat Sheet</em></a></blockquote><blockquote><em>22. </em><a href="https://medium.com/edureka/socket-programming-in-java-f09b82facd0"><em>Socket Programming In Java</em></a></blockquote><blockquote><em>23. </em><a href="https://medium.com/edureka/java-oop-cheat-sheet-9c6ebb5e1175"><em>Java OOP Cheat Sheet</em></a></blockquote><blockquote><em>24. </em><a href="https://medium.com/edureka/annotations-in-java-9847d531d2bb"><em>Annotations in Java</em></a></blockquote><blockquote><em>25.</em><a href="https://medium.com/edureka/library-management-system-project-in-java-b003acba7f17"><em> Library Management System Project in Java</em></a></blockquote><blockquote><em>26. </em><a href="https://medium.com/edureka/java-binary-tree-caede8dfada5"><em>Trees in Java</em></a></blockquote><blockquote><em>27. </em><a href="https://medium.com/edureka/machine-learning-in-java-db872998f368"><em>Machine Learning in Java</em></a></blockquote><blockquote><em>28. </em><a href="https://medium.com/edureka/data-structures-algorithms-in-java-d27e915db1c5"><em>Top Data Structures &amp; Algorithms in Java</em></a></blockquote><blockquote><em>29. </em><a href="https://medium.com/edureka/java-developer-skills-83983e3d3b92"><em>Java Developer Skills</em></a></blockquote><blockquote><em>30. </em><a href="https://medium.com/edureka/servlet-interview-questions-266b8fbb4b2d"><em>Top 55 Servlet Interview Questions</em></a></blockquote><blockquote><em>31.</em><a href="https://medium.com/edureka/java-exception-handling-7bd07435508c"><em> </em></a><a href="https://medium.com/edureka/java-projects-db51097281e3"><em>Top Java Projects</em></a></blockquote><blockquote><em>32. </em><a href="https://medium.com/edureka/java-string-cheat-sheet-9a91a6b46540"><em>Java Strings Cheat Sheet</em></a></blockquote><blockquote><em>33. </em><a href="https://medium.com/edureka/nested-classes-java-f1987805e7e3"><em>Nested Class in Java</em></a></blockquote><blockquote><em>34. </em><a href="https://medium.com/edureka/java-collections-interview-questions-162c5d7ef078"><em>Java Collections Interview Questions and Answers</em></a></blockquote><blockquote><em>35. </em><a href="https://medium.com/edureka/deadlock-in-java-5d1e4f0338d5"><em>How to Handle Deadlock in Java?</em></a></blockquote><blockquote><em>36. </em><a href="https://medium.com/edureka/java-collections-interview-questions-6d20f552773e"><em>Top 50 Java Collections Interview Questions You Need to Know</em></a></blockquote><blockquote><em>37. </em><a href="https://medium.com/edureka/java-string-pool-5b5b3b327bdf"><em>What is the concept of String Pool in Java?</em></a></blockquote><blockquote><em>38. </em><a href="https://medium.com/edureka/difference-between-c-cpp-and-java-625c4e91fb95"><em>What is the difference between C, C++, and Java?</em></a></blockquote><blockquote><em>39. </em><a href="https://medium.com/edureka/palindrome-in-java-5d116eb8755a"><em>Palindrome in Java- How to check a number or string?</em></a></blockquote><blockquote><em>40. </em><a href="https://medium.com/edureka/mvc-interview-questions-cd568f6d7c2e"><em>Top MVC Interview Questions and Answers You Need to Know</em></a></blockquote><blockquote><em>41. </em><a href="https://medium.com/edureka/applications-of-java-11e64f9588b0"><em>Top 10 Applications of Java Programming Language</em></a></blockquote><blockquote><em>42. </em><a href="https://medium.com/edureka/deadlock-in-java-5d1e4f0338d5"><em>Deadlock in Java</em></a></blockquote><blockquote><em>43. </em><a href="https://medium.com/edureka/java-sqrt-method-59354a700571"><em>Square and Square Root in Java</em></a></blockquote><blockquote><em>44. </em><a href="https://medium.com/edureka/type-casting-in-java-ac4cd7e0bbe1"><em>Typecasting in Java</em></a></blockquote><blockquote><em>45. </em><a href="https://medium.com/edureka/operators-in-java-fd05a7445c0a"><em>Operators in Java and its Types</em></a></blockquote><blockquote><em>46.</em><a href="https://medium.com/edureka/destructor-in-java-21cc46ed48fc"><em> Destructor in Java</em></a></blockquote><blockquote><em>47. </em><a href="https://medium.com/edureka/binary-search-in-java-cf40e927a8d3"><em>Binary Search in Java</em></a></blockquote><blockquote><em>48. </em><a href="https://medium.com/edureka/mvc-architecture-in-java-a85952ae2684"><em>MVC Architecture in Java</em></a></blockquote><blockquote><em>49. </em><a href="https://medium.com/edureka/hibernate-interview-questions-78b45ec5cce8"><em>Hibernate Interview Questions And Answers</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/java-command-line-argument/"><em>https://www.edureka.co</em></a><em> on September 19, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=863fc8bc5955" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/java-command-line-arguments-with-examples-863fc8bc5955">Learn How To Use Java Command Line Arguments With Examples</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the Basic Structure of a Java Program?]]></title>
            <link>https://medium.com/edureka/what-is-the-basic-structure-of-a-java-program-b41387238ea9?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b41387238ea9</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[programming-languages]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Thu, 12 Sep 2019 13:15:30 GMT</pubDate>
            <atom:updated>2021-09-01T05:28:25.374Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*_qzr84uTByVKQlKT_f2EYg.jpeg" /></figure><p>Java programming language is platform-independent and a secure programming language. With a wide variety of applications, the Java programming language has been in demand for the last two decades. The out-of-the-box features help java stand apart. In this article, we will understand the structure of a java program in detail. Following are the topics discussed in this article:</p><ul><li>Documentation Section</li><li>Package Statement</li><li>Import Statement</li><li>Interface Section</li><li>Class Definition</li><li>Main Method Class</li></ul><h3>Documentation Section</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/0*Tl1PgASIQyNY3aQG.png" /></figure><p>It is used to improve the readability of the program. It consists of comments in Java that include basic information such as the method’s usage or functionality to make it easier for the programmer to understand it while reviewing or debugging the code. A Java comment is not necessarily limited to a confined space, it can appear anywhere in the code.</p><p>The compiler ignores these comments during the time of execution and is solely meant for improving the readability of the Java program.</p><p>There are three types of comments that Java supports</p><ul><li>Single line Comment</li><li>Multi-line Comment</li><li>Documentation Comment</li></ul><p>Let’s take a look at an example to understand how we can use the above-mentioned comments in a Java program.</p><pre>// a single line comment is declared like this<br>/* a multi-line comment is declared like this<br>and can have multiple lines as a comment */<br>/** a documentation comment starts with a delimiter and ends with */</pre><h3>Package Statement</h3><p>There is a provision in Java that allows you to declare your classes in a collection called package. There can be only one package statement in a Java program and it has to be at the beginning of the code before any class or interface declaration. This statement is optional, for example, take a look at the statement below.</p><p><strong>package</strong> student;</p><p>This statement declares that all the classes and interfaces defined in this source file are a part of the student package. And only one package can be declared in the source file.</p><h3>Import Statement</h3><p>Many predefined classes are stored in packages in Java, an import statement is used to refer to the classes stored in other packages. An import statement is always written after the package statement but it has to be before any class declaration.</p><p>We can import a specific class or classes in an import statement. Take a look at the example to understand how to import statement works in Java.</p><pre>import java.util.Date; //imports the date class<br>import java.applet.*;  //imports all the classes from the java applet package</pre><h3>Interface Section</h3><p>This section is used to specify an interface in Java. It is an optional section which is mainly used to implement multiple inheritances in Java. An interface is a lot similar to a class in Java but it contains only constants and method declarations.</p><p>An interface cannot be instantiated but it can be implemented by classes or extended by other interfaces.</p><pre>interface stack{<br>void push(int item);<br>void pop();<br>}</pre><h3>Class Definition</h3><p>A Java program may contain several class definitions, classes are an essential part of any Java program. It defines the information about the user-defined classes in a program.</p><p>A class is a collection of variables and methods that operate on the fields. Every program in Java will have at least one class with the main method.</p><h3>Main Method Class</h3><p>The main method is from where the execution actually starts and follows the order specified for the following statements. Let’s take a look at a sample program to understand how it is structured.</p><pre>public class Example{<br>//main method declaration<br>public static void main(String[] args){<br>System.out.println(&quot;hello world&quot;);<br>}<br>}</pre><p>Let’s analyze the above program line by line to understand how it works.</p><h4>public class Example</h4><p>This creates a class called Example. You should make sure that the class name starts with a capital letter, and the public word means it is accessible from any other classes.</p><h4>Comments</h4><p>To improve the readability, we can use comments to define a specific note or functionality of methods, etc for the programmer.</p><h4>Braces</h4><p>The curly brackets are used to group all the commands together. To make sure that the commands belong to a class or a method.</p><h4>public static void main</h4><ul><li>When the main method is declared public, it means that it can be used outside of this class as well.</li><li>The word static means that we want to access a method without making its objects. As we call the main method without creating any objects.</li><li>The word void indicates that it does not return any value. The main is declared as void because it does not return any value.</li><li>Main is the method, which is an essential part of any Java program.</li></ul><h4>String[] args</h4><p>It is an array where each element is a string, which is named as args. If you run the Java code through a console, you can pass the input parameter. The main() takes it as an input.</p><h4>System.out.println();</h4><p>The statement is used to print the output on the screen where the system is a predefined class, out is an object of the PrintWriter class. The method println prints the text on the screen with a new line. All Java statements end with a semicolon.</p><p>This brings us to the end of this article where we have learned about the structure of a Java program. I hope you are clear with all that has been shared with you in this tutorial. If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, DevOps, Ethical Hacking, then you can refer to<a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=structure-of-a-java-program"> Edureka’s official site.</a></p><p>Do look out for other articles in this series that will explain the various other aspects of Java.</p><blockquote><em>1. </em><a href="https://medium.com/edureka/object-oriented-programming-b29cfd50eca0"><em>Object Oriented Programming</em></a></blockquote><blockquote><em>2. </em><a href="https://medium.com/edureka/inheritance-in-java-f638d3ed559e"><em>Inheritance in Java</em></a></blockquote><blockquote><em>3. </em><a href="https://medium.com/edureka/polymorphism-in-java-9559e3641b9b"><em>Polymorphism in Java</em></a></blockquote><blockquote><em>4. </em><a href="https://medium.com/edureka/java-abstraction-d2d790c09037"><em>Abstraction in Java</em></a></blockquote><blockquote><em>5. </em><a href="https://medium.com/edureka/java-string-68e5d0ca331f"><em>Java String</em></a></blockquote><blockquote><em>6. </em><a href="https://medium.com/edureka/java-array-tutorial-50299ef85e5"><em>Java Array</em></a></blockquote><blockquote><em>7. </em><a href="https://medium.com/edureka/java-collections-6d50b013aef8"><em>Java Collections</em></a></blockquote><blockquote><em>8. </em><a href="https://medium.com/edureka/java-thread-bfb08e4eb691"><em>Java Threads</em></a></blockquote><blockquote><em>9. </em><a href="https://medium.com/edureka/java-servlets-62f583d69c7e"><em>Introduction to Java Servlets</em></a></blockquote><blockquote><em>10. </em><a href="https://medium.com/edureka/servlet-and-jsp-tutorial-ef2e2ab9ee2a"><em>Servlet and JSP Tutorial</em></a></blockquote><blockquote><em>11.</em><a href="https://medium.com/edureka/java-exception-handling-7bd07435508c"><em> Exception Handling in Java</em></a></blockquote><blockquote><em>12. </em><a href="https://medium.com/edureka/advanced-java-tutorial-f6ebac5175ec"><em>Advanced Java Tutorial</em></a></blockquote><blockquote><em>13. </em><a href="https://medium.com/edureka/java-interview-questions-1d59b9c53973"><em>Java Interview Questions</em></a></blockquote><blockquote><em>14. </em><a href="https://medium.com/edureka/java-programs-1e3220df2e76"><em>Java Programs</em></a></blockquote><blockquote><em>15. </em><a href="https://medium.com/edureka/kotlin-vs-java-4f8653f38c04"><em>Kotlin vs Java</em></a></blockquote><blockquote><em>16. </em><a href="https://medium.com/edureka/what-is-dependency-injection-5006b53af782"><em>Dependency Injection Using Spring Boot</em></a></blockquote><blockquote><em>17. </em><a href="https://medium.com/edureka/comparable-in-java-e9cfa7be7ff7"><em>Comparable in Java</em></a></blockquote><blockquote><em>18. </em><a href="https://medium.com/edureka/java-frameworks-5d52f3211f39"><em>Top 10 Java frameworks</em></a></blockquote><blockquote><em>19. </em><a href="https://medium.com/edureka/java-reflection-api-d38f3f5513fc"><em>Java Reflection API</em></a></blockquote><blockquote><em>20. </em><a href="https://medium.com/edureka/pattern-programs-in-java-f33186c711c8"><em>Top 30 Patterns in Java</em></a></blockquote><blockquote><em>21. </em><a href="https://medium.com/edureka/java-cheat-sheet-3ad4d174012c"><em>Core Java Cheat Sheet</em></a></blockquote><blockquote><em>22. </em><a href="https://medium.com/edureka/socket-programming-in-java-f09b82facd0"><em>Socket Programming In Java</em></a></blockquote><blockquote><em>23. </em><a href="https://medium.com/edureka/java-oop-cheat-sheet-9c6ebb5e1175"><em>Java OOP Cheat Sheet</em></a></blockquote><blockquote><em>24. </em><a href="https://medium.com/edureka/annotations-in-java-9847d531d2bb"><em>Annotations in Java</em></a></blockquote><blockquote><em>25.</em><a href="https://medium.com/edureka/library-management-system-project-in-java-b003acba7f17"><em> Library Management System Project in Java</em></a></blockquote><blockquote><em>26. </em><a href="https://medium.com/edureka/java-binary-tree-caede8dfada5"><em>Trees in Java</em></a></blockquote><blockquote><em>27. </em><a href="https://medium.com/edureka/machine-learning-in-java-db872998f368"><em>Machine Learning in Java</em></a></blockquote><blockquote><em>28. </em><a href="https://medium.com/edureka/data-structures-algorithms-in-java-d27e915db1c5"><em>Top Data Structures &amp; Algorithms in Java</em></a></blockquote><blockquote><em>29. </em><a href="https://medium.com/edureka/java-developer-skills-83983e3d3b92"><em>Java Developer Skills</em></a></blockquote><blockquote><em>30. </em><a href="https://medium.com/edureka/servlet-interview-questions-266b8fbb4b2d"><em>Top 55 Servlet Interview Questions</em></a></blockquote><blockquote><em>31.</em><a href="https://medium.com/edureka/java-exception-handling-7bd07435508c"><em> </em></a><a href="https://medium.com/edureka/java-projects-db51097281e3"><em>Top Java Projects</em></a></blockquote><blockquote><em>32. </em><a href="https://medium.com/edureka/java-string-cheat-sheet-9a91a6b46540"><em>Java Strings Cheat Sheet</em></a></blockquote><blockquote><em>33. </em><a href="https://medium.com/edureka/nested-classes-java-f1987805e7e3"><em>Nested Class in Java</em></a></blockquote><blockquote><em>34. </em><a href="https://medium.com/edureka/java-collections-interview-questions-162c5d7ef078"><em>Java Collections Interview Questions and Answers</em></a></blockquote><blockquote><em>35. </em><a href="https://medium.com/edureka/deadlock-in-java-5d1e4f0338d5"><em>How to Handle Deadlock in Java?</em></a></blockquote><blockquote><em>36. </em><a href="https://medium.com/edureka/java-collections-interview-questions-6d20f552773e"><em>Top 50 Java Collections Interview Questions You Need to Know</em></a></blockquote><blockquote><em>37. </em><a href="https://medium.com/edureka/java-string-pool-5b5b3b327bdf"><em>What is the concept of String Pool in Java?</em></a></blockquote><blockquote><em>38. </em><a href="https://medium.com/edureka/difference-between-c-cpp-and-java-625c4e91fb95"><em>What is the difference between C, C++, and Java?</em></a></blockquote><blockquote><em>39. </em><a href="https://medium.com/edureka/palindrome-in-java-5d116eb8755a"><em>Palindrome in Java- How to check a number or string?</em></a></blockquote><blockquote><em>40. </em><a href="https://medium.com/edureka/mvc-interview-questions-cd568f6d7c2e"><em>Top MVC Interview Questions and Answers You Need to Know</em></a></blockquote><blockquote><em>41. </em><a href="https://medium.com/edureka/applications-of-java-11e64f9588b0"><em>Top 10 Applications of Java Programming Language</em></a></blockquote><blockquote><em>42. </em><a href="https://medium.com/edureka/deadlock-in-java-5d1e4f0338d5"><em>Deadlock in Java</em></a></blockquote><blockquote><em>43. </em><a href="https://medium.com/edureka/java-sqrt-method-59354a700571"><em>Square and Square Root in Java</em></a></blockquote><blockquote><em>44. </em><a href="https://medium.com/edureka/type-casting-in-java-ac4cd7e0bbe1"><em>Typecasting in Java</em></a></blockquote><blockquote><em>45. </em><a href="https://medium.com/edureka/operators-in-java-fd05a7445c0a"><em>Operators in Java and its Types</em></a></blockquote><blockquote><em>46.</em><a href="https://medium.com/edureka/destructor-in-java-21cc46ed48fc"><em> Destructor in Java</em></a></blockquote><blockquote><em>47. </em><a href="https://medium.com/edureka/binary-search-in-java-cf40e927a8d3"><em>Binary Search in Java</em></a></blockquote><blockquote><em>48. </em><a href="https://medium.com/edureka/mvc-architecture-in-java-a85952ae2684"><em>MVC Architecture in Java</em></a></blockquote><blockquote><em>49. </em><a href="https://medium.com/edureka/hibernate-interview-questions-78b45ec5cce8"><em>Hibernate Interview Questions And Answers</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/structure-of-a-java-program/"><em>https://www.edureka.co</em></a><em> on September 12, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b41387238ea9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/what-is-the-basic-structure-of-a-java-program-b41387238ea9">What is the Basic Structure of a Java Program?</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 50 SAS Interview Questions You Must Prepare In 2021]]></title>
            <link>https://medium.com/edureka/top-50-sas-interview-questions-ea3939a119d0?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea3939a119d0</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Fri, 29 Mar 2019 05:36:33 GMT</pubDate>
            <atom:updated>2021-10-20T16:23:04.404Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*kQl69jKQRlT6dQ8dEyRwkQ.png" /></figure><p>SAS is the most popular Data Analytics tool in the market. This blog is the perfect guide for you to learn all the concepts required to clear a SAS interview. We have segregated the questions based on the difficulty levels and this will help people with different expertise levels to reap the maximum benefit from our blog. SAS Interview Questions blog will be a one-stop resource from where you can boost your interview preparation.</p><p>Before moving to SAS interview questions, let us understand <strong><em>why SAS</em></strong> is important. SAS is easy to learn and provides an easy option (PROC SQL) for people who already know SQL. SAS is on par with all leading tools including R &amp; Python when it comes to handling huge amount of data and options for parallel computations. Globally, SAS is the market leader in available corporate jobs. In India, SAS controls about 70% of the data analytics market share compared to 15% for R. If you are planning to step your foot in Data Analytics, now is the right time for you to start with <strong><em>SAS Certification Training</em></strong>. Now, let us move on to some of the most important SAS interview questions that can be asked in your SAS interview.</p><h3>SAS Interview Questions</h3><h4>1. List down the reasons for choosing SAS over other data analytics tools.</h4><p><strong>Answer:</strong> We will compare SAS with the popular alternatives in the market based on the following aspects:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*2v_qjGYTrcP7bymM2s4Qyg.png" /></figure><h4>2. What is SAS?</h4><p><strong>Answer:</strong> SAS (<strong>Statistical Analytics System</strong>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*s0vNMAg55QCYNpH0.png" /></figure><ul><li>SAS is a software suite for advanced analytics, multivariate analyses, business intelligence, data management and predictive analytics</li><li>It is developed by SAS Institute.</li><li>SAS provides a graphical point-and-click user interface for non-technical users and more advanced options through the SAS language.</li></ul><h4>3. What are the features of SAS?</h4><p><strong>Answer:</strong> The following are the features of SAS:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FOZiwK4C5fc-r02w.png" /></figure><p><strong>Figure:</strong> <em>SAS Interview Questions — Features of SAS</em></p><ol><li><strong>Business Solutions: </strong>SAS provides business analysis that can be used as business products for various companies to use.</li><li><strong>Analytics: </strong>SAS is the market leader in the analytics of various business products and services.</li><li><strong>Data Access &amp; Management: </strong>SAS can also be use as a DBMS software.</li><li><strong>Reporting &amp; Graphics: </strong>Hello SAS helps to visualize the analysis in the form of summary, lists and graphic reports.</li><li><strong>Visualization: </strong>We can visualize the reports in the form of graphs ranging from simple scatter plots and bar charts to complex multi-page classification panels.</li></ol><h4>4. Mention few capabilities of SAS Framework.</h4><p><strong>Answer: </strong>The following are the four capabilities in SAS Framework:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*neK-JCphSh1xibED.png" /></figure><p><strong>Figure: </strong><em>SAS Interview Questions — SAS Framework</em></p><ol><li><strong>Access: </strong>As we can learn from the figure, SAS allows us to access data from multiple sources like an Excel file, raw database, Oracle database and SAS Datasets.</li><li><strong>Manage:</strong> We can then manage this data to subset data, create variables, validate and clean data.</li><li><strong>Analyze:</strong> Further, analysis happens on this data. We can perform simple analyses like frequency and averages and complex analyses including regression and forecasting. SAS is the gold standard for statistical analyses.</li><li><strong>Present:</strong> Finally we can present our analysis in the form of list, summary and graphic reports. We can either print these reports, write them to data file or publish them online.</li></ol><h4>5. What is the function of output statement in a SAS Program?</h4><p><strong>Answer: </strong>You can use the OUTPUT statement to save summary statistics in a SAS data set. This information can then be used to create customized reports or to save historical information about a process.</p><p>You can use options in the OUTPUT statement to</p><ol><li>Specify the statistics to save in the output data set,</li><li>Specify the name of the output data set, and</li><li>Compute and save percentiles not automatically computed by the CAPABILITY procedure.</li></ol><h4>6. What is the function of Stop statement in a SAS Program?</h4><p><strong>Answer:</strong><em> Stop statement </em>causes SAS to stop processing the current data step immediately and resume processing statement after the end of current data step.</p><h4>7. What is the difference between using drop = data set option in data statement and set statement?</h4><p><strong>Answer: </strong>If you don’t want to process certain variables and you do not want them to appear in the new data set, then specify drop = data set option in the <em>set</em> statement.</p><p>Whereas If want to process certain variables and do not want them to appear in the new data set, then specify drop = data set option in the <em>data</em> statement.</p><h4>8. Given an unsorted data set, how to read the last observation to a new data set?</h4><p><strong>Answer: </strong>We can read the last observation to a new data set using end= data set option.</p><p>For example:</p><p>data work.calculus;<br>set work.comp end=last;<br>If last;<br>run;</p><p>Where <em>calculus</em> is a new data set to be created and <em>comp</em> is the existing data set. <em>last</em> is the temporary variable (initialized to 0) which is set to 1 when the set statement reads the last observation.</p><h4>9. What is the difference between reading data from an external file and reading data from an existing data set?</h4><p><strong>Answer: </strong>The main difference is that while reading an existing data set with the SET statement, SAS retains the values of the variables from one observation to the next. Whereas when reading the data from an external file, only the observations are read. The variables will have to re-declared if they need to be used.</p><h4>10. How many data types are there in SAS?</h4><p><strong>Answer: </strong>There are two data types in SAS. Character and Numeric. Apart from this, dates are also considered as characters although there are implicit functions to work upon dates.</p><h4>11. What is the difference between SAS functions and procedures?</h4><p><strong>Answer: </strong>Functions expect argument values to be supplied across an observation in a SAS data set whereas a procedure expects one variable value per observation.</p><p>For example:</p><p>data average ;<br>set temp ;<br>avgtemp = mean( of T1 – T24 ) ;<br>run ;</p><p>Here arguments of mean function are taken across an observation. The mean function calculates the average of the different values in a single observation.</p><p>proc sort ;<br>by month ;<br>run ;<br>proc means ;<br>by month ;<br>var avgtemp ;<br>run ;</p><p>Proc means is used to calculate average temperature by month (taking one variable value across an observation). Here, the procedure <em>means </em>on the variable month.</p><h4>12. What are the differences between sum function and using “+” operator?</h4><p><strong>Answer: </strong>SUM function returns the sum of non-missing arguments whereas “+” operator returns a missing value if any of the arguments are missing.</p><p>Example:<br>data mydata;<br>input x y z;<br>cards;<br>33 3 3<br>24 3 4<br>24 3 4<br>. 3 2<br>23 . 3<br>54 4 .<br>35 4 2<br>;<br>run;</p><p>data mydata2;<br>set mydata;<br>a=sum(x,y,z);<br>p=x+y+z;<br>run;</p><p>In the output, value of p is missing for 4th, 5th and 6th observation as:</p><pre>a p<br>39 39<br>31 31<br>31 31<br>5 .<br>26 .<br>58 .<br>41 41</pre><h4>13. What are the differences between PROC MEANS and PROC SUMMARY?</h4><p><strong>Answer: </strong>PROC MEANS produces subgroup statistics only when a BY statement is used and the input data has been previously sorted (using PROC SORT) by the BY variables.</p><p>PROC SUMMARY automatically produces statistics for all subgroups, giving you all the information in one run that you would get by repeatedly sorting a data set by the variables that define each subgroup and running PROC MEANS. PROC SUMMARY does not produce any information in your output. So you will need to use the OUTPUT statement to create a new DATA SET and use PROC PRINT to see the computed statistics.</p><h4>14. Give an example where SAS fails to convert character value to numeric value automatically?</h4><p><strong>Answer: </strong>Suppose value of a variable PayRate begins with a dollar sign ($). When SAS tries to automatically convert the values of PayRate to numeric values, the dollar sign blocks the process. The values cannot be converted to numeric values.</p><p>Therefore, it is always best to include <em>INPUT</em> and <em>PUT</em> functions in your programs when conversions occur.</p><h4>15. How do you delete duplicate observations in SAS?</h4><p><strong>Answer: </strong>There are three ways to delete duplicate observations in a dataset:</p><ol><li>By using nodups in the procedureProc sort data=SAS-Dataset nodups;<br>by var;<br>run;</li></ol><p>2. By using an SQL query inside a procedure</p><p>Proc sql;<br>Create SAS-Dataset as select * from Old-SAS-Dataset where var=distinct(var);<br>quit;</p><p>3. By cleaning the data</p><p>Set temp;<br>By group;<br>If first.group and last.group then<br>Run;</p><h4>16. How does PROC SQL work?</h4><p><strong>Answer: </strong>PROC SQL is a simultaneous process for all the observations. The following steps happen when PROC SQL is executed:</p><ol><li>SAS scans each statement in the SQL procedure and check syntax errors, such as missing semicolons and invalid statements.</li><li>SQL optimizer scans the query inside the statement. The <em>SQL Optimizer</em> decides how the SQL query should be executed in order to minimize run time.</li><li>Any tables in the <em>FROM</em><strong> </strong>statement are loaded into the data engine where they can then be accessed in memory.</li><li>Code and Calculations are executed.</li><li>Final Table is created in memory.</li><li>Final Table is sent to the output table described in the SQL statement.</li></ol><h4>17. Briefly explain Input and Put function?</h4><p><strong>Answer: </strong>Input function — Character to numeric conversion- Input(source,informat)</p><p>put function — Numeric to character conversion- put(source,format)</p><h4>18. What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?</h4><p>Weeks = intck (‘week’,’31 dec 2000’d,’01jan2001’d);<br>Years = intck (‘year’,’31 dec 2000’d,’01jan2001’d);<br>Months = intck (‘month’,’31 dec 2000’d,’01jan2001’d);</p><p><strong>Answer: </strong>Here, we will calculate the weeks between 31st December, 2000 and 1st January, 2001. 31st December 2000 was a Sunday. So 1st January 2001 will be a Monday in the same week. Hence, Weeks = 0</p><p>Years = 1, since both the days are in different calendar years.</p><p>Months = 1 ,since both the days are in different months of the calendar.</p><h4>19. Suppose the variable address stores the following expression:</h4><p>209 RADCLIFFE ROAD, CENTER CITY, NY, 92716</p><p>What would be the result returned by the scan function in the following cases?</p><p><strong>a=scan(address,3);</strong><br><strong> b=scan(address,3,’,’);</strong></p><p><strong>Answer: </strong>a=Road; b=NY</p><h4>20. What is the length assigned to the target variable by the scan function?</h4><p><strong>Answer: </strong>200</p><h4>21. Name few SAS functions?</h4><p><strong>Answer: </strong>Scan, Substr, trim, Catx, Index, tranwrd, find, Sum.</p><h4>22. What is the work of tranwrd function?</h4><p><strong>Answer: </strong><em>TRANWRD</em> function replaces or removes all occurrences of a pattern of characters within a character string.</p><h4>23. Consider the following SAS Program</h4><p>data finance.earnings;<br>Amount=1000;<br>Rate=.075/12;<br>do month=1 to 12;<br>Earned+(amount+earned)*(rate);<br>end;<br>run;</p><h4>What would be the value of month at the end of data step execution and how many observations would be there?</h4><p><strong>Answer: </strong>Value of month would be 13</p><p>No. of observations would be 1</p><h4>24. How do dates work in SAS data?</h4><p>Data is central to every data set. In SAS, data is available in tabular form where variables occupy the column space and observations occupy the row space.</p><ul><li>SAS treats numbers as numeric data and everything else falls under character data. Hence SAS has two data types numeric and character.</li><li>Apart from these, dates in SAS are represented in a special way compared to other languages.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kZ5RBNtlgX2gEi3b.png" /></figure><p><strong>Figure:</strong> <em>SAS Interview Questions — SAS Dates</em></p><ul><li>A SAS date is a numeric value equal to the number of days since January 1, 1960.</li><li>Apart from Date Values, there are many tools to work on dates such as informats for reading dates, functions for manipulating dates and formats for printing dates.</li></ul><h4>25. Consider the following SAS Program</h4><p>data finance;<br>Amount=1000;<br>Rate=.075/12;<br>do month=1 to 12;<br>Earned+(amount+earned)*(rate);<br>output;<br>end;<br>run;</p><h4>How many observations would be there at the end of data step execution?</h4><p><strong>Answer: </strong>12</p><h4>26. How do you use the do loop if you don’t know how many times you should execute the do loop?</h4><p><strong>Answer: </strong>We can use ‘<em>do until’</em> or <em>‘do while’ </em>to specify the condition.</p><h4>27. What is the difference between do while and do until?</h4><p><strong>Answer: </strong>An important difference between the <em>DO UNTIL</em> and <em>DO WHILE</em> statements is that the DO WHILE expression is evaluated at the top of the DO loop. If the expression is false the first time it is evaluated, then the DO loop never executes. Whereas DO UNTIL executes at least once.</p><h4>28. How do you specify the number of iterations and specific condition within a single do loop?</h4><p><strong>Answer:</strong></p><p>data work;<br>do i=1 to 20 until(Sum&gt;=20000);<br>Year+1;<br>Sum+2000;<br>Sum+Sum*.10;<br>end;<br>run;</p><p>This iterative DO statement enables you to execute the DO loop until Sum is greater than or equal to <em>20000 </em>or until the DO loop executes 10 times, whichever occurs first.</p><h4>29. What are the parameters of Scan function?</h4><p><strong>Answer: </strong>This is how the scan function is used.</p><p>scan(argument,n,delimiters)</p><p>Here, <em>argument</em> specifies the character variable or expression to scan,</p><p><em>n </em>specifies which word to read, and</p><p><em>delimiters</em> are special characters that must be enclosed in single quotation marks.</p><p>data mymerge;<br>merge mydata1 mydata2;<br>run;</p><p>If the observations do not match, then match merging is suitable</p><p>data mydata1;<br>input id class $;<br>cards;<br>1 Sa<br>2 Sd<br>2 Sp<br>3 Rd<br>4 Uj<br>;</p><p>data mydata2;<br>input id class1 $;<br>cards;<br>1 Sac<br>2 Sdf<br>3 Rdd<br>3 Lks<br>5 Ujf<br>;</p><p>data mymerge;<br>merge mydata1 mydata2;<br>by id<br>run;</p><p>I hope this set of SAS interview questions will help you in preparing for your interview. Further, I would recommend SAS Tutorial videos from Edureka to learn more.</p><p>If you wish to check out more articles on the market’s most trending technologies like Python, DevOps, Ethical Hacking, then you can refer to <a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=sas-interview-questions/">Edureka’s official site</a></p><p><em>Originally published at </em><a href="https://www.edureka.co/blog/interview-questions/sas-interview-questions/"><em>https://www.edureka.co</em></a><em> on March 29, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea3939a119d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/top-50-sas-interview-questions-ea3939a119d0">Top 50 SAS Interview Questions You Must Prepare In 2021</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain Security: Is Blockchain Really Secure?]]></title>
            <link>https://medium.com/edureka/blockchain-security-is-blockchain-f7be8d4d54c3?source=rss-c8b643e1423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7be8d4d54c3</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[blockchain-security]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[hashing]]></category>
            <dc:creator><![CDATA[Bhavitha Thippanna]]></dc:creator>
            <pubDate>Tue, 26 Feb 2019 14:49:58 GMT</pubDate>
            <atom:updated>2021-09-30T16:54:37.927Z</atom:updated>
            <content:encoded><![CDATA[<p>The security of personal data especially is stored online, is important and also a human right. For decades, it has been at risk and constantly deteriorated. Blockchain technology provides an elegant solution to this problem. <strong>Blockchain</strong>, as the name indicates, is a chain of digital blocks that contain a set of transactions. All the transactions in a block, form a Merkel root and a hash is generated using it, which is included in the block header. Each block in the blockchain is connected to the previous block through the block hash value. This in turn makes the blockchain resistant to any sort of tampering, because a hacker would need to change the block containing that transaction as well as those linked to it, to avoid exposure.</p><p>The blockchain is designed to be immutable, tamper-proof and secure. The features that help achieve this are:</p><ul><li>Decentralization</li><li>Cryptography &amp; Hashing</li><li>Consensus Protocol</li></ul><p>Let’s discuss these properties.</p><h3>Decentralization</h3><p>Blockchain works on a decentralized network where bits and pieces of information are passed and updated to all the participants in a consistent manner. Hence, everyone has the latest updated information with them. When any changes are made, it will get validated by all the participants and once it gets validated, only then will it append in the blockchain. So we can say, decentralization allows for a single version of the truth but no single point of failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2zELN2SY0wW49RJo.jpg" /></figure><h3>Cryptography &amp; Hashing</h3><p>It is a complex mathematical algorithm that prevents attacks. All the transactions are cryptographically hashed and included in the block. Hashing takes an input value and applies a hashing algorithm (SHA-256 in the case of Bitcoin) to produce a new value which we call a hash digest. The digest is of fixed length depending on the algorithm used. Looking at the digest, it is impossible to guess the value, also, even a slight change in value makes the changes the digest completely, in an unpredictable manner. Now, this hash of the transactions is included in the block header along with the block hash of the previous block, and together a new block hash is generated. Now this block hash will be included in the next block header. This is how a cryptographically secured hash function is used to form a chain of blocks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9ldVE4W5eMxEfMSl.jpg" /></figure><p>In addition to this, every transaction is digitally signed. To explain this, I’ll take an example. Suppose you want to send a few bitcoin to <strong><em>ABC</em></strong>. So you will cryptographically hash my message with my private key and send the hash along with the address of <strong><em>ABC</em></strong>. Now everyone in the network will be able to view the transaction and can validate using my public key, but only <strong><em>ABC</em> </strong>will be able to add those bitcoins in his wallet. So, everyone can see the transaction but no one can steal it.</p><h3>Consensus Protocol</h3><p>The consensus protocol is an agreement of the majority of participants of the network regarding the validity of the transaction. A single miner validates the transaction while the entire network can confirm the credibility of the validator by checking the <strong><em>‘proof-of-work</em></strong>. So, even if there are few malicious participants in the network, they are easily weeded out and, their opinion never matters.</p><p>These fundamental properties form the trifecta of security that integrates into blockchain and discourages any kind of foul play</p><h3>It’s Good but Not Perfect</h3><p>Reading all this might have given you the sense that blockchain is secure and that is an absolute fact. That is not the case as there are cracks in the façade. The most persuasive blockchain vulnerabilities are the way blockchain interacts with other entities. Smart contracts can automate many blockchain tasks, but they are only as good as they are coded. Although they are not a part of the blockchain, they do interact with it, so if the code is poorly written, hackers could infiltrate the smart contract and steal the wealth.</p><p>Similarly, centralized institutions that interact with the blockchain could put the blockchain network at risk. Hackers generally target centralized repositories where there is a single point of failure, a vulnerability they can exploit. So, the security of blockchain technology should not be confused with news about hacks that are carried out in cryptocurrency exchanges.</p><p>Here are a few things that could be implemented –</p><ul><li>Prevent everyone from accessing sensitive information except who are authorized to have access to it. Membership Service Provides (MSP) helps on this. They are responsible to enroll the participants and provide access to their ID according to their role.</li><li>Protect the private keys using the highest-grade security standards so they can never be misused.</li></ul><p>All these capabilities in the blockchain network will add the protection it needs to prevent attacks.</p><h3>Conclusion</h3><p>I would like to conclude this article on ‘Blockchain Security’ by saying that, a blockchain network is only as secure as its infrastructure. When establishing a blockchain network, you must look for the best platform for deployment. Even though blockchain has inherent features that provide security, known vulnerabilities in the infrastructure can be manipulated by malicious participants. The best approach would be to have an infrastructure with integrated security.</p><p>Blockchain is still an emerging technology, and it’s getting better every day. Blockchain researchers are working to patch up security vulnerabilities. We have also witnessed the hard-fork in extreme cases, where they can result in a new version of that blockchain. Considering all things, blockchain is a much better solution for many enterprises. But still, it is important to keep developing and improving the blockchain ecosystem to make it as secure as possible.If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, DevOps, Ethical Hacking, then you can refer to <a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=blockchain-security">Edureka’s official site.</a></p><p>Do look out for other articles in this series that will explain the various other aspects of Blockchain.</p><blockquote><em>1.</em><a href="https://medium.com/edureka/ethereum-tutorial-with-smart-contracts-db7f80175646"><em> Ethereum Tutorial</em></a></blockquote><blockquote><em>2.</em><a href="https://medium.com/edureka/ethereum-private-network-tutorial-22ef4119e4c3"><em> Ethereum Private Networks</em></a></blockquote><blockquote><em>3. </em><a href="https://medium.com/edureka/smart-contracts-301d39565b76"><em>What are Smart Contracts?</em></a></blockquote><blockquote><em>4. </em><a href="https://medium.com/edureka/solidity-tutorial-ca49906bdd47"><em>Solidity Tutorial</em></a></blockquote><blockquote><em>5. </em><a href="https://medium.com/edureka/developing-ethereum-dapps-with-truffle-7533289c8b2"><em>Truffle Ethereum Tutorial</em></a></blockquote><blockquote><em>6. </em><a href="https://medium.com/edureka/ethereum-development-tools-7175503a1ac7"><em>Best Ethereum Development Tools</em></a></blockquote><blockquote><em>7. </em><a href="https://medium.com/edureka/hyperledger-fabric-184667460-edc184667460"><em>Hyperledger Fabric</em></a></blockquote><blockquote><em>8. </em><a href="https://medium.com/edureka/hyperledger-vs-ethereum-bdc868e10817"><em>Hyperledge vs Ethereum</em></a></blockquote><p><em>Originally published at </em><a href="https://www.edureka.co/blog/blockchain-security/"><em>https://www.edureka.co</em></a><em> on February 26, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7be8d4d54c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edureka/blockchain-security-is-blockchain-f7be8d4d54c3">Blockchain Security: Is Blockchain Really Secure?</a> was originally published in <a href="https://medium.com/edureka">Edureka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>