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

Write a program to print the pattern given below

713


Can we have a try block without catch block?

758


what methods would you overwrite in java.lang.object class?

761


Can a class declared as private be accessed outside it’s package?

762


Are arrays primitive data types?

853


How you can force the garbage collection?

739


What do you understand by abstract classes?

831


What is blank final variable?

797


What is bigger kb or mb?

792


What is a method in programming?

870


What does the @override annotation do?

755


What is difference between wait and notify in java?

797


What is the destroy method?

817


What do you understand by copy constructor in java?

720


What are the differences between heap and stack memory?

762