What is Difeerence between List obj=new ArrayList(); and
ArrayList obj=new ArrayList()?
Answer / Ram Prakash Soni
There is no difference between List obj=new ArrayList<>() and ArrayList obj=new ArrayList<>. Both lines of code create a new instance of the ArrayList class and initialize it as a list.
| Is This Answer Correct ? | 0 Yes | 0 No |
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What Is a Polymorphism? How many types of polymorphism and whats that use in application?
What is difference between new and malloc?
Can an interface inherit a class?
How do you define a class in oop?
What is constructor in oop?
Why we are use # in begning of programme of c++.
What is the Advantage of Interface over the Inheritance in OOPS?
What is oops in simple words?
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
Why interface is used?
What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass