Members BookmarksPolls Fresher Jobs Funny Pictures MCA Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

Advertisements


website counter


Posted By: Ramkumar       Member Level: Diamond       Posted Date: 23 Jun 2008       Category: Computer Basics

What is the result of the following code? public class MyTest { int x = 30; public static void main(String args[]) { int x = 20; MyTest ta = new MyTest(); ta.Method(x); System.out.println("The x value is " + x); } void Method(int y){ int x = y * y; } }



Select Answer:

The x value is 20.
The x value is 30.
The x value is 400.
The x value is 600.




      
Your Test Score: 0 / 0



Next Question: Class Box { double width; double height; void Volume ( ) { } } Box mybox = new Box( ); mybox1.Volume( ); What is Volume( ) in the above code?
Previous Question: What step should be taken to prevent a method from overriding?
Related Questions:
  • Don Allen needs to create a transactional volume by using the metainit command for file system logging. Don wants to specify a name to the volume to identify the log files for the commands that are performed on the computer. Which of the following parameters is used with the metainit command to specify the volume name that Don creates?


  • What is full form of CSS?


  • Which of the following statements is true?


  • Which of the following options is used with the zip command to specify the files that you do not want to be included in the zip archive?


  • Encryption means


  • Categories

    Aptitude Test Arithmetic Reasoning General Knowledge - India 
    General Knowledge Computer Basics Physics 
    Mathematics Biology Chemistry 
    English Botany 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    Contact Us    Privacy Policy    Terms Of Use   

    SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.