Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

class A
{
class B
{
psvm(String args[])
{
}
}
}
if the prg saved in A.java whats the o/p?

Answer Posted / chanchal

Compilation error:-

Becouse Inner classes cannot have static declarations

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of inner / nested classes ?

988


What is difference between path and classpath?

1174


Can finally block be used without a catch?

1009


What do you mean by an object in java?

1130


Can a top level class be private or protected?

1055


Why do we need strings in java?

987


What is purpose of keyword void?

1049


What is vector?

1061


Difference between object and reference?

1173


Is this valid in java ? Can we instantiate interface in java?

983


What is java and its types?

1094


What will happen when using pass by reference in java?

990


What are the rules for naming an array?

1060


What is an argument in java?

941


Why vector is used in java?

1025