<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sadaf Khan</title>
    <description>The latest articles on DEV Community by Sadaf Khan (@sadaf_khan_).</description>
    <link>https://dev.to/sadaf_khan_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2081226%2Fa1e3c9ab-2422-40c4-a411-387d9f19e6e8.jpg</url>
      <title>DEV Community: Sadaf Khan</title>
      <link>https://dev.to/sadaf_khan_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sadaf_khan_"/>
    <language>en</language>
    <item>
      <title>Post 3: Understanding Objects and Methods in Java</title>
      <dc:creator>Sadaf Khan</dc:creator>
      <pubDate>Thu, 03 Oct 2024 21:15:35 +0000</pubDate>
      <link>https://dev.to/sadaf_khan_/post-3-understanding-objects-and-methods-in-java-4lld</link>
      <guid>https://dev.to/sadaf_khan_/post-3-understanding-objects-and-methods-in-java-4lld</guid>
      <description>&lt;p&gt;An object is an instance of a class, and it is used to call methods. In our previous post, Post 2: &lt;a href="https://dev.to/sadaf_khan_/post-2-understanding-methods-in-java-3f57"&gt;Understanding Methods in Java&lt;/a&gt;, we discussed methods. Now, we’ll show how to call those methods through objects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1la6jn1p7o4i5pgk13f.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1la6jn1p7o4i5pgk13f.PNG" alt="Image description" width="618" height="648"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, the object and methods are created in two different classes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The class where the methods are created is called First1.&lt;/li&gt;
&lt;li&gt;The class where the object is created is called Second2.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Breakdown of First1 object1 = new First1();: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First1: This is the class name where the methods are defined.&lt;/li&gt;
&lt;li&gt;object1: This is the name of the object we are creating in the Second2 class.&lt;/li&gt;
&lt;li&gt;new: This is the keyword used to create a new object.&lt;/li&gt;
&lt;li&gt;First1(): This is the constructor, which initializes the new object.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At the bottom of the image, there's the output of the code.&lt;br&gt;
'Print of first Method'&lt;/p&gt;

&lt;p&gt;Calling a Method:&lt;br&gt;
object1.method1();&lt;/p&gt;

&lt;p&gt;Here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;object1: This is the object we created earlier.&lt;/li&gt;
&lt;li&gt;method1(): This is the method we are calling from the First1 class. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s important to note that method1 was defined in the First1 class.&lt;/p&gt;

&lt;p&gt;Attaching an image of the first method from the class 'First1' for your reference.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fods01j7fogg18xbqy42g.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fods01j7fogg18xbqy42g.PNG" alt="Image description" width="717" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Static Methods:&lt;br&gt;
Static methods are special methods that can be called without creating an object. Since they are linked to the class, not to any instance of the class, we don’t need to create objects to use them.&lt;/p&gt;

&lt;p&gt;I am attaching an image for your reference.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmsix3nl3wwfofnozn0wh.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmsix3nl3wwfofnozn0wh.PNG" alt="Image description" width="722" height="218"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this image, the marked part is the static method.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqqmtq05kyzkgfcjypvbl.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqqmtq05kyzkgfcjypvbl.PNG" alt="Image description" width="613" height="660"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this image, the marked part is the call to the static method. And at the bottom of the image you can see the code output.&lt;/p&gt;

</description>
      <category>java</category>
      <category>salesforce</category>
    </item>
    <item>
      <title>Post 2: Understanding Methods in Java</title>
      <dc:creator>Sadaf Khan</dc:creator>
      <pubDate>Wed, 02 Oct 2024 00:15:15 +0000</pubDate>
      <link>https://dev.to/sadaf_khan_/post-2-understanding-methods-in-java-3f57</link>
      <guid>https://dev.to/sadaf_khan_/post-2-understanding-methods-in-java-3f57</guid>
      <description>&lt;p&gt;A method is a block of code that performs a specific task.&lt;br&gt;
Structure of the Method &lt;/p&gt;

&lt;p&gt;public returnType methodName(parameterType parameterName) {&lt;br&gt;
    // Method body (code to be executed)&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Let's break down this &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;public: public is the Access Modifier. Whether you want to show it to the other or not. So here 'public' means that you want to show it to others. There are different types of Access Modifiers e.g., public, private, protected. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;returnType: It is what the method will return. If the method does not return anything then you type void.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;methodName: This is the name you give to the method, which should be descriptive of what the method does.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fddow4rfx90tuugzn0v7m.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fddow4rfx90tuugzn0v7m.PNG" alt="Image description" width="750" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In method 3("named as multiply") we assign the parameters in the parentheses after the method name because we want input from the users.&lt;/p&gt;

</description>
      <category>java</category>
      <category>salesforce</category>
    </item>
    <item>
      <title>Let's start with learning JAVA Post 1 :</title>
      <dc:creator>Sadaf Khan</dc:creator>
      <pubDate>Tue, 01 Oct 2024 22:50:04 +0000</pubDate>
      <link>https://dev.to/sadaf_khan_/lets-start-with-learning-java-2dga</link>
      <guid>https://dev.to/sadaf_khan_/lets-start-with-learning-java-2dga</guid>
      <description>&lt;p&gt;I use Eclipse as my Integrated Development Environment (IDE) for Java development. I successfully created my first program in Java, demonstrating how to print a message to the console.&lt;/p&gt;

&lt;p&gt;Print Command:&lt;br&gt;
System.out.println("First Program");&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4f2g2l57blcfs9dusfq.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4f2g2l57blcfs9dusfq.PNG" alt="Image description" width="617" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you type sysout and press clt+space, you can get the print command directly.&lt;/p&gt;

&lt;p&gt;In Java, you use double quotes ("") when printing text (strings), while integers can be printed without them. Additionally, the ln in println stands for "line," which means the next output will start on a new line.&lt;/p&gt;

&lt;p&gt;I’ve attached an image of my code and its output for reference.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw0ho761wo56nhz5viczl.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw0ho761wo56nhz5viczl.PNG" alt="Image description" width="611" height="580"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>salesforce</category>
    </item>
    <item>
      <title>Starting My Salesforce Developer Journey</title>
      <dc:creator>Sadaf Khan</dc:creator>
      <pubDate>Tue, 01 Oct 2024 22:04:20 +0000</pubDate>
      <link>https://dev.to/sadaf_khan_/starting-my-salesforce-developer-journey-30j6</link>
      <guid>https://dev.to/sadaf_khan_/starting-my-salesforce-developer-journey-30j6</guid>
      <description>&lt;p&gt;Today, I’m beginning my journey to learn Salesforce development. My aim is to understand the core concepts, tools, and best practices needed to excel in this platform.&lt;/p&gt;

&lt;p&gt;I’ll be sharing everything I learn here on Dev.to, from tips and resources to insights and challenges. If you're also learning or interested in Salesforce, feel free to connect with me. Let's grow together!&lt;/p&gt;

&lt;p&gt;Looking forward to sharing my experiences and learning from others along the way!&lt;/p&gt;

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