RE: 1)whats the difference in data types of java and c...
The types supported by Java are the primitive data types classes interfaces and arrays. C++ supports a variety of types including primitive types classes structs unions and defined types. The C++ typedef construct does not have an analog in Java. C++ also supports enumerated data types and Java does not. C++ is much more flexible in providing implicit casting between types. Java supports C++-style casting operators but does not support implicit casting to the same extent as C++.
2.finally block can be used to handle any exception generated within a try block.it may be added immediately after the try block or after the last catch block.when a finally block is defined this is guranteed to execute regardless of whether or not an exception is thrown.
RE: 1)whats the difference in data types of java and c...
hi there The code enclosed in finally block is a must-execute code. Whether an exception is raised or not it doesn't matter. If finally code block is embedded after an exception-handling block then the control must pass to finally block either after try-catch or no try-catch.Shirisha K.