Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ryan Anderson   on Sep 27 In Java Category.

  
Question Answered By: Angelica Ramos   on Sep 27

Everything in java is an OBJECT
String is an object so are the classes
String is a class  but also, you use strings  to declare data types
eg: String name="Baglan"
You make this decleration inside a class
eg:
Public MyClass {
String name="Baglan"
....
...
}
Classes have attributes  (properties) and they have methods  which determine the
behavior of that class
Good luck
If you need further explanation you can refer to
www.java.sun.com

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on difference between strings, classes, and objects Or get search suggestion and latest updates.


Tagged: