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 |
What is instance means in java?
How do you implement tree mirroring in java?
what is the difference b/w static and final methods?
Explain 5 io best practices?
Difference between this(), super()?
12 Answers College School Exams Tests, Oracle,
What are keyboard events?
Can you declare a static variable in a method?
What is meant by main method?
what is domain object
What is the difference between yield() and sleep()?
class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes....
What is one third plus one third as a fraction?