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 do you mean by object?

640


What is the difference between inner class and nested class?

628


What is percentage in java?

665


What are inner classes or non static nested classes in java?

805


What are computer functions?

582






What is the benefit of inner classes in java?

722


Write a program to check string is palindrome without using loop?

654


Who is founder of java?

614


Describe what a thread-local variable is in java?

653


What environment variables do I need to set on my machine in order to be able to run java programs?

674


how does multithreading take place on a computer with a single cpu? : Java thread

782


Is java developer a good career?

655


What is null mean in java?

714


What is the final keyword denotes?

766


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

667