A person says that he compiled a java class successfully without even having a main method in it? Is it possible?


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

Post New Answer

More Core Java Interview Questions

Explain scope or life time of local variables in java?

0 Answers  


What are the notations in Java?

1 Answers   Cap Gemini,


What is the major drawback of internal iteration over external iteration?

0 Answers  


solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..

2 Answers  


How do you sort in java?

0 Answers  






What about interrupt() method of thread class ?

0 Answers  


What is a instance variable?

0 Answers  


Is a string literal?

0 Answers  


How do you convert string to int in java?

0 Answers  


What is the significance of listiterator?

0 Answers  


What is meant by Encapsulation? Can you write a class to explain encapsulation?

8 Answers   Ness Technologies,


What is the benefit of using enum to declare a constant?

0 Answers   Aspire, Infogain,


Categories