Interface In Java Programming – An Example

An interface in java is a collection of abstract methods and constant identifiers. There are no defined methods and  no fields. From that definition, if a class provides method definitions for an interface’s methods, the class is said to implement the interface. The class may also define other methods. In this post, we will see how to use an interface in java.

interface in java

The Example – An Interface In Java

In this example, we will create an interface called Employee for all the employees in a company. The information read in for each employee in question consists of employee’s name and gross pay. So, we need to list the responsibilities of the interface that will help us define the methods’ specifications. In other words, the responsibilities means the services provided to users of any class that implements the Employee interface. So here they are:

Understanding The Android Application Manifest File

Today, I would like to help you understand the Android Application Manifest File as an android developer. Each android application you build will include a file called AndroidManifest.xml which is placed in the root of the project hierarchy. So why is it important? Because it lets you define the structure and metadata of your android application and its components.

android application manifest file

The Android Application Manifest file includes nodes for each of the following components:

  • Activities
  • Services
  • Content providers
  • Broadcast Receivers

Top 10 Free Online Courses

The idea of offering free online courses was difficult several years ago mainly due to a lucrative business platform that has come to be known as college education. Although there are more than enough resources today, so many people cannot afford a college education, thanks to ever increasing tuition fees and ignorant politics.

free online courses

But not all is lost. There is some light at the end of the tunnel – the birth and growth of Free Online Courses through big name universities across the globe. Perhaps the only thing remaining is for companies to finally hire their potential employees not by looking at a paper but skills they have earned. Now let us take a quick look at my favorite list of free online courses you could start with today.

How To Build Simple Counter Android App

In my first android app development post, I showed how you could easily create a simple to do list application from scratch. In this post however, we are going deeper or one step further by creating a Counter App that will change a value as well as the background color depending on which button is clicked. If you asking yourself of a use case, I am thinking of a scenario where you are playing family games and you want to keep score count. You can reset to zero when you are starting over. Pretty fun right? Let us look at the final product before writing some code:

Good Programming Styles and Practices

Hello! I hope you are doing good today! Understanding good programming styles and practices is very important to any serious programmer. Most people have arguments for and against certain ways of programming – let us look at a few and then give you an opportunity to share your own views.

good programming styles and practices

Common Questions :

  • Should you comment your code or not?
  • Curly braces on separate lines or not ?
  • Camel case or not camel case?
  • Should you use underscores in function names?
  • To put or not to put author’s name in the file?

Important Skills Colleges Never Teach Programmers

Hi! Thanks for stopping by. After a previous post received 106 comments and generated thousands of views and reactions, it made sense to write about the other side of the coin: skills colleges never teach programmers. Let us take a look at a few, shall we?

skills colleges never teach programmers

There is no doubt college has become the industry requirement for getting a job – however, does it really teach you everything you need for the real world? It seems the obvious answer is an astounding NO! 

Are You Interested In Weekend Hangouts For Coders?

Hi! Thanks for stopping by. Have you ever wanted to participate in live hangouts with coders?. If that sounds like you, let me share with you an idea I just thought about: Google+ Hangouts on The Weekends (Saturday) for coders(beginners and experts alike)!

live hangouts for coders

I am looking for coders who are willing to hangout on Saturdays for a few hours (could be 1 – 2) on Google Plus. The hangouts will involve teaching each other new things and writing code to solve small problems that fit the available time span.

I Seriously Need Your Opinion On This One

Hi! Starting last week, I have been working on a project that I believe could change the way new beginners learn the whole craft of software development. I made a video and posted it on YouTube and one guy who watched it asked me why I posted it instead of keeping it secret. I believe this is not meant to be a secret. Today however, I am kindly coming to you for opinions on my landing page. Please take a minute and tell me what you think could be kept, changed, or removed from this page. They say if you ask a question, you become stupid for only five minutes. If you don’t ask, you remain stupid forever. So, here it is:

Learn a Programming Language In 21 Days – Not

Hi! I hope you are doing good today. Let us assume you are trying to learn something totally new. What would you do first? I suspect you will visit the internet, grab some highly recommended books from Amazon, register for a class somewhere and many others. But what if you had a chance to learn your craft fast? Really fast!

how to program in 21 days

You have probably seen some of those online ads telling you that you could be speaking a new language in 10 days. The question is, why are people in such a hurry?

Object Oriented Programming In Java – Inheritance

Object oriented programming in java is very powerful and a clear understanding is important. While I was trying to dig deeper, I realized that there is more to it than I actually knew. So, I looked around the web and spent some time on StackOverflow! Now let us create a simple file here Base.java

[java]
public class Base{
public static void main(String[] args]){
//do some cool stuff here
}
}
[/java]