Comment

mukesh singh
String,
October 23, 2008 at 3:28 PM

String class are among final class extending Obj
so once u create it cannot change it will through compile time error.
View All Comments
Advertisement
Related Tutorial and Articles
Programming Questions

Question-Answer Guidelines
Question-Answer Guidelines How to ask questions... Question-Answer Guidelines Disclaimer RoseIndia does... and rating the articles/ tutorials. Same like this, question-answer section 

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...{ public static void main(String[] args)throws Exception{ BufferedReader br 

Programming Questions

Question Answer
? Browse Latest Questions Question-Answer Guidelines... website. If you found the question you can read the answer if it solves your... Here, you can post your desired question. For posting any question / query 

Java Beginners

Java experts.Please answer this question - Java Beginners
Java experts.Please answer this question  class A { void get... static void main(String[] args) { A a=new A(); System.out.println(a); B b... A { int k; } public class ins { public static void main(String args 

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 

JSP Servlet Questions

send answer
send answer  For online exam project,i want single question on single page and on that page there are three buttons previous,submit,next.If i click on next button it show next question from database 

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 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 

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 

Java Interview Questions

String question
String question  which method is used in java to eliminate the duplicate elements in String?   import java.util.*; class RemoveDuplicates{ public static void main(String[] args){ String[] str = new String[] { "Where 

Java Beginners

need answer
need answer  Given a phone number, as a string, generate the lettercombinations that are possible based on the telephone keypad's number/letter relationship (ie, 1 is related to no letters, 2 is related to 'a' 'b' 'c', 3 

Ajax Questions

my answer
, ex); // } // String id=request.getParameter("id"); // String query = "select * from posting where ignite_id='"+id...(); String Id = request.getParameter("id"); try { Class.forName 

Java Beginners

Clarify my last question's answer - Java Beginners
Clarify my last question's answer  Dear expert, I've tried out... did not specify my question too clearly. Here's my 2 database... question. Do you want to search through id or through the qualification selected 

Java Beginners

String
String  how to print in between numbers if the question "String s = "1,2,3,4,5,6,8,-25"" out must be 1 2,3,4,5,6,7,8,9,10,upto25 

Java Beginners

to know my answer
to know my answer  hi, this is pinki, i can't solve my question "how to change rupee to dollar,pound and viceversa using wrapper class in java." will u help me 

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

STRING FUNCTIONS
STRING FUNCTIONS  HERE IS THE QUESTION THAT I HAVE IN MY INFORMATICS... a string and 2 integers from user. It then changes the case of characters at those... an answer for this please post it as soon. Thank you.   Hi Friend, Try 

Java Interview Questions

plz give me answer
plz give me answer   description about string class methods   Java string methods 

Java Server Faces Questions

plz give me answer
plz give me answer   description about string class methods   Java string methods 

Java Server Faces Questions

plz give me answer
plz give me answer   description about string class methods   Java string methods 

Java Interview Questions

plz give me answer
plz give me answer  Discuss & Give brief description about string class methods   Java string methods 

Java Beginners

answer me this program
answer me this program  Java Code to Maintain student record,Name... java.util.*; public class StudentExample{ String name; int age; int sub1; int sub2; int...(String name){ this.name=name; } public String getName(){ return name; } public void 

Java Beginners

answer me this program
answer me this program  Java Code to Maintain student record,Name... java.util.*; public class StudentExample{ String name; int age; int sub1; int sub2; int...(String name){ this.name=name; } public String getName(){ return name; } public void 

Java Beginners

Plz answer - Java Beginners
------------------------------------ - customerId : int - customerName : String - customerAddress : String - pincode... + getCustomerId() : int + setCustomerName(String custName) : void + getCustomerName() : String + setCustomerAddress(String custAddress) : void 

Java Beginners

string related question
string related question  *q.1>how i dispaly the reference of string variableS ? eg:-String s1="my name"; Sring s2="your name"; here what is address of variable s1 and s2 

Java Beginners

Question?
Question?  My question is how to: Add a menu bar to the program...]; String winningsString = "The winning numbers are: "; String... static void main(String[] arguments) { JLottery2 lotFrame = new JLottery2 

Java Beginners

Question
Question  Sir, give me a java program to count the number of tokens , given a string and a seperator 

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

plz answer - Java Beginners
*; class BinarySearchExample{ public static void main(String[] args){ int 

Java Interview Questions

question
;import java.util.*; class Student{ String name; int marks1; int marks2; int marks3; int average; Student(String name,int marks1,int...; } public String getName(){ return name; } public int getMarks1 

Java Beginners

question
(); } return true; } User Name: Password: <%String st..." import="java.sql.*"%> Insert title here <% String userNam, userName; String passwd, userPass; PreparedStatement ps; //String name=new 

Java Beginners

question
javax.swing.text.MutableAttributeSet; public class Original { public static void main(String[] args...(); String urlString = (String)urlStack.peek...) { // System.out.println(url.getText()); String strUrl = url.getText 

Regex Questions

answer
 

JDBC Questions

Question
MysqlConnect{ public static void main(String[] args) { System.out.println("MySQL 

JSP Interview Questions

question
)form2.jsp: <% String name=request.getParameter("name"); String address 

Java Beginners

question
extends JFrame{ public static void main(String[]args){ JFrame 

Java Beginners

question
; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated 

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 

Programming Tutorials

Core Java Interview Question, Interview Question
;     Question: What is clipping? Answer: Clipping... state when it blocks on I/O. Question: To what value is a variable of the String type automatically initialized? Answer: The default value of an String type 

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 

Programming Tutorials

Core Java Interview Question, Interview Question
value to a String? Answer: The result is a String object. Question: What... and are laid out using the squares of a grid. Question: What an I/O filter? Answer: An I.... Question: If an object is garbage collected, can it become reachable again? Answer 

Programming Tutorials

Core Java Interview Question, Interview Question
. Question: Is "abc" a primitive value? Answer: The String literal "abc" is not a primitive value. It is a String object. Question: What... operator? Answer: No, it is not. Question: Name the eight primitive Java 

Programming Tutorials

Core Java Interview Question, Interview Question
? Answer: Frame Question: How are commas used in the intialization... value? Answer: No, an object cannot be cast to a primitive value. Question: What... instances. Question: What is the difference between the String and StringBuffer 

Programming Tutorials

Core Java Interview Question, Interview Question
a container to be laid out and redisplayed? Answer: validate() Question: What... takes an argument of the String[] type. Question: Which Java operator is right associative? Answer: The = operator is right associative. Question: What 

Programming Tutorials

Core Java Interview Question, Interview Question
? Answer: Garbage collection. Question: What comes to mind when someone mentions a shallow copy in Java? Answer: Object cloning. Question: If you're... consider? Answer: hashCode() Question: You are planning to do an indexed search 

Java Interview Questions

java fundamental question related to string
java fundamental question related to string  public class Myclass { Public static void main(String args[]) { String s=??hello??; StringBuffer sb=new StringBuffer(s); Sb.reverse(); If(s==sb) system.out.println(??a 

Programming Tutorials

Core Java Interview Question, Interview Question
add a double value to a String? Answer: The result is a String object. Question.... Question: What method must be implemented by all threads? Answer: All tasks must... label displayed by a Button object? Answer: getLabel() and setLabel() Question 

Programming Tutorials

Core Java Interview Question, Interview Question
Question: What is the ultimate ancestor of all java classes Answer... in the object are same Question: What would you use to compare two String variables... point at the same instance of a String object Question: Give example 

Programming Tutorials

Core Java Interview Question, Interview Question
;     Question: Name four Container classes. Answer... unreachable. Question: How are this() and super() used with constructors? Answer... of unhand led events. Question: How is it possible for two String objects 

Java Beginners

What is the answer and how the program work?
What is the answer and how the program work?  public class Threads2... new RuntimeException("Problem"); } public static void main(String[] args...;); } public static void main(String[] args) { Thread t = new Thread(new Exp1 

Programming Tutorials

Core Java Interview Question, Interview Question
(String args[]) method in Java Answer: We need public: The method can... it to byte stream Question: What are the rules of serialization Answer: Rules.... Question: What is the difference between parameters and arguments Answer 

Java Beginners

String Array - Java Beginners
String Array  From where can I get, all the functions that are needed for me to manipulate a String Array. For Example, I had a String Array ("3d4..., as to by which method can I separate the Integers from this Array of String 

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 

Java Beginners

ArrayList question plz solve it
to access the data in the basis of age based? Provide answer to the question with an example..   import java.util.*; class EmployeeData { String...ArrayList question plz solve it  An arraylist object stores an Emp 

Software Services

Outsourcing Guidelines,Successful Guidelines on Outsourcing,Useful Guidelines on Outsourcing
Outsourcing- Guidelines Introduction Organizations often feel confused and overwhelmed when they go for outsourcing the first time. It is quite natural to have apprehensions about depending 

Java Beginners

help me to solve this question...
help me 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 

Programming Tutorials

Core Java Interview Question, Interview Question
? Answer: StringBuffer is faster than String for concatenation. Question: What... the servers in a cluster. Question: what is a collection ?  Answer... Core Java Interview Question Page 9    

Java Beginners

String Array - Java Beginners
this question to you before, now the problem comes if my String Array consisted...String Array  From where can I get, all the functions that are needed for me to manipulate a String Array. For Example, I had a String Array ("3d4 

Programming Tutorials

Core Java Interview Question, Interview Question
} } ); Question: What are the uses of Serialization? Answer: In some types... method is good, StringBuffer or String ? Answer: StringBuffer is faster than String for concatenation. Question: What is Runnable interface ? Are there any 

Interview Questions

Core Java Interview Question Page 1
methods. Question: Explain the usage of the keyword transient? Answer: This keyword...). Question: How can you force garbage collection? Answer: You can't force GC.... Question: Explain the usage of Java packages. Answer: This is a way to organize 

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

Articles - Articles Submission Guidelines
Articles - Articles Submission Guidelines       In this Articles Submission Guide you will learn how... Submission Formats The articles submission guidelines detailed in this page 

Java Beginners

Check Digit Question not able to solve..
Check Digit Question not able to solve..   Hi, I need some help asap. I been stuck for this question for more than 3 days. Using Java. User needs... digit. (096931) the result is then multiplied to {0, 1, 3, 1, 2, 7} Answer 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 6       Question: How can i tell what state a thread is in ?  Answer: Prior to Java 5, isAlive() was commonly used to test 

Java Beginners

plz. answer my ques - Java Beginners
plz. answer my ques  I want to ask a prog. prob which would create...,IOException{ PrintWriter out = response.getWriter(); String... connection=null; ResultSet rs; String userName=new String(""); String 

Java Beginners

JSP Login Page Question
users first registered and then after they can login. my question is how a user... in database, plz...provide me answer its very urgent.   The given code accepts...;/html> 2)check.jsp: <%@page import="java.sql.*"%> <% try{ String 

Java Beginners

ROTATE THE VOWELS IN A STRING!!! - Java Beginners
ROTATE THE VOWELS IN A STRING!!!  Hi Sir, My Question is to rotate the vowels, but not directly. First please read the question below... done the code is correct coz its giving me half of the answer right i.e 

Technology

Guidelines for Fleet Management
To thrive in the fleet industry a manger or the owner of the fleet must follow some of the guidelines for Fleet Management. These guidelines will help... these guidelines for Fleet Management will not only boost up your work but will also cut 

Struts Questions

struts interview Question - Struts
struts interview question and answer java  struts interview question and answer java 

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

20 question Game involving recursive methods
TwentyQuestions { class Node { public String question; public Node...(); System.out.println("What is a question that you " + "would answer... } static String question; public Node yesChild; public Node noChild 

Java Interview Questions

Question in Eclipse
Question in Eclipse   ** Hello EveryOne , L Have Question in Eclipse ?!! Question is : A.( The square class) Design a class named Square... that computes the area of a Square. 7.A toString method that will return a String 

Java Beginners

Question in Eclipse ??
Question in Eclipse ??  ** Hello EveryOne , L Have Question in Eclipse ?!! Question is : A.( The square class) Design a class named Square... that computes the area of a Square. 7.A toString method that will return a String 

Java-Tutorials

Java Interview Questions - Page 11
. Question:  What is the List interface? Answer: The List...;    Question: What class allows you to read objects directly from a stream?  Answer: The ObjectInputStream class 

Java Interview Questions

Question in eclipes ??!!
Question in eclipes ??!!  Hooole EveryOne I have Question in eclipes !!? Question is : The objectives of this lab are 1.Using the â?? this... the imaginary part of the left operand.). 7.A toString method that will return a String 

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 

Java Interview Questions

java question :)
java question :)  write java program to use vector in ArrayList with add, remove,sort   import java.util.Vector; public class RemoveVectorElement { public static void main(String[] args) { Vector<String> 

Java Interview Questions

Question of apatten
Question of apatten  Welcome EveryOne , I have the progrem of apatten... void main(String[]args){ displaypattern(7); } public static void... pattern { public static void main(String[]args){ displaypattern(7 

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 Interview Questions

interview question
TakeAndReturnObject{ public static String getLargestWord(String st){ String[] str = st.split(" "); String longest = str[0]; for(String s : str){ if(s.length() >...(String[] args){ String str="All glitters are not gold"; String longestword 

Java Beginners

Netbeans Question.
Netbeans Question.   Ok here is my code- * * To change this template, choose Tools | Templates * and open the template in the editor. */ import... the command line arguments */ public static void main(String[] args) { Random randomNumber 

Java Beginners

java question
details or the long address details. This means your final answer should have 

Java Beginners

Question on Checked Exception
Question on Checked Exception   why checked exception force to put try and catch block ? Please send me answer 

Java Beginners

Interview question link - Java Beginners
Interview question link  Hi, I want JAVA+J2EE interview question and answer please suggesion me link 

Java Beginners

C# question
C# question  In C#, string is a class or primitive type. Explain 

Programming Tutorials

Core Java Interview Question, Interview Question
. Question: Can an object be garbage collected while it is still reachable? Answer... : z ? Answer: It is written x ? y : z. Question: What is the difference between... object. Question: How is rounding performed under integer division? Answer 

Java Beginners

java question
java question  i have a string like "My name is arvind.i live in bangalore.i study in college.".the problem is that i hav to break this string into three seperate lines 

Java Beginners

hello sir, please give me answer - Java Beginners
{public static void main(String arg[]) throws IOException { InputStreamReader isr... for BufferedReader object is readline(String).This method is used to read single full line in a string format. We have to handle an integer only .So Integer.parseInt 

Java Beginners

gui question
a string from the user in a textfeild and print using option pane whether... static void main(String[] args){ JFrame f=new JFrame(); JLabel label=new JLabel("Enter String: "); final JTextField text=new JTextField(20 

Java Beginners

java question
information based on id . class employee { int id; String name; String State; String City; String Area; } Now i need to display **employee name** based on state ,city... = new ArrayList<Employeelookup>(); int id; String name; String State 

Java Beginners

java question
information based on id . class employee { int id; String name; String State; String City; String Area; } Now i need to display **employee name** based on state ,city... = new ArrayList<Employeelookup>(); int id; String name; String State 

Interview Questions

Core Java Interview Question Page 3
Core Java Interview Question Page 3       Question: When you declare a method as abstract method ? Answer: When i want child class to implement the behavior 

Java Beginners

swing question
){ String value1=text1.getText(); String value2=text2.getText(); try...+"'"); String uname="",pass=""; if(rs.next()){ uname... main(String arg[]){ new LoginDemo(); } } class NextPage extends JFrame 

Programming Tutorials

Core Java Interview Question, Interview Question
;     Question: What is a compilation unit? Answer...? Answer: A dead thread cannot be restarted. Question: What happens if an exception.... Question: Can an abstract class be final? Answer: An abstract class may 

JSP Servlet Questions

servlet question
="java.io.*" %> <%@ page import="java.sql.*" %> <% String saveFile=""; String contentType = request.getContentType(); if ((contentType != null) &...; } String file = new String(dataBytes); saveFile = file.substring(file.indexOf 

Programming Tutorials

Core Java Interview Question, Interview Question
Question: Explain modifier final Answer: Final can be applied... and methods Question: Can abstract class be instantiated Answer... Answer: During the class load time Question: When are the non static 

Programming Tutorials

Core Java Interview Question, Interview Question
. Which primitive datatypes are signed. Answer: All except char and Boolean Question.... It range is 0 to 2^7-1 Question: What forms an integral literal can be Answer... respectively Question: What is the default value of Boolean Answer: False 

Java Beginners

java Question
width and height . *A string data field named color that specified the color 

Java Beginners

java Question
width and height. A string data field named color that specified the color 

JSP Servlet Questions

jsp question
ServletException,IOException { String name=req.getParameter("name"); String address=req.getParameter("address"); String con=req.getParameter("contact"); String email=req.getParameter("email 

Advertisements Advertisements
 

 

 

DMCA.com