Latest Answer : No it won't work.Only one main methods is allowed ...
Latest Answer : public--Can be invoked from anywhere.static--Invoked by class,no need of object.void--Cant return anything.Main--method name i.e used to start the execution of prg. ...
Hello world is compile..but run time error has occured..i.e. expection in thread main:java.lang.NoDefFoundErrorplease send replay for this question.....
What is the difference between equals() method and == operator.when we use 2 same strings for finding of whether both strings r equal or not by using these two,it will give same answers.i.e true and true.so what is the main defference between equals() and ==.
Can give answer to the folloing questionQuestion 2You are in charge of implementing a Grand Prix Car Racing Results system for a sports magazine, to be used for entering and processing data concerning each Formula 1 Grand Prix that has been run in the season.As you know, each driver is part of the team, and has a number. At the end of each race, the driver who arrived first is assigned 9 points, and the following five drivers receive 6,4,3,2 and 1 point each. Drivers who come in after the sixth
public: public keyword is an access speciferstatic :allows main to be call without any instance of a timevoid: does not return any valuemain: main() is the method where java Applications beginSting args[]
A) main threadB) thread groupC) child threadD) thread pool
Latest Answer : Main thread no doubt in that....after execution of mainthread only it will split int no of child threads and so on ... ...
A) RuntimeException
Latest Answer : Even I chose the Run time Exception,But it seems to be wrong coz there r four subclasses of the exception class. ...
What will be the result of compiling the following code: public class Test {static int age;public static void main (String args []) {age = age + 1;System.out.println("The age is " + age);}}
A) Compiles and runs with no outputB) Compiles and runs printing out The age is 1C) Compiles but generates a runtime errorD) Does not compileE) Compiles but generates a compile time error