Important Rules In Java

Important Rules In Java Part . 2

Important Rules In Java

1 – Class Name :- 1st  letter should be capital letter.

 2 – Method Name or Function Name  1st  letter should be small letter.

       E.x :-  print(),  weindians(), …………

       But if a method name contain two word combination ,then 2nd  word , 1st  letter should be capital letter.

       This naming convertion is called as camel case.

        E.x :- nextInt() , nextDouble(),……….

 4 – Package Name :- 1st  letter should be small.

 5 – All keywords :- should be small letter.

Java Programming Structure

Header file            :           Packages

Main function      :          Class

Blocks                    :          {}

Statements          :           system.ot.println(“ ”);

Java Programming Structure

Now Friends If you like this post please tell us how can we help you to provide better knowledge?

If this post is use full for you please share the post with your friends.

Please follow as facebook :

Please follow as twitter :

And more information please visit here :

Please Subscribe on youtube :

Leave a Reply

Your email address will not be published. Required fields are marked *