What happens if I remove static from main method?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is a boolean in java?

0 Answers  


What happens if I remove static from main method?

0 Answers  


What is classpath?

0 Answers  


What is super keyword explain with example?

0 Answers  


Differentiate storage classes on the basis of their scope?

0 Answers   Fidelity,


What access modifiers can be used for variables?

0 Answers  


What is logical variable?

0 Answers  


How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


what is the difference between statis block and static variable

7 Answers  


What is an arraylist in java?

0 Answers  


In the below example, what will be the output?

0 Answers  


Can we create constructor in abstract class ?

0 Answers  


Categories