• #### Two coins one with HEAD IN BOTH SIDES and the other coin HEAD IN ONE SIDE AND TAIL IN THE OTHER SIDE is in a box,a coin is taken at random and FOUND HEAD IN ONE SIDE .what is the probability that THE OTHER SIDE IS HEAD?

please answer this questions guys :::::::1.Two coins one with HEAD IN BOTH SIDES and the other coin HEAD IN ONE SIDE AND TAIL IN THE OTHER SIDE is in a box,a coin is taken at random and FOUND HEAD IN ONE SIDE .what is the probability that THE OTHER SIDE IS HEAD?2.12 Blacksox and 12 Whitesox mixed in a box,a pair of sox is picked at a time,in which pick/how many pick ,to get the right pair(black&black...

#### varunansundaram

• Nov 22nd, 2010

16 7 3x   y  z0 0    00 0+3 00 3+3 00 6+1 3-10 7      20+2 7-7      02 0 02 0+3 02 3+3 02 6+1 3-12 7 2X+Y+Z=11

#### murali45

• Oct 1st, 2010

• #### Can we override the main method?

ashish_setia

• Member Since Oct-2006 | Oct 3rd, 2006

check out this example

class Checkmain{
public static void main(String args[]){
args[1]="ashish";
System.out.println("hello ");
}
}
class Checkmain1 extends Checkmain{
public static void main(String args[]){
System.out.println("how r u");
}

}
class Jo{
public static void main(String args[]){
String S[]=new String[10] ;

Checkmain.main(S);
Checkmain1.main(S);
}}

#### vivek

• Aug 25th, 2017

Yes you can only do that by overriding main method signature for eg main(String[] args) to main(). Certainly there are no other ways to do that because JVM needs strings array arguments to take comma...

#### Dharmendra Singh

• Sep 15th, 2016

yes we can"java public class HelloWorld { // arguments are passed using the text field below this editor public static void main(String[] args) { String []s =new Str...

#### dh.agrawal

• Jun 11th, 2008

Ans 2. ----int a,b;   a= a+b;b=a-b;a=a-b;

#### vinaymudgil007

• Jun 10th, 2008

The answer given above by Mr. Satish------------------------------------------------------------------------------------------a= ((a+b)-(a-b))/2b= ((a+b)+(a-b))/2--------------------------------------...