Friday, 22 March 2013

how can i use a default package inside another class

Q:- how can i use a default package inside another class?
ANS:- if we make our second class in default package in any other destination then we can use the default package

Friday, 8 March 2013

can we execute a class without main

Q:- can we execute a class without main?
Ans:- The ans is yes as well as no
  yes because before release of final version of jdk 7 we can execute a class having only static block in it
and no because after jdk7 no class can be executed without a main function