how to run java program without main

preview_player
Показать описание
as we know every C,C+,Java, .Net Program contain one main method & program start executes with method main, but in this videos i am showing how to execute Java program without using method main ,with the help of static block.
static block first of all load into the memory before loading anything include main method that, why whatever written in static block will execute before anything.
try to write some java program and execute it.
if this video helpful for you please write your comment and share it. thank you.
Рекомендации по теме
Комментарии
Автор

really its possible to execute java program without method main

vijayupadhyay
visit shbcf.ru