What are the types of classes in java?
Answers were Sorted based on User's Feedback
basically in java we have 2 types of classes. those are user
defined classes and pre defined classes. in both we can
differentiate the classes in 3 ways. those are interfaces,
abstract classes and concrete classes. Where we can't create
the objects for the abstract class and interfaces. by using
inheritance concept we can able to create the object of the
for the derived classes and assign those objects to the base
class references(according to OOP concept).
Thank you.
| Is This Answer Correct ? | 30 Yes | 2 No |
Answer / raj singh
There r 2 type of class in java , first is pre-define class( which r define in advance for diff. Purpose like String, StringBuffered ,Applet class. Some Of these classes stored in packages...) and other is user-define class ( which r define by the user for its usage's.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / moonali roul
String class, StringBuffer class, Math class, Wrapper class
| Is This Answer Correct ? | 9 Yes | 18 No |
How to sort an unsorted array in java?
What is passing parameters in java?
What are the basic interfaces of java collections framework?
Print Vertical traversal of a Binary Tree.
Can you use this() and super() both in a constructor?
What is flush buffer?
What is the purpose of finalization?
What is a finally block? Is there a case when finally will not execute?
Can we override the private methods?
How to optimize the javac output?
real time example for deadlock,starvation,livelock
how does multithreading take place on a computer with a single cpu? : Java thread