Coding CommunityE-Learning

Livecoding.tv Quiz of the Day: 17/10/2016

java-quiz-of-the-day-1

Answer:

1. Encapsulation

  • Encapsulation is a mechanism by which developer could hide implementation behind an interface.
  • Encapsulated code has two features:
    • Instance variables are kept protected (usually with the private modifier).
    • Getter and setter methods provide access to instance variables.
  • Kindly take a look at tutorial: Complete End to End working Encapsulation example
    • The public setName() and getName() methods are the access points of the instance variables.

2. Inheritance

  • Inheritance allows a class to be a subclass of a superclass, and thereby inherit public and protected variables and methods of the superclass.
  • Inheritance is a key concept that underlies polymorphism, overriding, overloading and casting.

3. Polymorphism

  • Polymorphism means “many forms.”
  • A reference variable is always of a single, unchangeable type, but it can refer to a subtype object.
  • A single object can be referred to by reference variables of many different types —as long as they are the same type or a supertype of the object.
  • Polymorphic method invocations apply only to overridden instance methods.

If you want to explore more, visit our Java edu & tutorials section! Below are some examples:


You can also follow some of the broadcasters who program in Java, like the ones below:

wurgutWurgut

manbearpig1ManBearPig1

Another cool way to find out interesting things about Java is to access our project page!

Avatar
About author

I, Dr. Michael J. Garbade is the co-founder of the Education Ecosystem (aka LiveEdu), ex-Amazon, GE, Rebate Networks, Y-combinator. Python, Django, and DevOps Engineer. Serial Entrepreneur. Experienced in raising venture funding. I speak English and German as mother tongues. I have a Masters in Business Administration and Physics, and a Ph.D. in Venture Capital Financing. Currently, I am the Project Lead on the community project -Nationalcoronalvirus Hotline I write subject matter expert technical and business articles in leading blogs like Opensource.com, Dzone.com, Cybrary, Businessinsider, Entrepreneur.com, TechinAsia, Coindesk, and Cointelegraph. I am a frequent speaker and panelist at tech and blockchain conferences around the globe. I serve as a start-up mentor at Axel Springer Accelerator, NY Edtech Accelerator, Seedstars, and Learnlaunch Accelerator. I love hackathons and often serve as a technical judge on hackathon panels.