Question:Which one is the correct structure for declaring a method within a class? 

A class Hello{

 public static void amin(String args[]){

    System.out.println("Hello World !!");

 }

B class Hello{

     System.out.println("Hello World !!")
 

C class Hello{

 public static void amin{String args[]}(

    System.out.println("Hello World !!");

 )

D class Hello{



+ Answer
+ Report
Total Preview: 1295

Copyright © 2024. Powered by Intellect Software Ltd