Difference between abstract class and Interfaces in Java

Answer Posted / narasimha raju

An abstract classes can have concrete methods and declares
abstract method which method can implement in different
ways. whereas in interface all are abstract methods.
in abstract class we can declare any type of variable
but in interface all are final variables.

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/

1619


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1610


Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers.

788


What is the first message line that any language learning prints on the screen? and why?

1681


Can i please VHDL code for D-Latch with clear input ?? (HINT: Set up a “Process” with appropriate sensitivity list to get the desired D-Latch with Clr working.) Inputs and Outputs: entity Lab4b is Port ( Clr, Clk, D : in STD_LOGIC; Q : out STD_LOGIC); end Lab4b;

992






how to stop execution of step 3 in a job mainframe

1711


Hi guyes, I have cleared 2 technical rounds with cts for liferay and java techonologies, i have client round next week, please tell me how to prepare for this what questions i should be ready to face?

3364


Any real time example of O2C process from taking order till creating invoice.

1788


How to call dll API sub routine in VB Form.

1909


how to display xisheet in list box in c# .net

1626


smal talk is pure object oriented or not?

1527


what is d main diff between the java and .net framework

1548


what is the purpose of checked Menu options

1985


Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance

1488


differences between qtp10.0 and 11.0 ?

1812