In java what is the difference between an abstract class and an interface




















Hello Eugene, I mean abstract class can instance variable which can hold values. They should've left interfaces for pure abstraction and added something like delegates for lambdas like in C.

The bridge between abstract class and interface is very very thin now. It's just that lambdas can only be used with f interfaces otherwise abstract class could do the same job. Also, you can extend only one abstract class, but you can implement as much interfaces as you would need right? If you ask me I think java8 comes with interface patch works just to introduce lambda expressions on collection framework, else java was facing so much competition before scripting programming.

How does percent abstraction works in java 8? Read a lot of articles but still not clear. Bimal Modak says:. Nagarjuna Reddy. M says:. Srikanth K says:. Vijay says:. Sreejith says:. Rawinder dhillon says:. Ramaseshan says:. Mallikarjuna says:. JDBC Introduction says:. Mayur Kumar says:.

Shailendra kumar shail says:. Shahjahan says:. Vishaka says:. Atul kumar singh says:. Vijayakumar says:. Kumar says:. Venike ViswanathReddy says:. Dharmendra says:. Hari Krishna says:. Akhilesh says:. Revan says:. Puja Kumari says:. Jayapal says:. Gayathri Chitnhala says:. Bhavesh says:. Mani says:. Gopal says:. Ranjith says:. Rajeswari says:. Manjinder singh says:. Kamlesh says:. Arvind says:. Noorul says:. Gyanendra Singh says:. Pradeep Kumar Verma says:. Mayur says:. Nitin Agrawal says:.

Ankit Kumar says:. Rushik Sutariya says:. Debojit says:. Atikur Khan says:. Kapil says:. Manoj says:. Parag says:. Rajkumar Chaudhary says:. Sailendra Narayan Jena says:. Panchanan mohapatra says:. Alok says:. Mohammad Umar Ali Karimi says:. Sabyasachi says:. Interview Questions. Company Questions. Artificial Intelligence.

Cloud Computing. Data Science. Angular 7. Machine Learning. Data Structures. Operating System. Computer Network. A class can extend only one abstract class while a class can implement multiple interfaces. Skip to content. Report a Bug. Previous Prev. Next Continue. Home Testing Expand child menu Expand. SAP Expand child menu Expand.



0コメント

  • 1000 / 1000