"from the static block" msg is in the static constrictor right, Mam?
@iammaran57032 жыл бұрын
Akka java supported copy constructor or not
@marialivinu30653 жыл бұрын
Public static void main() static method ah akka? If yes then how can we call non static methods using object?
@LogicFirstTamil3 жыл бұрын
yes, main is a static method. but i think u are confused. you need objects to call a non static method - but there is nothing wrong when you do it inside a static method. all that matters is how you call (with or without obj) and not wer you call from.
@marialivinu30653 жыл бұрын
@@LogicFirstTamil can you explain me about static method in particular akka so that I would try to understand why main() is made as a static method? Please!
@LogicFirstTamil3 жыл бұрын
@@marialivinu3065 that is wat i have explained in the video. i have covered all points. there is nothing more to add. also i have explained abt main n why it is static
@marialivinu30653 жыл бұрын
@@LogicFirstTamil okay thanks thanks for explaining it I understood clearly.
@MadaraUchiha123212 жыл бұрын
i think you are teaching from Java complete reference book..? am i right? anyway ...!, good job, i appreciate ✌👍
@LogicFirstTamil2 жыл бұрын
this topic, yes.
@manojm76833 жыл бұрын
You said that static method are usually invoking just before creating 1st obj but end of the video you used static method to print boxcount how does it invoking after created all of the objs.@Logic First Tamil
@LogicFirstTamil3 жыл бұрын
you have confused static block with static methods. static block will be invoked just b4 creating first obj. it is automatically called. but static methods can be called anytime using classname.staticmethodname syntax.
@lokeshp19292 жыл бұрын
Static block will be executed before main method,am i right?
@LogicFirstTamil2 жыл бұрын
no. i have explained in detail in the video
@lokeshp19292 жыл бұрын
Static block will be executed first if the main method and static block in same class, if both (main method and static block)are in different classes then once the main method collected reference for the class of static block, then it starts executes...
@kannanb03172 жыл бұрын
Mam I have a problem in somewhere, please go through my simple code . class Box{ private int length, breadth, height; Box(int l,int b,int h){ this.length=l; this.breadth=b; this.height=h; } int Area(){ return length*breadth*height; } } class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); Box ob = new Box(11,2,2); System.out.println("Area of perimeter.."); ob.Area(); } } // The output is Hello, World! Area of perimeter.. The int return type Area() method wont return their value mam.
@LogicFirstTamil2 жыл бұрын
you are not printing the return value
@kannanb03172 жыл бұрын
@@LogicFirstTamil Thanks mam
@hemapriyadharshinia39492 жыл бұрын
Why we are using static in main method akka?
@AkashBSc-kj8nj3 ай бұрын
Illana athuku object create panra mathiri varum so main ke apdi panna kastama irukum nu dhan static ah kudukuranga....so adhanala epayum main method mattum static la dhan kudukanum
@AkashBSc-kj8nj3 ай бұрын
@@hemapriyadharshinia3949 sorry na pakkala neenga 2 years ku munnadi ketu irukinga
@hemapriyadharshinia39493 ай бұрын
@@AkashBSc-kj8nj haha.. but still thanks 😊
@AkashBSc-kj8nj3 ай бұрын
@hemapriyadharshinia3949 are you work IT fields?...