Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Today at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Jun 11, 2026
Ad icon
Wechat qr verification
Pawan2005
Updated:
Jun 11, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
public static void main
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Ayeshlive" data-source="post: 18102043" data-attributes="member: 363439"><p><span style="font-size: 12px"><strong>Public</strong> - Method eke access. Public methods direct call karanna puluwan. <strong>Private</strong> methods access karanna puluwan class eka athule witharai. <strong>Protected</strong> methods access karanna puluwan class eka athule, saha sub classes wala witharai. Properties walatath access flags thiyenawa me widihatama public, protected, private. </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><strong>static</strong> - Me kiyanne method eka direct call karanna puluwan object ekak instantiate karala nathi wunath. E kiyanne object ekak thiyenna one naha call karanna. Static methods waladi "this" widihata self object eka access karanna baha, mokada object ekak nathi nisa. </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><strong>void</strong> - Void kiyanne me method eken kisima deyak return karanne naha kiyana eka. </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><strong>main</strong> - Kiyanne function eke name eka. C wage languages wala main() kiyana function eka thamai issaralama call wenne.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">main() function eken habai samanyayen status code ekak return karanawa. 0 return karanne awulak nathuwa application eka run wuna nam. Naththam error code ekak return karanawa. </span></p><p><span style="font-size: 12px">E welawata method signature eka "void main" newei "int main" wenawa mokada integer ekak return karana nisa. </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">"static public" liwwath ekai "public static" liwwath ekai. Habai convention eka anuwa wenas wenawa oya follow karana. </span></p></blockquote><p></p>
[QUOTE="Ayeshlive, post: 18102043, member: 363439"] [size=3][B]Public[/B] - Method eke access. Public methods direct call karanna puluwan. [B]Private[/B] methods access karanna puluwan class eka athule witharai. [B]Protected[/B] methods access karanna puluwan class eka athule, saha sub classes wala witharai. Properties walatath access flags thiyenawa me widihatama public, protected, private. [B]static[/B] - Me kiyanne method eka direct call karanna puluwan object ekak instantiate karala nathi wunath. E kiyanne object ekak thiyenna one naha call karanna. Static methods waladi "this" widihata self object eka access karanna baha, mokada object ekak nathi nisa. [B]void[/B] - Void kiyanne me method eken kisima deyak return karanne naha kiyana eka. [B]main[/B] - Kiyanne function eke name eka. C wage languages wala main() kiyana function eka thamai issaralama call wenne. main() function eken habai samanyayen status code ekak return karanawa. 0 return karanne awulak nathuwa application eka run wuna nam. Naththam error code ekak return karanawa. E welawata method signature eka "void main" newei "int main" wenawa mokada integer ekak return karana nisa. "static public" liwwath ekai "public static" liwwath ekai. Habai convention eka anuwa wenas wenawa oya follow karana. [/size] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom