recategorized by
501 views
1 votes
1 votes

The static keyword is used in public static void main() declaration in Java:

  1. To enable the $\text{JVM}$ to make call to the main(), as class has not been instantiated
  2. To enable the $\text{JVM}$ to make call to the main(), as class has not been inherited
  3. To enable the $\text{JVM}$ to make call to the main(), as class has not been loaded
  4. To enable the $\text{JVM}$ to make call to the main(), as class has not been finalized
recategorized by

1 Answer

Answer:

Related questions

452
views
1 answers
1 votes
gatecse asked Dec 9, 2020
452 views
Which of the following construct is not supported by Java Server Pages?$\text{JSP}$ Directives$\text{JSP}$ Scriptlets$\text{JSP}$ Actions$\text{JSP}$ Reaction
461
views
1 answers
1 votes
gatecse asked Dec 9, 2020
461 views
What is the output of the following program?abstract class sum { public abstract int sumOfTwo(int n1, int n2); public abstract int sumOfThree(int n1, int n2, int n3); ... $\text{Error}$
501
views
1 answers
1 votes
gatecse asked Dec 9, 2020
501 views
Which of the following Interface is not supported by $\text{JDBC}$ for connecting to Database in Java Programming language?Statement InterfacePrepared Statement InterfaceCallable Statement InterfaceDatabase Interface
505
views
1 answers
1 votes
gatecse asked Dec 9, 2020
505 views
In the given program:class Dialog1 { public static void main(String args[]) { Frame f1=new Frame("INDIA"); f1.setSize(300,300); f1.setVisible(true); ... are true?f1.setClear(true);f1.setVisible(true);f1.setlook(true);f1.setclean(true);