Difference between abstract class and Interfaces in Java

Answer Posted / your friend

abstract classes can have any type of medthods but
interface allows only abtract methods.
Interface is like a class not a class .

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1. Consider the following code in our example assembly language: ; an example bit of assembly code ROOT: W FATHER FATHER: W SON1 W SON2 SON1: W NIL W NIL ; ---------------------- SON2: W GRANDSON W NIL GRANDSON: W NIL W NIL NIL = 0 Assemble this code carefully following the two pass model, and show the symbol table at the point marked by the dashed line during each pass.

1807


Write a program to create a process in UNIX

2085


what is meant by life cycle of a business

1694


how many types of bytes are there???

1975


how to add Servlet-api.jar file into eclipse 3.3.2 ?

4045






could u please also write an example of a code that involves instances from an abstract class just as u did for interfaces because u said it could also work which i really doubt. thanks

1621


Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.

669


1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END

2346


What sysoption determines where the macro facility searches a specific catalog for complied macro?

1645


Busy waiting is a method whereas a taskwaits for a given event by continiously checking for an event to occur. What is the main problem with this approach

1403


what is the difference between Windows application and Unix application?

2152


Q1.Write a C program which asks the user for a number between 1 to 9 and shows the  number. If the user inputs a number out of the specified range, the program should  show an error and prompt the user for a valid input.

2271


5. How do you round the addition or subtraction of two numbers in assembler?

1769


Write a program to find factorial of a number using functions

1236


Is buffer size and file block size is similar? If similar,at which case it will be same size?

1729