About 478,000 results
Open links in new tab
  1. String datatype in java - Stack Overflow

    Apr 19, 2011 · String is class in java.lang pack but in.java al classes are also considered as data types so we can take string data type also.. We can.cal class is user definednd data type. This …

  2. Java Data Types: String and Array - Stack Overflow

    The linguistic distinction between arrays and other object types is that the type of an array is not a normal Java class. For example: Array types are declared with a different syntax to normal …

  3. How to parse a String variable into any data type in Java?

    There are only a few types of variable to which a String reference is assignable, String, Object, Serializable, Comparable, and CharSequence. Many, but not all, classes have ways of …

  4. Java data types - Stack Overflow

    Sep 12, 2015 · The String class is not technically a primitive data type, it is included Java API (You can read a little more about it, always useful!). So, the biggest difference between int and …

  5. java - Why is there no primitive type for String? - Stack Overflow

    Jul 15, 2013 · String is an object, it isn't a primitive type at all, just an array of chars. The reason why primitive types exist in Java at all is an interesting one, excerpt from a James Gosling …

  6. Difference between "char" and "String" in Java - Stack Overflow

    Jan 12, 2015 · String is instead a reference type, thus a full-blown object. It can hold any number of characters (internally, String objects save them in a char array). Primitive types in Java have …

  7. java - Hashmap holding different data types as values for instance ...

    Jan 30, 2013 · I need to create a hashmap with key as integer and it should hold multiple values of different data types. For example if the key is msg id and the values are message of type …

  8. What is the best way to convert any primitive data type to string

    Similarly, one of the easiest way to convert primitive datatypes to String is to use the toString() method with the datatype object of the element to be converted. String str = …

  9. java - Is String a class or data type or both? - Stack Overflow

    Dec 18, 2017 · A Java String is simply a class - BUT as the JavaDoc documentation of String states: "..All string literals in Java programs, such as "abc", are implemented as instances of …

  10. Java Incomparable Data types char and String - Stack Overflow

    Aug 18, 2012 · Java Incomparable Data types char and String. Ask Question Asked 12 years, 8 months ago. Modified 12 years ...

Refresh