Monthly Archives: October 2016

Which one is the better Java EE application server? Glassfish or JBOSS

My answer to Which one is the better Java EE application server? Glassfish or JBOSS Answer by Vaibhav Kashyap: Both Glassfish & JBOSS are full fledged JEE servers other than the TOMCAT which is merely an HTTP server and Java

Posted in J2SE

Can we execute a program without main function in Java?

My answer to Can we execute a program without main function in Java? Answer by Vaibhav Kashyap: What you're trying to do was possible till Java 6 using 'Static Initialization Block' because as soon as your class is loaded you

Posted in J2SE

How do I run a Java program as background windows service?

My answer to How do I run a Java program as background windows service? Answer by Vaibhav Kashyap: You’re looking for is basically a daemon program. The Windows equivalent of a daemon is a Windows Service. A daemon is a

Posted in J2SE

Why abstract methods in Java cannot be static?

My answer to Why abstract methods in Java cannot be static? Answer by Vaibhav Kashyap: Abstract methods are meant to be overridden in order to use them because when you declare a method as abstract it just has its structure,

Posted in J2SE