Plz help me with this Question 1 Answer(s) 3 years and 3 months ago
Posted in : Java Beginners
this is java code ------------------------- Consider the following code: int [ ] a = [1, 2, 3]; Object o ="123"; String t = "12"; String w = t + "3"; Boolean b = o.equals (a); Boolean b2 = o.equals (t); Boolean b3 = o.equals (w); Boolean b4 = (o == w); Show the effect of executing this code by means of a diagram similar to that in Figure 2.2. Also explain how the code arrived at the results in b, bl, b2, and b3.
View Answers
February 15, 2010 at 12:08 PM
Hi Friend,
Your code: class Check { public static void main(String[] args) { int [ ] a = {1, 2, 3}; Object o ="123"; String t = "12"; String w = t + "3"; Boolean b = o.equals(a); Boolean b2 = o.equals(t); Boolean b3 = o.equals(w); Boolean b4 = (o == w); System.out.println(b); System.out.println(b2); System.out.println(b3); System.out.println(b4); } }
returns following output: false false true false
Thanks
Related Pages:
plz help me for this question plzhelpme for this question Apply simplex procedure to solve the L.P.P. maximize z = 3x1 + 4x2 subject to 5x1 + 4x2 â?¤ 200; 3x1 + 5x2 â?¤ 150; 5x1 + 4x2 â?¥ 100; 8x1 + 4x2 â?â?¥ 80, x1 â?¥ 0, x2 â?¥ 0
interview question plz help me and thers
interview questionplzhelpme and thers A college is good if it satisfies the following conditions:
1.Its number of students is greater than 1000.
2.If the name ends wih a character 'e', then it should not start with character
Plz help me with this Question - Java Beginners Plzhelpme with this Question this is java code
-------------------------
Consider the following code:
int [ ] a = [1, 2, 3];
Object o ="123";
String t = "12";
String w = t + "3";
Boolean b = o.equals (a);
Boolean b2
sir i,have a assignment for these question plz help me sir - JavaMail
sir i,have a assignment for these questionplzhelpme sir
1.Design a Java interface for ADT Stack. Develop two different classes that implement this interface, one using array and the other using linked-list. Provide
Help me quickly plz?? Helpme quickly plz?? Can you helpme to write code quickly this code is a java code take input as double and should use command line arguments and enhanced for statement then find the combine of the numbers plzhelp quickly
help me plz - Java Interview Questions helpme plz 1)write a java program that prompts the user to input a decimal number and print the number rounded to the nearest integer?
2)write...?
plz answer my question Hi Friend,
Try the following code:
1
Plz Help Me PlzHelp Me Write a program for traffic light tool to manage time giving between Main-Street and sub-Street. firstly, give green light for 40... traffic light on the frame. We have used java swing. It may help you.
import
plz help me find a program plzhelpme find a program plzhelp..i want a source code in jsp for order processing
plz help me - Java Beginners plzhelp me Deepak I can write a sessioon code plzhelpme admin_home.jsp page is display but data is not disply plzhelpme what is wrong
need the answer vry urgently..plz help me...[plzzzzzzzz
need the answer vry urgently..plzhelpme...[plzzzzzzzz the question... code...hpw to write in eclipse platform....plzplz mail me...to panda.pragnya7@gmail.com/panda_pragnya@yahoo.com...plzplz...help....me..it can change my lyfe
plz help me - Java Beginners plzhelp me Hi,
I want to search all field from database using name, and display in text box, then data is update and delete.
i want to search name using alphabets a-z, plz reply fast.
plzhelpme this is very urgent
Plz give me code for this question Plz give me code for this question Program to find depth of the file in a directory and list all files those are having more number of parent directories
plz Help me - Java Beginners plzHelp me Hi,
I want learn struts,I dont have any idea about this plzhelp how can i make a framework.If u have any information then plz send my personal id
plz tell me that whose software installed.and give me brief
plz help me - Java Beginners plzhelp me deepak hw can i create a data grid in jsp and also how can i connect to the data base plzhelp me to create data grid in jsp use html tables with borders.
to connect to data base use scriptlets.
ex
plz help me - Java Beginners plzhelp me Thanks deepak continue response..i face some problem
i... is true...but i very confuse that how it is not displayed admin page plz any one give me reponse my persinal given id Hi ragni,
i am sending
plz help me!!!!!!!! - JSP-Servlet plzhelpme!!!!!!!! i`ve set the environment varaibles for tomcat as well as jdk.. but i`m not understanding where i`ve to save my servlet..i.e.... there are compilation errors.. plz do helpme. make sure that you did
plz help meto solve this question plzhelp meto solve this question for a file that exist what will be the length() method in the file class return
plz help me today plz plz - Java Interview Questions plzhelpme today plz plz 2.) Suppose list is an array of six elements of type int. What is stored in list after the following java code executes?
.
for (i = 0; i < 5; i++)
{
list[i] = 2 * i + 5
help me to solve this question... helpme to solve this question... Given below is a class definition for Book. Type and compile the class, and answer the following questions:
class Book {
String title; //bookâ??s title
double price; //bookâ??s
pls help me with this question
pls helpme with this question how to write a program in C++ using encapsulation,polymorphism,inheritance and abstraction?(all these concepts should come in a single program
help me to solve this question helpme to solve this question Write a program that inputs a series of integers into an array. The numbers are in the range 0 to 100.
Calculate and display :
a) The Largest number
b) The Smallest Number
c)The sum of the numbers
help me to solve this question helpme to solve this question
A user needs to key in data into system in order to save data into array. The data are:
a. Lecturer ID, Lecturer name, School, course code, course name, session, semester
A user can edit the data
Intranet Website creation - plz help me
Intranet Website creation - plzhelpme hi..
I have assign with the intranet website creation work..right from scratch to end..And honestly I know nothing about it.My domain is totally different ..
can anybody pls helpme
facing problem plz help me out - Framework
Facing problem plzhelpme out hi i am new to servlet i deployed... the web.xml file too parallel to the classes folder now i am facing this problem.plz tell me what to do... error:The requested resource (Servlet servlet
Help me plz in Probablity distribution of Java Helpmeplz in Probablity distribution of Java Hello,
I have...% is insert or update queries.
Which distribution to use and how to achieve it..
Plzhelp thanks for your time
PLZ HELP ME. i need php code. PLZHELPME. i need php code. I want php code for bellow OUTPUT.
output is just example but it must be letters only.
abc
bcd
efg
jku
rgt
azs
hje
qqc
wws
adt
help me plz befor 27 februry helpmeplz befor 27 februry what is rung with this ??
helpme plzzzz
import java.util.Scanner;
public class Initials
{
public static void main (String [] args)
{
String firstname,lastname
Help Me With This Plz - Java Interview Questions HelpMe With This Plz Write a program that's print a word like(I S E) on the black screen with 0,1 only by using two dimensional array? the 1's will represent the words
plz Help me find the correct programs answers plzHelpme find the correct programs answers
Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff... INDICA" and "TATA NANO" respectively.
Plz mail me your answers
plz help me - Java Interview Questions plzhelp me 1)Rewrite the method in exercise 10 such that it use the binary search algorithm instead.
the linear search algorithm is suitable for small arrays or unsorted arrays.
for large arrays linear search is inefficient
java, plz help me in doing this - Java Beginners
java, plzhelpme in doing this # Write a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record.....giving me the error of NoClassDefFoundError
Question
Question sir I am creating a user defined custom tag in net beans ide but I am unable to run the code sucessfully . I got internal server error plzhelpme
Please visit the following links:
http://www.roseindia.net
Help me Help me plz i want code of program to add real numbers and magic numbers in java
example
this input :- 5+3i-2+3i
output:- 3+6i
Plz help with third Question - Java Beginners Plzhelp with third Question 1)-
Specify and implement a procedure that determines whether or not a string is a palindrome. (A palindrome reads the same backward and forward; an example is "deed
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
help again plz sorry - Java Beginners help again plz sorry Thanks for giving me thread code
but i have a question
this code is comletelly right
and i want to make it runs much faster
for that i made 5 threads
but 2 things i dont understand
1- with one
help me
in the beginning will ake the uesr to which system he/she wants to be transferred.
plzhelpme
Clear Question plz et me know immediately - Java Beginners
Clear Questionplz et me know immediately Hi Deepak
your application is good,pls modify this application and let me know My problem is that,
Steps:
1:- A form have three 3 button delete,insert,edit.
2
help me in these - Java Interview Questions helpme in these hello every body
i have some question if you cam plz answer me it is important to me
and these are the questions :
1)Write... in the array . use linear search for this algorithm . test your method.
answer me
plz help me to create gui using Java netbeans plzhelpme to create gui using Java netbeans Hi,
I am unable to fetch a particular data from DB.I am using netbeans for creating GUI. If I want.... I am unable to fetch the particular data. Plzhelpme
Hi Friend
very urgent : Iam unable to code this program plz help me - RMI
very urgent : Iam unable to code this program plzhelp me Write a Multi-user chat server and client. Hi friend,
Chat server is a standlone application that is made up the combination of two-application, server