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

What is ambiguity in inheritance?

815


Why multiple inheritance is not allowed?

775


Templates mean

1807


Plese get me a perfect C++ program for railway/airway reservation with all details.

3636


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2347






How long to learn object oriented programming?

787


• What are the desirable attributes for memory managment?

1927


write a C++ program for booking using constructor and destructor.

2234


Which type does string inherit from?

806


What is oops?what is its use in software engineering?

732


What is new keyword in oops?

763


When not to use object oriented programming?

747


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1865


What is object-oriented programming? Webopedia definition

923


What is difference between inheritance and polymorphism?

751