Answer Posted / eknath wagadre
private and static keyword in java we can't use those
keyword any of the outer block. we can use those keyword
only and only inside of the block.(Block i.e Class )
NOTE: Outer class can't be private but inner class can be
private(bcz of this is the part of the outer class and also
inner class can be static.)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the method in java?
What are the different approaches to implement a function to generate a random number?
Which methods cannot be overridden in java?
Difference between this() and super() ?
What is the difference between compile-time polymorphism and runtime polymorphism?
What is java objectoutputstream?
What is a Hash Table? What are the advantages of using a hash table?
What is complexity in java?
What are unchecked exceptions in java?
what is instanceof operator used in java?
How many types of literals are there in JAVA?
what is ststic with example
Write a function to find out longest palindrome in a given string?
how does the run() method in runnable work? : Java thread
Explain what access modifiers can be used for variables?