Home Tutorialhelp Comment Incorrect answer to quesiton

 
 

Comment

Steven
Incorrect answer to quesiton,
March 24, 2008 at 2:37 AM

Your answer to this quesiton is incorrect.

Question: How is an argument passed in java, by copy or by reference

Answer: If the variable is primitive datatype then it is passed by copy.
If the variable is an object then it is passed by reference


In java arguements are always passed by value. If it is an object that is being passed it really is the address of the object being passed by value. If you set the object to null inside of the called method it will not be set to null in the calling module thus it is not passed by reference.
View All Comments
Advertisement
Related Tutorial and Articles
Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
; Q 14. How can I generate an array from a list ? Ans : The answer 

Spring Framework Questions

a quesiton on spring injection
a quesiton on spring injection  i have copied your spring injection example/ its not working in my pc i am using eclipse4 th version. XmlBeanFactory is depricated and classnot found exception please help me i am new 

Java Beginners

CoreJava
 

Java Interview Questions

corejava
 

Java Beginners

corejava
 

Java Beginners

octal literal
 

Regex Questions

answer
 

Java Beginners

character literal in octal format
character literal in octal format  class EscapeSequence1 { public...;>> EscapeSequence1.java:6: error: unclosed character literal char... ^ EscapeSequence1.java:6: error: unclosed character literal char ch2 

Java Beginners

CoreJava Project
CoreJava Project  Hi Sir, I need a simple project(using core Java, Swings, JDBC) on core Java... If you have please send to my account 

Programming Tutorials

Identify correct and incorrect conditional expressions, BETWEEN expressions, IN expressions, LIKE expressions, and comparison expressions.
Identify correct and incorrect conditional expressions...; Identify correct and incorrect conditional expressions...: single_valued_path_expression [NOT] IN (string-literal [, string-literal 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
 

Java Beginners

corejava - Java Beginners
corejava pass by value semantics  Example of pass by value semantics in Core Java.  Hi friend,Java passes parameters to methods using pass by value semantics. That is, a copy of the value of each of the specified 

Java Beginners

answer it soon
answer it soon  write a proggram to accept a number and check whether the sum of prime factors of a number is a prime number 

General

Literal in Java
Literal in Java In this section you will learn about literals in Java. "literal" is a constant value. A literal is a constant value that can.... An integer literal are primary literal used in programming language 

Java Beginners

java.please answer this...
java.please answer this...   Q1).How we can write a complete JAVA program that computes the following summation formulas..? ??_(i=1)^n????i^2=?? (n^(2 ) ??(n+1)??^2)/4 

Java Beginners

corejava - Java Beginners
 

Java Beginners

corejava - Java Beginners
 

Java Beginners

corejava - Java Beginners
 

Java Beginners

corejava - Java Beginners
 

Java Beginners

corejava - Java Beginners
 

Java Beginners

corejava - Java Beginners
 

Java Interview Questions

Corejava - Java Interview Questions
 

Java Beginners

corejava - Java Beginners
 

Java Interview Questions

corejava - Java Interview Questions
 

Java Interview Questions

corejava - Java Interview Questions
 

Java Interview Questions

corejava - Java Interview Questions
 

Java Interview Questions

corejava - Java Interview Questions
 

Java Interview Questions

corejava - Java Interview Questions
 

Java Interview Questions

corejava - Java Interview Questions
 

Java Beginners

CoreJava - Java Beginners
 

Ajax Questions

my answer
 

JSP Servlet Questions

send answer
 

Java Beginners

give answer
 

Java Beginners

need answer
 

JSP Servlet Questions

XML response correct in broser but incorrect in Java
XML response correct in broser but incorrect in Java  Firs of all I want to say that I was able to read XML response from URL. Thank you...;/ENELIT> And in Java it prints this (incorrect): <html> <head> 

Java Beginners

Answer for SCJP Module-1 Question-13
Answer for SCJP Module-1 Question-13  The Answer for SCJP Module-1 Question-13 is missing , I think the answer is option '1', Correct me if I am wrong 

JavaScript Questions

pls answer the Trangle pattern
pls answer the Trangle pattern    a b c d e b c d e c d e d e e Please answer and give the code for above triangle 

JSP Servlet Questions

Urgent Answer Req
Urgent Answer Req  how to view the file content which is at client side from jsp in java 

MySQL

Mysql Date Literal
Mysql Date Literal      ... The Tutorial make you an easy example to understand the concept on 'Mysql Date Literal... in the national character set.The Syntax used for Date Literal in Mysql is given below 

Java Interview Questions

Please give me the answer.
"int a=08 or 09" its giving compile time error why   "int a=08 or 09" its giving compile time error why ? can any one give me the answer of this please 

Java Beginners

please answer me
please answer me  iam using html in select tag.in this one option i selected and that option data will be display in table.And use servlet with html and how to retrieve the data from data base 

Ajax Questions

share your answer to this question
share your answer to this question  i need to know what is the TELERIK CONTROL? what is the map suite? what is dunda chart? Also i have to know what are the websites available which give infor regarding this. Let me know how 

Java Beginners

pls answer these question
pls answer these question  Write a program that prompts the user to input the length and width of a rectangle. Then calculate and prints the rectangle??s area and perimeter.   import java.io.*; class rectangle 

Java Beginners

Is the answer 35, 35?
Is the answer 35, 35?  int a = 5; int b = 7; int num = 35; while (a < b) { System.out.println(?My age is ? + num); a = a + 1; }   Hello Friend, class Check{ public static void main(String[] args 

Java Beginners

answer me this program
answer me this program  Java Code to Maintain student record,Name, Age, Marks of 5 subjects for a Student,Display Student age and name,Calculate Average of all marks and display it   Java student record import 

Java Beginners

answer me this program
answer me this program  Java Code to Maintain student record,Name, Age, Marks of 5 subjects for a Student,Display Student age and name,Calculate Average of all marks and display it   Java student record import 

Java Beginners

to know my answer
 

Java Beginners

GIVE ME A ANSWER
 

Java Interview Questions

plz give me answer
 

Java Interview Questions

plz give me answer
 

Java Server Faces Questions

plz give me answer
 

Java Server Faces Questions

plz give me answer
 

JSP Servlet Questions

s per ur answer
 

Security Questions

pls answer - Security
 

Java Beginners

Plz answer - Java Beginners
 

Java Beginners

plz answer - Java Beginners
 

HTML Questions

plz give me answer plz
plz give me answer plz  writw a programme to find rank from an array using doubledimmensionalarray 

Java Beginners

How to resolve this error The filename, directory name, or volume label syntax is incorrect
label syntax is incorrect) at java.io.RandomAccessFile.open(Native Method 

JDBC Questions

please send me the answer - JDBC
please send me the answer -difference between DriverManager and DataDourse   what is Datasourse? What r the advantages? what is the difference between DriverManager and DataDourse 

JSP Servlet Questions

Please answer me - JSP-Servlet
Please answer me  Hello Guys, this is the third time I'm sending this question. But I've not got the right answer from you. The again is: I need java servlet or jsp codes that I can use to insert and retrieve image from MSSQL 

JSP Servlet Questions

Plz send me answer quckly
Plz send me answer quckly  Respected Sir, myself is pavan shrivastava.i want ask a question that is ( we can't create object of interface then how would possible to create object 

Java Tips and Examples

Java - Variable, Constant and Literal in Java
Java - Variable, Constant and Literal in Java  ... keyword. The values of the constant can't be changed once its declared. Literal : literal is an explicit number or string constant used in Java programs 

JSP Servlet Questions

answer this qs in 5 mins plss
answer this qs in 5 mins plss  Create an Web Application, which allows a user to search a book as follows: Based on ISBN code, if he is aware of the code (or) Based on the Book Categories The results of the search has 

Java Beginners

i cNT GET ANSWER FOR THIS QUESTION
i cNT GET ANSWER FOR THIS QUESTION  The roots of the quadratic equation ax2+bx+c=0, aï??¹0 are given by the following formula: x=(-b?±â?š(b^2-4ac))/2a In this formula. The term b2-4ac is called 

Java Beginners

What is the answer and how the program work?
What is the answer and how the program work?  public class Threads2 implements Runnable { public void run() { System.out.println("run."); throw new RuntimeException("Problem"); } public static void main(String[] args 

Programming Tutorials

Identify correct and incorrect statements or examples about the purpose and use of EJB QL.
Identify correct and incorrect statements or examples about...;Next    Identify correct and incorrect statements...;Home Identify correct and incorrect conditional expressions, BETWEEN 

Programming Tutorials

Identify correct and incorrect statements or examples about EJB programming restrictions.
Identify correct and incorrect statements or examples about EJB programming restrictions. Prev Chapter 1. EJB Overview Next     Identify correct and incorrect statements 

Java Interview Questions

java interview question and answer - Java Interview Questions
java interview question and answer   sir, i want one mark java interview question and answers 

HTML Questions

how to get following answer in turbo c program
how to get following answer in turbo c program  input 123456789 output 1 2 3 4 5 6 7 8 9 

JSP Servlet Questions

Please , can any one answer this Question?
Please , can any one answer this Question?  How to cummunicate one web application to another web application in different places 

PHP Questions

Answer me ASAP, Thanks, very important
Answer me ASAP, Thanks, very important  Sir, how to fix this problem in mysql i have an error of "Too many connections" message from Mysql server,, ASAP please...Thanks in Advance 

Java Beginners

please i want someone to answer me pleeeeeeeeeeeeease...
please i want someone to answer me pleeeeeeeeeeeeease...    Write a JAVA program using 2D array to auto-grade exams. For a class of N students, your... answer key as Final Array in your program.( using 2D array 

Programming Tutorials

Identify correct and incorrect statements or examples about the client view of an entity bean's local component interface (EJBLocalObject).
Identify correct and incorrect statements or examples about...;   Identify correct and incorrect statements or examples about the client... correct and incorrect statements or examples about the client view 

Programming Tutorials

Identify correct and incorrect statements or examples about the client view of a entity bean's remote component interface (EJBObject).
Identify correct and incorrect statements or examples about...;   Identify correct and incorrect statements or examples about....     Prev Up NextIdentify correct and incorrect 

Java Beginners

how the answer is 13 can anyone explain plz
how the answer is 13 can anyone explain plz  public class that { public static void main(String arr[]) { int i=3; int j=1; while(i<4) { //j=i; i=i+j/2; } System.out.println(i 

Programming Tutorials

Identify correct and incorrect statements or examples about the client view of a session bean's local and remote component interfaces.
Identify correct and incorrect statements or examples about the client view of a session bean's local and remote component interfaces...;   Identify correct and incorrect statements or examples about 

Java Beginners

help i want it now the answer pleas...
help i want it now the answer pleas...  write a program that will display the exactly output as below: Hints: declare and initialize value of array in double type.Read and write all elements of array.perform the multiply 

Programming Tutorials

Identify correct and incorrect statements or examples about the client's view of exceptions received from an enterprise bean invocation.
Identify correct and incorrect statements or examples about the client's view of exceptions received from an enterprise bean invocation...; Identify correct and incorrect statements or examples about the client's view 

Java Beginners

Java experts.Please answer this question - Java Beginners
Java experts.Please answer this question  class A { void get() { System.out.println("A's method"); } } class C extends A{} class D extends A { void set() { System.out.println("D's method"); } } class ins { public 

Java Beginners

plz. answer my ques - Java Beginners
plz. answer my ques  I want to ask a prog. prob which would create a prog that would simply take username and password as input and will display ***** while taking passwords as input.(As it is done at login in websites). Also 

Programming Tutorials

Identify correct and incorrect statements or examples about the rules and semantics for relationship assignment and relationship updating in a CMP bean.
Identify correct and incorrect statements or examples about... and incorrect statements or examples about the rules and semantics...; Prev Up NextIdentify correct and incorrect statements or examples 

Programming Tutorials

Given a security-related deployment descriptor tag, identify correct and incorrect statements and code related to that tag.
Given a security-related deployment descriptor tag, identify correct and incorrect statements and code related to that tag. Prev ... and incorrect statements and code related to that tag 

Programming Tutorials

Identify correct and incorrect statements or examples about an entity bean's primary key and object identity.
Identify correct and incorrect statements or examples about an entity bean's primary key and object identity. Prev Chapter 8... and incorrect statements or examples about an entity bean's primary key and object 

Java Beginners

Clarify my last question's answer - Java Beginners
 

Programming Tutorials

Identify correct and incorrect statements about the Application Assembler's responsibilities, including the use of deployment descriptor elements related to transactions and the identifica
Identify correct and incorrect statements about the Application Assembler's responsibilities, including the use of deployment descriptor elements...; Identify correct and incorrect statements about the Application Assembler's 

Programming Questions

Question Answer
website. If you found the question you can read the answer if it solves your problem then you can post your comment. If proper answer is not given you can...? Browse Latest Questions Question-Answer Guidelines 

Java Tips and Examples

Java Literals
; By literal we mean any number, text, or other information that represents a value..., we can specify any value as a literal such as an integer. This character sequence will specify the syntax based on the value's type. This will give a literal 

Struts Questions

Would you know answer means please send reply urgent
Would you know answer means please send reply urgent  HTTP Status 404 - /struts/HelloWorld.jsp type Status report message /struts/HelloWorld.jsp description The requested resource (/struts/HelloWorld.jsp) is not available 

Ajax Questions

pls give me answer ae soon as possible - Ajax
pls give me answer ae soon as possible  i m writing code of ajax technology ...but it is not working pls check it n give me response quickly... give me quick response!!! thanks & regards shashank gupta 

Programming Tutorials

Identify correct and incorrect statements or examples about application exceptions and system exceptions in entity beans, session beans, and message-driven beans.
Identify correct and incorrect statements or examples about application exceptions and system exceptions in entity beans, session beans...;Exceptions Next    Identify correct and incorrect statements 

Programming Tutorials

Identify correct and incorrect statements or examples about persistent relationships, remove protocols, and about the abstract schema type of a CMP entity bean.
Identify correct and incorrect statements or examples about...; Identify correct and incorrect statements or examples about persistent... for Container-Managed Persistence (CMP) Home Identify correct and incorrect 

Framework Questions

need the answer vry urgently..plz help me...[plzzzzzzzz
need the answer vry urgently..plz help me...[plzzzzzzzz  the question is.... 1-create a form accepting user name,password and confirm password. 2.javascript validation, 3.check against the database that all the information given 

Java Beginners

i need to answer this Question but i can't do it probably
i need to answer this Question but i can't do it probably   use the web to locate the lyrics to the traditional song"The Twelve Days of Christmas" the song contains a list of gifts received for the holiday.the list is cumulative 

Java Beginners

hello sir, please give me answer - Java Beginners
 

Programming Tutorials

Identify correct and incorrect statements about the purpose and use of the deployment descriptor elements for environment entries, EJB references, and resource manager connection factory r
Identify correct and incorrect statements about the purpose and use of the deployment descriptor elements for environment entries, EJB... correct and incorrect statements about the purpose and use of the deployment 

Programming Questions

Question-Answer Guidelines
Question-Answer Guidelines How to ask questions... search the answer in the archive sections, it may be possible that users will get... and rating the articles/ tutorials. Same like this, question-answer section 

Struts 2 Tutorials

Struts 2 Validation
Struts 2 Validation       User input validations are integral part of any web application. With the release of Struts 2, validation are now much easier and robust. Struts 2 support Ajax based and even 

JSP Servlet Questions

hi,i'am new to Jsp.Can some one please let me know an answer for this question?
hi,i'am new to Jsp.Can some one please let me know an answer for this question?  how do we upload an xml file and validate them against WIPO DTD 

Advertisements Advertisements
 

 

 

DMCA.com