Ask Experts Questions for FREE Help !
Ask
    chamal_anjana's Avatar
    chamal_anjana Posts: 1, Reputation: 1
    New Member
     
    #1

    Sep 22, 2013, 09:19 PM
    java static... please anybody explain this code to me.
    class Test{

    Test(int I){
    System.out.println("Test(" +i +")");
    }
    }

    class Q12{

    static Test t1 = new Test(1);
    Test t2 = new Test(2);
    static Test t3 = new Test(3);

    public static void main(String[] args){
    Q12 Q = new Q12();
    }
    }

Check out some similar questions!

Can somebody help me with Java code? [ 1 Answers ]

A method called dropItems() taking a Robot and an integer. The robot should (try to) drop that number of items. My version doesn't work unfortunately. Here is it: int dropBeepers(String input, int createRobot, int count) { count =0; ...

Java code [ 2 Answers ]

Please give me a simple java code for addition of two numbers here two numbers are accepted From users please give me explanation about each code

Java code [ 2 Answers ]

Please give me a java program for additon of two numbers here nos are accepted from users here I am not confident about java program so please gieve me java code I only understand a hello program so please help me

Java code [ 1 Answers ]

What is difference between argument and parameter element as use in calling routines/coding a method? Can one use them interchangeably for talking/writing purposes?


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.