Can we execute java program without main method?


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

Post New Answer

More Core Java Interview Questions

Explain the difference between throw and throws in java?

0 Answers  


What is abstract class constructor called?

0 Answers  


What is use of super keyword?

0 Answers  


What are autoboxing and unboxing? When does it occur?

0 Answers  


Explain with example the concept of constant variable in java.

0 Answers   HCL,






What is adapter in java?

0 Answers  


explain the concept of inheritance with an example?

9 Answers   Polaris,


hi to all. well can you please tell me that why String class is immutable? Thanks in advance.

5 Answers   Huawei,


what is difference between colection and collections?

25 Answers   Amdocs, IBM, Infosys, Ipog Software, Polaris, Tech Mahindra,


10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;

2 Answers  


What is the collection interface?

0 Answers  


difference between java ,c#&java,c++

3 Answers  


Categories