Search:

Type: Posts; User: Dark knight

Search: Search took 0.22 seconds.

  1. Re: Can't create inner class object outside the outer class help needed?

    yes i was wondering about the last line only thanx for the help....
  2. Can't create inner class object outside the outer class help needed?

    class Outer
    {
    final int outer=10;
    void display()
    {
    Inner in = new Inner();
    in.show();
    }
    class Inner{
    Inner()
  3. Re: help needed to know how the code is running

    thanx zaphod_b for the clarification i get it now and i will keep in mind the thread thinng....
    thanx pbrockway2 but i dont have JLS to refer with i am using complete reference for java should i...
  4. Replies
    3
    Views
    1,344

    Re: need to know how the code is running

    ohk sorry my bad!!!!! i was going to ask a different question accidentally copy pasted this one...
  5. Replies
    3
    Views
    1,344

    need to know how the code is running

    public void test(int x)
    {
    int odd = 1;
    if(odd) // if i write odd==1 it works but i have used this in C a number of times.
    {
    System.out.println("odd");
    }
    else ...
  6. Re: help needed to know how the code is running

    class None{
    public static void main(String args[])
    {
    byte b =-2;
    b = (byte)(b>>>10);
    System.out.println("the value of b is"+b);// output -1
    }
    }

    I am not getting why this code is generating...
  7. Re: help needed to know how the code is running

    thanx Zaphod_b you were a great help i have been referring complete reference for java i read about type promotion and casting and now i understand it completely...
  8. help needed to know how the code is running

    class Char{
    public static void main (String a[])
    {
    char c1,c2,c3;
    c1=64;
    c2=187;
    //c3=64+187;
    System.out.println("The symbol is "+ (c1+c2));
    }
    }
  9. Replies
    0
    Views
    1,024

    Hello Everyone

    Hi i am new to java programming and its concepts and i am doing from it
Results 1 to 9 of 9