can we make a class static without using static keyword?

Answer Posted / darwin

no not at all possible with this present java framework
format.. it coukd be possible only in future if they
enhances that option to do so.. and additionallly no outer
class can be static. you can also check by compiling in
java compiler...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of polymorphism?

874


What is polymorphism what are the different types of polymorphism?

752


Which is better struts or spring?

817


What is encapsulation c#?

816


Which is not an object oriented programming language?

743


Why is static class not inherited?

836


What is oops with example?

775


What is advantage of inheritance?

946


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1910


Why do we use polymorphism?

771


What is object in oop with example?

969


What does no cap mean?

802


explain sub-type and sub class? atleast u have differ it into 4 points?

2049


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1991


What is the main purpose of inheritance law?

952