What is local class in java?



What is local class in java?..

Answer / Dimple Shukla

A local class in Java is a non-static inner class declared within the body of a method or a block-like statement. Local classes can access and manipulate final variables of the enclosing scope.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why singleton class is used in java?

1 Answers  


how many access specifiers are available in java

11 Answers  


When will you define a method as static in Java?

1 Answers   SwanSoft Technologies,


String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ?

6 Answers   Flextronics, Keane India Ltd,


Does 'true' and 'false' are keywords?

5 Answers  


What is thread safe in java?

1 Answers  


we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on-startup> in deployment descripter for loading servlets like serv1 N serv2? so 'll it take serv1 or serv2

2 Answers   CSC,


Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?

2 Answers  


What is difference between pointer and reference?

1 Answers  


What is threaded programming and when is it used? : Java thread

1 Answers  


What is function and method in java?

1 Answers  


Write an algorithm for quick sort?

1 Answers   Virtusa,


Categories