Java Short Questions and Answer:
What's the difference between J2SDK 1.5 and J2SDK 5.0?
There's no difference, Sun Microsystems just re-branded this version.
Can an inner class declare inside of a method access local variables of this method?
It's possible if these variables are final.
Define Encapsulation.
Java encapsulation is a programming concept that a language should support in order to object's state from its behavior. This is typically facilitated by means of hiding an object's data representing its state from modification by external components.
What is the need for Java Language?
Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable.
What is the difference between C++ and Java?
• Both C++ and Java use similar syntax and are Object Oriented,
• Java does not support pointers. Pointers are inherently tricky to use and troublesome.
• Java does not support multiple inheritances because it causes more problems than it solves.
Instead, Java supports multiple interface inheritance, which allows an object to inherit many method signatures from different interfaces with the condition that the inheriting object must implement those inherited methods.
Post A Comment:
0 comments: