Skip to main content

Posts

Showing posts with the label line by line

ජාවා line by line...

කලින් පාඩමේ මම කිවුව වගේ ජාවා භාශාවේ ඊටම අනන්‍ය වූ වචන කිහිපයක් තියෙනවා. ඒවා අපි හඳුන්වන්නේ keywords කියලා. පහළින් දැක්වෙන්නේ ජාවා වලදී භාවිතා කරන සියලුම keywords ටිකයි. ඒ එක එක keyword වලින් සිදු වෙන්නේ මොනවද කියලා ඉදිරි පාඩම් වලදී කියලා දෙන්නම්. abstract continue for new switch assert default goto package synchronized boolean do if private this break double implements protected throw byte else import public throws case enum instanceof return transient catch extends int short try char final interface static void class finally long strictfp volatile const float native super while අපි මේ වෙනකොට නිර්මාණය කරපු වැඩසටහනේදී නොදැනුවත්ව වුනත් මේ keywords වලින් 4ක් යොදාගෙන තිබෙනවා. ඒ, class, public, static, void කියන ඒවයි.  මේ කේතය හොඳින් අධ්‍යනය කරපු අයට කිසියම් විශේෂතා කිහිපයක් දකින්න ලැබෙන්න ඇති. මං එ මොනවද කියන එක එකින් එක විස්තර කරන්නම්.  මුලින්ම අපි ටයිප් කරපු code එක බලමු.  class MyFirstJavaProgramme{ public static void main(String args[]){ ...