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. How to fetch a value from a database in dropdown b
View Tutorial By: lara at 2014-11-19 09:02:43
2. i didnot get the answer
View Tutorial By: ramana at 2013-02-04 06:36:37
3. need to be place taglig in the <jsp-config>
View Tutorial By: Shaik Basha at 2013-01-30 03:11:41
4. Please help me i am getting following error messag
View Tutorial By: Balaji at 2009-09-23 22:54:06
5. superb its working perfect but one thing, we have
View Tutorial By: venkatachalam at 2013-03-14 16:35:00
6. My friend, How to user ArrayList?
View Tutorial By: Joao Neto at 2009-06-04 06:28:17
7. teacher namin na si Engr. Lumasag nakakasira ng ba
View Tutorial By: rossy at 2011-10-06 06:12:53
8. Following question to this topic:
- when i
View Tutorial By: Alistair at 2012-01-14 10:59:52
9. Whenever i run this program, it terminates immedia
View Tutorial By: Gopi at 2015-08-19 06:55:41
10. The basic structure of simple program is used to l
View Tutorial By: Muthusasi at 2009-12-17 21:10:01