Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

,

Java_Concepts_for_Java_5_and_6 free download

In Java Concepts, Fifth Edition, Cay Horstmann provides a thorough grounding in fundamental programming techniques and design skills to help the student master basic concepts. Targeted for one-semester courses, Java Concepts has been reduced in length by 25% in this edition to provide a more accessible introduction to Java programming.  
 The homework package has been completely revamped to include a greater quantity and variety of problem types and provide significant new functionality.  The LabRat tool in WileyPLUS permits automated submission and grading of programming assignments – a feature that no competitor provides.  
Preparing yourself for a career in computing is a smart move.
The need for computing professionals and executives is growing rapidly right here in the U.S., even as companies become more global. Almost every major challenge facing our world is turning to computing for a solution, from conquering disease to eliminating hunger, from improving education to protecting the environment. Job growth rates for computing professions from the United States Bureau of Labor Statistics range from 38% to 56% across the computing spectrum. Today’s market is creating more jobs than there are professionals to fill them, offering excellent salaries for qualified graduates.
With more choices and more opportunities, it’s a better time than ever to begin a career in computing. In fact, according to CNN/Money Magazine, software engineering is the number one best job for opportunities! Please visit the ACM website for more exciting computing career information. The URL is: http://computingcareers.acm.org


Cay S. Horstmann is a Professor of Computer Science in the Department of Computer Science at San Jose State University. He is an experienced professional programmer and was Vice President and Chief Technology Officer for Preview Systems, Inc. He is also a consultant for major corporations, universities and organizations on C++, Java, Windows and Internet programming. Horstmann is the author of many successful professional and academic books, including Object Oriented Design and Patterns, Big Java, Big C++, and Computing Concepts with C++ Essentials (all with John Wiley & Sons, Inc.), and Core Java (Sun Microsystems Press), with Gary Cornell.

Download now
Publisher: notnow - 9:55 AM

answermid

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author sohel
 */
public class star
{
 public static void main(String args[])
         {
          for(int i=0; i<=5 ;i++)
            {
              for(int j=0; j < i; j++)
              {
                  System.out.print(" *");
          
              }
              System.out.println("");
           }
       }
}







/**
 *
 * @author sohel
 */
import java.util.Scanner;
public class factorial
{
    public static void main(String argd[])
    {
        Scanner input=new Scanner(System.in);
        int x,i;
        int fact=1;
        System.out.println("Enter a valu: ");
        x=input.nextInt();
        for(i=1; i<=x; i++) {
            fact *= i;
        }
        System.out.printf("%d ",fact);
    }
}
Publisher: notnow - 10:16 PM

java1

Midterm Examination

 Question layout


                                        PART A
No.1                                  ***********************




class
{
   void show()
}
 system.out.print(show(5));
{
 private int show(int x)
{
        for(int i=0;i<50;i++)
           if(i%2==0)continue;
            else x=i;
    return x;
}
public static void main(string arg[])
{
 test xyz=new test();
xyz.show();
}
 
}




*******************************************************

No.2


class worldcup
{
       public void country(string name, int x)

{
           
        if(x==0)
           system.out.print(name= "Defeated");
        else
              system.out.print(name= "Wins");
}

}

   class schedule
{
  public int roster(String name, int x)
{
       worldcup abc=new worldcup();
       abc.country(name,x);
       return x;
}

}

  class home extends schedule
{
   home()
   {
              schedule mno=new schedule();
     if(mno.roster("Argentina",0)==0)
      system.out.print("\nIt is TRUE");
       else
       system.out.print("\n it is FALSE");
}
public static void main(String arg[])
{
 home xyz=new home();

}

}



*********************************************************

No.3


class test
{
         test()
{
   system.out.print("In show");
}

protected void test(int x)
{
 system.out.print("In show x");
}

public void test(String x)
{
   system.out.print("In show String x");
}

}

class testy extends test

{

   void testy()
{
    test xyz=new test();
}
public static void main(String arg[])
{

   testy xyz=new testy();
}

}

*************************************************************







                                                PART B
                                         *************************






No.4




write a java code to show the follwing table of "stars" . here the number of line is given by user :


input:5          output:    *
                            **
                            ***
                            ****
                            *****







No.5


define polymorphism with example.




No.6



what is multilevel inheritance? give example.




No.7



write a java code to identify an inputted number is "ODD" or EVEN".
Publisher: notnow - 6:49 PM