Explain java coding standards for interfaces?



Explain java coding standards for interfaces?..

Answer / Santosh Kumar Verma

Java Coding Standards for interfaces include the following: Interfaces should be declared in lowercase with words separated by underscores. Each method in an interface should have a brief comment describing its purpose. All methods in an interface are public and abstract by default. Static variables can be defined in interfaces but they are final, static, and cannot be inherited by implementation classes. Interfaces should not contain implementation details or any instance variables.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is defined as false sharing in the context of multithreading?

1 Answers  


Explain the overview of UDP messaging.

1 Answers  


What is passing value java?

1 Answers  


What is thread synchronization in java?

1 Answers  


What is the difference between procedural and object-oriented programs?

1 Answers  


Name and explain the types of ways which are used to pass arguments in any function in java.

1 Answers  


What is command line used for?

1 Answers  


What is a resource leak ?

1 Answers  


What is the use of http-tunneling in rmi?

1 Answers  


What is private public protected in java?

1 Answers  


What is string pooling concept?

1 Answers  


os is developed in c no java is more secured then c na why dont the os developed is developed using java

2 Answers  


Categories