A class is basically a definition, and contains the object's code. An object is an instance of a class. For instance, there is one java.lang.String class, but you can instantiate any number of distinct java.lang.String objects (instances). While a class defines the instance variables than an object has, the instantiated object itself actually contains those variables. So to put it simply: An object is an instance of a class.
Java or Java SE comes with the standard library, with all the crazy classes to make life easy. Java Core does not come with most of these classes, so that it is a lot smaller.
No Primitive data types do not have objects. As of Java 1.5, all primitive types in Java have "wrapper" classes. These classes serve two purposes: # They keep all type-specific methods together in one place. # They allow primitive types to be used in situations which take advantage of generics (also introduced in Java 1.5).
Final classes are sealed classes in java I guess.
Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC
Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.
To create objects of classes
Java is an object oriented language, and it works with classes and objects.
Java or Java SE comes with the standard library, with all the crazy classes to make life easy. Java Core does not come with most of these classes, so that it is a lot smaller.
Classes are well organised functions in java which help discriminate between two different functions.
No Primitive data types do not have objects. As of Java 1.5, all primitive types in Java have "wrapper" classes. These classes serve two purposes: # They keep all type-specific methods together in one place. # They allow primitive types to be used in situations which take advantage of generics (also introduced in Java 1.5).
Final classes are sealed classes in java I guess.
Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC
Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.
Of course, JAVA programming has a stricter syntax format than C++
Core Java and J2SE are the same thing, which is the set of classes to be found in the rt.jar package. The classes were just given different names at different stages of the continued revisions to the Java Runtime Environment.
While neither abstract classes nor interfaces can be instantiated in Java, you can implement methods in abstract classes. Interfaces can only define methods; no code beyond a method header is allowed.
a package