• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

Java type casting of reference data type

If A is a super class of B then what’s the difference between these A obj = new B(); B obj = new B();

javatypecasting
18th Nov 2017, 2:04 PM
Ujjwal Singh
Ujjwal Singh - avatar
1 Answer
+ 1
https://stackoverflow.com/questions/13077009/java-difference-between-a-x-new-a-and-a-x-new-b-when-b-extends-a
18th Nov 2017, 2:14 PM
Eugene Fedorov
Eugene Fedorov - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
How to start learning Python programming?
1 Votes
Where is the bug?
1 Votes
Is it good for student to study C++ first?
0 Votes
im beginner
0 Votes
Active learner
0 Votes
Is code generated by chat GPT plagiarism?
0 Votes
How to fix this i feel something off
0 Votes
How to add two strings together in ts or css
0 Votes
finding my compiler path
0 Votes
(Resolved) Error: Gcc undefined reference to sha 256 đŸ™„đŸ€ŠđŸœâ€â™€ïž
1 Votes