Saturday 3 January 2015

Comment For Software Developers

Java Single Line Comments 


public class JavaComments {

// Below is the Main Method
public static void main{
    System.out.println("Java Single Line Comments");
}

}
-------------------------------------------------------------------------------------------------------------------

Java Multi Line Comments


public class JavaComments {

public static void main{
    /* Displaying the out put using SOP
        created on : 03-01-2014
        Author : Naidu
        Class : JavaComments
    System.out.println("Java Multi Line Comments");
}

}
-------------------------------------------------------------------------------------------------------------------

JSP Comments


<%

<%-- JSP Comments --%>

String Uname = Config.getInitParameter("uname");
out.println(Uname);

%>
-------------------------------------------------------------------------------------------------------------------


HTML Comments


<html><head></head><body>
<p>Hi Hope You are doing Good  </p>
<!-- Some Text in the Comments -->
</body></html>
-------------------------------------------------------------------------------------------------------------------

JavaScript Comments


function myObject(){

  var text = 'abcdef';
 
  // Jacascript Comments
  alert(text);

}
-------------------------------------------------------------------------------------------------------------------

Xml File Comments


<xml>
  
  <data>abcd</data>

  <data>vfrt</data>

   //Xml Comments

</xml>
-------------------------------------------------------------------------------------------------------------------

Properties File Comments


########### Cookie Information ###########
#admin.cookie.domain=http://localhost:123456
app.rememberme.cookie.userid = userid

######## session time out in minutes only ########
app.session.sessiontimeout=180

!!!!!!!!!! SMTP  !!!!!!!!!!!!  
smtp.mail.host=smtpout.xyz.abcdef.xyz

-------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment