What happens when a main method is declared as private?

Answers were Sorted based on User's Feedback



What happens when a main method is declared as private?..

Answer / varsha vilas kalebag

IF MAIN METHOD IS DECLARED AS PRIVATE ,THEN WE CAN NOT
ACESSES THE PRVIATE MEMBERS IN ANOTHER CLASS

Is This Answer Correct ?    5 Yes 43 No

What happens when a main method is declared as private?..

Answer / vani

Nothing Happen.
Code compiles properly and executes properly.

Is This Answer Correct ?    5 Yes 76 No

Post New Answer

More Core Java Interview Questions

How can the checkbox class be used to create a radio button?

0 Answers  


can we add two numbers without using arthematic operators? if possible how?

5 Answers   CTS,


What is jagged array in java?

0 Answers  


What is volatile data type?

0 Answers  


Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types

4 Answers   TCS,






Write a program for recursive Traverse?

1 Answers  


Write a program to find the whether a number is an Armstrong number or not?

0 Answers   Aspire, Infogain,


How do you sort a set in java?

0 Answers  


What is the super void?

0 Answers  


what is collections in java?

4 Answers  


What is java dot?

0 Answers  


What is charat java?

0 Answers  


Categories