Home TechnologyProgrammingJava Subscribe to RSS

How To Write A Simple Java Program Using Static?

Answer Question

1 Answer - Sort by: Date | Rating

    Class a
    {
    public static void main(String arg[])
      {
         static int a=7,b=3,c;
           c=a+b;
         System.out.print("addition is c="+c);
       }
    }
    0 0

    Awanish  

    answered 3 months ago

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International