logo

CuriousTab

CuriousTab

Discussion


Home Technical Questions Programming See What Others Are Saying!
  • Question
  • public static void main string[] args Meaning is?


  • Correct Answer
  • Here in this declaration public static void main string[] args, each keyword has its importance 1 public - Here public is an access specifier which allows the main method to be accessible everywhere 2 static - static helps the main method to get loaded without getting called by any instance/object 3 void - void clarifies that the main method will not return any value 4 main - It's the name of the method 5 String[] args - Here we are defining a String array to pass arguments at the command line args is the variable name of the String array 

  • Tags: Project Manager, IT Trainer, Database Administrator, Analyst

    More questions

    • 1. Would the following program compile? main() { int a = 10, *j; void *k; J = k = &a; J++; k++; printf ("\n%u %u", j, k); }
    • Discuss
    • 2. What would be the output of the following program? main() { char ch ='A'; printf ("%d%d", sizeof (ch), sizeof ('A')); }
    • Discuss
    • 3. What is the type of the algorithm used in solving the 8 Queens problem ?

    • Options
    • A. Dynamic Programming
    • B. BackTracking
    • C. Branch and Bound
    • D. None
    • Discuss
    • 4. The SQL statements that take care of security and authorization are

    • Options
    • A. DDL
    • B. DML
    • C. DCL
    • D. None
    • Discuss
    • 5. ON UPDATE CASCADE ensures which of the following?

    • Options
    • A. Normalization
    • B. Data Integrity
    • C. Materialized Views
    • D. All of the above.
    • Discuss
    • 6. A DBMS that combines a DBMS and an application generator is ________ .

    • Options
    • A. Microsoft's SQL Server
    • B. Microsoft's Access
    • C. IBM's DB2
    • D. Oracle Corporation's Oracle
    • Discuss
    • 7. A goal of data mining includes which of the following?

    • Options
    • A. To explain some observed event or condition
    • B. To analyze data for expected relationships
    • C. To confirm that data exists
    • D. To create a new data warehouse
    • Discuss
    • 8. ________ is an open source DBMS product that runs on UNIX, Linux and Windows.

    • Options
    • A. MySQL
    • B. JSP/SQL
    • C. JDBC/SQL
    • D. Sun ACCESS
    • Discuss
    • 9. Which of the following is the original purpose of SQL?

    • Options
    • A. To specify the syntax and semantics of SQL data definition language
    • B. To specify the syntax and semantics of SQL manipulation language
    • C. To define the data structures
    • D. All of the above.
    • Discuss
    • 10. If no multivalued attributes exist and no partial dependencies exist in a relation, then the relation is in what normal form?

    • Options
    • A. First normal form
    • B. Second normal form
    • C. Third normal form
    • D. Fourth normal form
    • Discuss


    Comments

    There are no comments.

Enter a new Comment