2 Answers - Sort by: Date | Rating
Hello sir,Main is a static function only.How can the compiler know where to begin,if you dont specify main??
0
0
Static blocks are executed in an undefined order, which is why a static block shouldn't refer to anything outside of its class. If you were to use a static block rather than main(), other static blocks might not have executed yet and thus some class variables might be uninitialized.
0
0
Guest
answered 7 months ago
- How To Make An Application By Using Java Program?
- What How The Step For Make Library Management?
- In Which Process We Can Start Java?
- Define The Concept Of Java Byte Code?
- How To Run Remote Method Invocation In More Machine?
- How To Run Java Remote Method Invocation In More Machine?
- How To Make A Java Program That Will Ask The User To Input A Number And Display All The Even Number And The Sum Of All Even Numbers Based On The Inputted/ Given Numbers?
- Is A Static Variable An Instance?
- How To Compile And Run Java Package?
- What Does Literati-on Mean?
- What Is Abstract Class In Details?
- What Is Meant By Remote Method Invocation In Java?
- What Is Meant By Package In Java?
- What Is Meant By Servlet In Java?
- When Was Java Released?
- What Is Latest Technologies In Java?
- Write A Program Using Do…..while Loop To Calculate And Print The First M Fibonacci Numbers?
- What Is The Difference Between Reference &instance Variable?
- Why Java Is Slow?
- What Is The Drawback Of Ms Access?
- What Is Replaced In Place Of Pointers In Java?
- What Replaces Pointers In Java?
- How Many Types We Create Object In Java?
- I Signed Up Promo Code 505124 For 12 Months My Bill Said For 6 Months Who Fix This Error?
- What Is The Expansion Of Java?
- Why We Use Public Static Void Main In Java?
- Why Do We Use "Public Static Void Main(String[] A)" In Java?
- What Is The Meaning Of Public Static Void Main() In Java?
- Why Do We Use (String[] Arg) In Main Function In Java?
- What's Static In Java?
- How To Write A Simple Java Program Using Static?
- Why Is The Sleep Method Given As Static In The Thread Class In Java?
- It's A C#program. What Does This Actually Mean Static Void Main(string[] Args). What Will It Do?
- Why We Uses Public Static Void Main(String Args[])?
- Can We Declare A Block Statement In Java?
- What Is The Function Of "This" In Java?

New Comment - Comments are editable for 5 min.