Invoking Overloaded Methods In Java

Programmers can create number of overloaded methods. But that will not work if the compiler will not be able to get the correct method at correct time in the execution. It is important to know the way how the compiler works when it executes the overloaded methods. Sometimes there can be methods that have the same name with same number of parameters. Then how will the compiler choose the correct one?
Read more of this post

Overloading Methods in Java

Overloading methods is not a part of the Object Orientation. Most of the times people get confused with the meaning of the overriding and the overloading. Overloading means using an available method name for a method with different arguments and sometimes with the different return types as well. There is a set of rules that you have to consider when overloading methods.

It is a MUST to change the Arguments List.
The Return types CAN be changed. It is NOT A MUST.
The Access Modifier CAN be changed. It is NOT A MUST.
Methods CAN declare new or broad checked exceptions.
Read more of this post

WordPress vs Blogger

වර්ඩ්ප්‍රෙස් සහ බ්ලොග්ගර් යන මේ දෙකම අද ලොව පුරා හුගාක් බ්ලොග් කරුවන්ගේ හිත් දිනාගත් සහ බ්ලොගින් පහසු කරවන වෙබ් අඩවි 2ක් කියලා කියන්න පුලුවන්. වර්ඩ්ප්‍රෙස් ගැන කතා කරද්දී වර්ඩ්ප්‍රෙස් වල .කොම් සහ .ඕආර්ජී කියලා 2ක් තියෙනවා.
මේ අතරින් .ඕආර්ජී වල තියෙන විශේෂත්වය වෙන්නේ ඩේටාබේස් එකක් තියෙන ඕනේ කෙනෙකුට් ඒක තමුන්ගේ පාලනය යටතේ නොමිලේ ලැබෙන කේත මගින් කලමනාකරණය කරගන්න පුලුවන් වීමයි. මෙහිදී අපේම සර්වර් එකක තමා අපේ වර්ඩ්ප්‍රෙස් එක දාගත යුත්තේ.
බ්ලොග්ගර් එක්ක සංසංදනය කල යුත්තේ වර්ඩ්ප්‍රෙස්.කොම් ය. එහිදී සිදුවන්නේ බ්ලොගර් අඩවිය වැනිම වර්ඩ්ප්‍රෙස් අඩවියක් මගින් ගොස් තමුන්ගේ බ්ලොග් එක කලමනාකරණය කර ගැනීමයි.
Read more of this post

මුහුණු පුස්ථකං විනාසායං-අප්‍රමාධං කාල කළමණාකරනං

Social Networking වනාහි අද ලොව සෑහෙන ප්‍රසිද්ධ සහ සෑහෙන කතාබහ කෙරෙන මාතෘකාවකි. එයිනුත් වඩාත්ම ප්‍රසිද්ධ Social Network එක වන්නේ Facebook. අපි facebook , මුහුණු පොත යැයි අපේ භාෂාවෙන් හදුන්වමු. ලංකාවේ පවා බොහෝ දෙනෙක් භාවිතා කරන මුහුණු පොත භාවිතය පිලිබද ඔබ බොහෝ දුරට අසා නැති සහ නොසිතන පැති කිහිපයක් පිලිබද කතා කිරීමට සිතුනේ මෙහි ඇති භයංකාර බව පිලිබදව ඔබට අවබෝධයක් ලබාදෙනු පිනිසයි.

මුහුණු පොත කියන්නේ අද ලොව පුරා මිලියන 400ක පමණ active පරිශීලකයන් සිටිනා social network එකක්. ඔවුන් පවසන පරිදි දිනපතා මෙයින් 50%ක් පමණ මුහුණ පොතට ඇතුලු වේ.මාසිකව ලොව පුර සිටින මුහුණු පොත පරිශීලකයින් විසින් මිනිත්තු බිලියන 500කට වඩා මුහුණු පොතේ ගත කරයි. ඊට අමතරව මුහුණු පොතේ ඇති දත්ත අනුව පරිශීලකයන්ගෙන් 70%ක් පමණම සිටින්නේ ඇමරිකා එක්සත් ජනපදයෙන් පිටතය.
Read more of this post

Introduction To Online Marketing

Online Marketing, is a branch of Marketing that deals with the marketing of Products and Services, over the wide spectrum of the World Wide Web, better known as, The Internet. Online Marketing is sometimes referred to as: i-marketing, web-marketing, online-marketing or e-Marketing.

The Internet while bringing greater responses to the Global Quest of knowledge and information, has also brought along with it, the management of consumer data, as well as, electronic customer relationship management systems. As a result, e-commerce is also a sub-division of Online Marketing!
Read more of this post

Open Source සහ Proprietary මෘදුකාංග

මෘදුකාංග වර්ගීකරණය ගැන කතා කරද්දි මූලික වර්ග 2ක් තියෙනවා. ඒවා නම් Open Source සහ Proprietary මෘදුකාංග. මේවා මෙසේ බෙදලා තියෙන්නේ මූලිකවම ඒවායේ කේත(source code) අයිතිය පදනම් කරගෙන. Open Source මෘදුකංග බොහෝ දුරට නොමිලේ සහ කොන්දේසි නැතුව අපිට හිතේ හැටියට වෙනස් කරගන්න පුලුවන්. ඒ වුනාට proprietary මෘදුකාංග එන්නේ copyrights ඇතුව. ඒ කිව්වේ ඒ මෘදුකාංග වල කේත අයිතිය තියෙන්නේ මෘදුකාංග නිපදවන අය ගාවයි. කොච්චර නොමිලේ දුන්නත්, අදටත් වැඩිම පිරිසක් භාවිතා කරන්නේ proprietary මෘදුකාංග.මේවාට හේතු කාරණා බොහොමයක් තියෙනවා. අපි මේ ජාති දෙකේම තියෙන වාසි සහ අවාසි ගැන කතා කරමු.
Read more of this post

Rules for Overriding in Java

There are several rules for the overriding. If those rules were broken, the code will not compile. The set of rules are as following.
(1) The arguments lists must match each other. Otherwise it will be overloaded. The difference between the overloading and the overriding depends on the parameter lists.
(2) Return type of the Sub class must be the same return type of the super class or a sub class of the return type of the super class.
Read more of this post

Overriding

You learnt about the class inheritance in the previous lessons. Now what we are going to learn is about how we can manage those inheriting methods and classes and to use the inherited methods and variables.

Overriding

When you inherit a class for a custom class, you will get the methods and instance variables as it is available on the super class. They will not inherit if the methods are final. The final methods cannot be overridden. When those methods except private and the instance variables get inherited, the content of those methods can be modified. That is named as overriding. For example, I am changing the run() method in Human class in my Student class.
Read more of this post

Polymorphism

What is Polymorphism in Java?
In general words, polymorphism means showing same thing in different ways. In JAVA, polymorphism means coming from more than a single class. We discussed about the inheritance in a previous lesson. Every class in Java inherits from at least the Object class. The classes that do have at least a single inheritance other than the Object, is defined as polymorphic. It can be described as classes that have more than a single IS-A relationships as well.

The only way to access an object is to create a reference. There are few key things to remember when creating the references. They are,
Read more of this post

IS-A and HAS-A Relationships

IS-A Relationship

IS-A relationship is defined by a class inheritance or an interface implementation. Implementation is something little bit same operation done for interfaces against the inheriting from classes. IS-A relationship tells that a particular object is of some type. For example, think of a Doll. That Doll is of the type of Toy. That can be represented as the Doll being a subclass of a Toy.
Read more of this post

Follow

Get every new post delivered to your Inbox.