Jump to content

What Is The Use Of Constuctor In Java


Recommended Posts

Posted

please chepandi.telustene chepandi...konchem realtime ga undavi chepandi.

i know the basic about it....but enduku epudu pilustam chepandi...

Posted

[url="http://docs.oracle.com/javase/tutorial/java/javaOO/constructors.html"]http://docs.oracle.com/javase/tutorial/java/javaOO/constructors.html[/url]

Posted

also see [url="http://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html"]http://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html[/url]

Posted

koncham funny gaa sepukundam ..... manishi anedhi oka object anukunteee constructor anedhi manishiki pranam posee process anna mata ... without executing the constructor the object is simply pranam leni manishi ........ pranam leni manishi elaga emi cheyaledoo (still we cal him as manishi) constructor (which construct the object ) execute cheyani object kuda anthy ...

there are many way to construct object using new operator , forName or spring injection or any others if you know but internally all use same process Class ki Pranam posi Object ni cheyadameee

Posted

[quote name='ZuniorVentiyar' timestamp='1355364696' post='1302942403']
koncham funny gaa sepukundam ..... manishi anedhi oka object anukunteee constructor anedhi manishiki pranam posee process anna mata ... without executing the constructor the object is simply pranam leni manishi ........ pranam leni manishi elaga emi cheyaledoo (still we cal him as manishi) constructor (which construct the object ) execute cheyani object kuda anthy ...

there are many way to construct object using new operator , forName or spring injection or any others if you know but internally all use same process Class ki Pranam posi Object ni cheyadameee
[/quote]
[img]http://i361.photobucket.com/albums/oo54/Imdareaper/Emoticons/Whistle.gif[/img]

Posted

[quote name='ZuniorVentiyar' timestamp='1355364696' post='1302942403']
koncham funny gaa sepukundam ..... manishi anedhi oka object anukunteee constructor anedhi manishiki pranam posee process anna mata ... without executing the constructor the object is simply pranam leni manishi ........ pranam leni manishi elaga emi cheyaledoo (still we cal him as manishi) constructor (which construct the object ) execute cheyani object kuda anthy ...

there are many way to construct object using new operator , forName or spring injection or any others if you know but internally all use same process Class ki Pranam posi Object ni cheyadameee
[/quote]

Simple ga ba chepinav..mama..

Posted

simple ga chepali ante......any class defined will have constructor and methods.
constructor contains the core logic of the class. when ever the class is invoked or called, the constructor is executed.

Posted

[img]http://lh3.ggpht.com/-5C4yzgRkRrM/T54bFPHYmMI/AAAAAAAAGVc/SBiHojQQhxE/s176/ha%2520cheppu%2520cheppu.gif [/img]

×
×
  • Create New...