03-07-2016, 10:50 PM | #1 |
Registered User
Join Date: Feb 2016
Posts: 73
|
Is String a data type in java?
String is not a primitive data type in java. When a string is created in java, it’s actually an object of Java.Lang.String class that gets created. After creation of this string object, all built-in methods of String class can be used on the string object.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
03-18-2016, 10:46 PM | #2 |
Registered User
Join Date: Nov 2015
Posts: 127
|
In Java Language Strings can be initialized by enclosing a string value in double quotes. Strings can be concatenated using the plus ('+') operator. So is String considered a Java data type? Inspite of all the above, String is not considered a primitive data type in Java.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can main() method in Java can return any data? | Shivangi Panwar | ASP | 1 | 03-01-2016 10:19 PM |
[UK/USA/EU/CA] VPS Servers in Locations, Linux/Windows/RDP/Root Access - Bitcoins | AJKpeter | Post your ad here | 0 | 01-06-2015 01:09 AM |
Cheap Linux/Windows VPS - SSD/VMware/Xen/OpenVZ - CC/Paypal/Bitcoins/Perfect Money | AJKpeter | Post your ad here | 0 | 12-30-2014 01:07 AM |
Choose the right type of belt on belt hangers | peter men | Post your ad here | 0 | 10-14-2013 07:53 PM |
biggest teature of String in java? | cianfie | Java | 0 | 12-08-2011 09:03 PM |