Thursday 29 December 2016

Camel case in Java

CamelCase in java naming conventions: -

Java follows the Syntax of camelcase for naming the classes, interfaces, methods and variables.
For Example: - firstSafal, secondThird() etc

Anonymous object: -

Anonymous object are those Objects which has no name and no
reference is known as Anonymous object

Example: -

class saf
{
            void sa()
            {
                        System.out.println("Hello Safal");
            }
public static void main(String args[])
            {
                        new saf().sa();//calling method by anonymous object
            }
}