can we make a class static without using static keyword?

Answer Posted / raja

see Shadab Alam, let me clear,first of all an outer class
can't be a static it could be either public or abstract or
final only, unfortunately Java Compiler can't allow other
than these three, so we can make any inner class as static.

and we can't make the behaviour of a class as static
without using "static" keyword. Thank u for asking this one.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1789


What is destructor in oop?

621


What is protected in oop?

602


What is abstraction with example?

601


What is overriding in oops?

598






Can we define a class within the interface?

551


Why polymorphism is used in oops?

581


Write a program to reverse a string using recursive function?

1788


Give two or more real cenario of virtual function and vertual object

1851


What are the benefits of polymorphism?

617


what type of questions

1695


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2029


How to improve object oriented design skills?

569


when to use 'mutable' keyword and when to use 'const cast' in c++

1642


What is encapsulation in ict?

603