What is interface and its use?

Answer Posted / ravikiran(aptech mumbai)

interface is a pure abstract class and is used to define a
template of methods

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State differences between C and Java?

847


What is t type java?

792


Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).

1791


Can we execute a program without main?

714


What is final?

787






How would you format a date in java? I.e. In the ddmmyyy format?

1067


What is a newline character in java?

749


Is it possible for a yielded thread to get chance for its execution again?

704


Explain purpose of sleep() method in java?

801


When should I use singleton?

680


What do you understand by copy constructor in java?

692


What is protected access modifier?

764


What is data structure in java?

702


How do you use compareto in java?

729


What is difference between iterator access and index access?

831