Question
Explain Static nested Classes ?

Answers

The accessibility (public, protected, etc.) of the static nested class is defined by the outer class.

A static nested class is not an inner class, it's a top-level nested class.

The name of the static nested class is expressed with OuterClassName.NestedClassName syntax.

When you define an inner nested class (or interface) inside an interface, the nested class is declared implicitly public and static.

Static nested classes can be declared abstract or final.

Static nested classes can extend another class or it can be used as a base class.

Static nested classes can have static members.

Static nested classes can access the members of the outer class (only static members, obviously).

The outer class can also access the members (even private members) of the nested class through an object of nested class. If you don’t declare an instance of the nested class, the outer class cannot access nested class elements directly.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q What is an Airbrush tool?
  • Q What is India’s official position on Tibet? How has it impacted Indo-China relation?
  • Q What are some ways to avoid brute force hacks?
  • Q Why can't i put where at the top of an aspx file and write my server-side scripts in c ?
  • Q Respiratory distress syndrome of the premature infant is caused by what deficiency? What is the radiographic manifestation of this deficiency?
  • Q Explain the use of ‘Storage Location Rule’.?
  • Q The Council of Ministers of Delhi shall hold Office during the pleasure of
  • Q What is GAC and where it is located?
  • Q Different types of communications? explain.
  • Q Explain my string data is all coming out as question marks?
  • Q name some real time OS