What is the difference between class & structure?
Answer / Rajani
In C++, a class is a user-defined data type that encapsulates data (fields) and functions (methods). A struct in C++ is also a user-defined data type but it doesn't support any member function by default. In Java, there are no structures; only classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the difference between future and callable interface in java?
What is matcher in java?
Why do we use regex?
What is Ideal Design of Class?
What is string substring?
What is the full form of jpeg?
Enlist diffrent types of inheritance supported by java?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
What happens when the main() isn't declared as static?
What is static binding and where it occurs?
Does a class inherit the constructors of its superclass in java programming?
How can you eliminate duplicates?