Java VIVA Questions1 1 1.Why java is Secured Compare with other Language? 2.What if the main method is declared as private? 3.What if the static modifier is removed from the signature of the main method? 4.What if I write static public void instead of public static void? 5.What if I do not p rovide the String array as the argument to the method? 6.What is the first argument of the String array in main method? 7.If I do not provide any arguments on the command line, then the String array of Main method will be empty or null? 8.What environment variables do I need to set on my machine in order to be able to run Java programs? 9.Can an application have multiple classes having main method? 10.In how many Ways we can create a Object in java? 11.Every Application Should ve a main() Method under which class does the main() Method come Under? 12.What is Difference Between Static And Dynamic Polymarphism? 13.What happens If public Static void main() is made protected? 14.Can we Override the Main() Method? 15.What is the name of the java Complier used to compile the Source File to byte code? 16.what is the use of static data member? 17.What does "wrapping" an object mean? 18.What is the difference between a while statement and a do statement?19.What is Constructor? 20.How are this() and super() used with constructors? 21.What is Difference between the Constructor and the Method? 22.What is the need of calling Default Constructor? 23.What is Difference between Instance and the Object? 24.What is System.Out.Pr intln means? 25.What is JTI (Just in time) Engine means? 26.What is Differences Between Static & Final? 27.What is the difference between static and non-static variables?28.What is Differences Between class and Package? 29.What is String class? 30.What is Scanner Class in java? www.jntuworld.com
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.