Hire Our Expert Programmer & Technical Writer to do your Capstone Project
+1 vote
in Programming Languages & Algorithms by

1 Answer

+1 vote
selected by (user.guest)
Best answer

An interface is similar to class in the following ways:

1. An interface can contain any number of methods.

2. An interface is written in a file with a java extension, with the name of the interface matching the name of the file.

3. The bytecode of an interface appears in a class file.

4. Interfaces appear in packages and their corresponding bytecode file must be in a directory structure that matches the package name.

Related questions

+1 vote
2 answers 137 views
+2 votes
1 answer 163 views
+1 vote
1 answer 137 views
+1 vote
1 answer 282 views
+1 vote
1 answer 3.0k views
+1 vote
1 answer 135 views
asked Dec 15, 2021 in Programming Languages & Algorithms by (user.guest)
+1 vote
1 answer 200 views
Welcome to CPENTalk.com

Disclaimer: Every user is solely responsible for anything that he/she posts or uploads on CPENTalk.