Comment on Tutorial - String Class Constructors in Java By Daniel Malcolm
Comment Added by : Jameesh
Comment Added at : 2015-03-05 07:09:38
Comment on Tutorial : String Class Constructors in Java By Daniel Malcolm
S.N. Constructor & Description
1 String()
This initializes a newly created String object so that it represents an empty character sequence.
2 String(byte[] bytes)
This constructs a new String by decoding the specified array of bytes using the platform's default charset.
3 String(byte[] bytes, Charset charset)
This constructs a new String by decoding the specified array of bytes using the specified charset.
4 String(byte[] bytes, int offset, int length)
This constructs a new String by decoding the specified subarray of bytes using the platform's default charset
5 String(byte[] bytes, int offset, int length, Charset charset)
This constructs a new String by decoding the specified subarray of bytes using the specified charset.
6 String(byte[] bytes, int offset, int length, String charsetName)
This constructs a new String by decoding the specified subarray of bytes using the specified charset.
7 String(byte[] bytes, String charsetName)
This constructs a new String by decoding the specified array of bytes using the specified charset.
8 String(char[] value)
This allocates a new String so that it represents the sequence of characters currently contained in the character array argument.
9 String(char[] value, int offset, int count)
This allocates a new String that contains characters from a subarray of the character array argument.
10 String(int[] codePoints, int offset, int count)
This allocates a new String that contains characters from a subarray of the Unicode code point array argument.
11 String(String original)
This initializes a newly created String object so that it represents the same sequence of characters as the argument; in other words, the newly created string is a copy of the argument string.
12 String(StringBuffer buffer)
This allocates a new string that contains the sequence of characters currently contained in the string buffer argument.
13 String(StringBuilder builder)
This allocates a new string that contains the sequence of characters currently contained in the string builder argument.
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. New thread: Thread[One,5,main]
How is the s
View Tutorial By: Venkatesh at 2013-04-21 07:06:15
2. Hi..
i a'm Sajid mestri (Maha,sangli)
View Tutorial By: sajid at 2010-10-30 00:32:15
3. thanx it i very helpful 4 me as i m new with java
View Tutorial By: akminder at 2011-08-09 05:09:19
4. can you please e mail me a code about hotel reserv
View Tutorial By: princeton at 2008-09-19 02:32:13
5. Good job. Very clear and concise and a great help.
View Tutorial By: Eduardo at 2012-02-08 19:18:50
6. Getting Invalid IPv4 format J2me Midp 2.0, Asp.net
View Tutorial By: Anup at 2013-01-02 05:11:51
7. It is very help full to me and very simple underst
View Tutorial By: Reddymalla Babu Sircilla at 2013-02-22 08:28:22
8. sir, i want to learn java please help me.
View Tutorial By: nitin mittal at 2013-12-23 10:04:11
9. Precise information in the article, however it wou
View Tutorial By: Ketan at 2009-06-23 05:07:39
10. How to display the ARP Mapping Table of a given ho
View Tutorial By: Hala at 2013-11-15 22:42:36