Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed to have the "look and feel" of the C++ language, but it is simpler to use than C++ and enforces an object-oriented programming model. Java can be used to create complete applications that may run on a single computer or be distributed among servers and clients in a network. It can also be used to build a small application module or applet for use as part of a Web page. Applets make it possible for a Web page user to interact with the page.
The major characteristics of Java are:
The programs you create are portable in a networkThe code is robust.Java is object-oriented.In addition to being executed at the client rather than the server, a Java applet has other characteristics designed to make it run fast.
Relative to C++, Java is easier to learn. (However, it is not a language you'll pick up in an evening!)
Java was introduced by Sun Microsystems in 1995 and instantly created a new sense of the interactive possibilities of the Web. Both of the major Web browsers include a Java virtual machine. Almost all major operating system developers (IBM, Microsoft, and others) have added Java compilers as part of their product offerings.
The Java virtual machine includes an optional just-in-time compiler that dynamically compiles bytecode into executable code as an alternative to interpreting one bytecode instruction at a time. In many cases, the dynamic JIT compilation is faster than the virtual machine interpretation.
Core Java Interviews are getting tough these days as the technology grows faster. To get through the Core Java interview one needs to update him/herself in a regular manner. Having said that, just before the interview, it is very important to have a quick glance of the reputed Core Java questions and answers to make yourself comfortable during the interview process. This is where DoAnswers.com helps you in renewing yourself on Core Java and various other technologies interview preparation.
11. Can an exception be rethrown?
Yes, an exception can be rethrown.
12. Can an inner class declared inside of a method access local variables of this method?
It's possible if these variables are final.
13. Can an Interface be final?
No
14. Can an Interface have an inner class?
Yes public interface abc { static int i=0; void dd; class a1 { a1 { int j; System.out.println("in interfia"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }
15. Can an object be garbage collected while it is still reachable?
A reachable object cannot be garbage collected. Only unreachable objects may be garbage collected.
16. Can an object's finalize() method be invoked while it is reachable?
An object's finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object's finalize() method may be invoked by other objects.
17. Can each Java object keep track of all the threads that want to exclusively access to it?
Yes
18. Can Java object be locked down for exclusive use by a given thread?
Yes. You can lock an object by putting it in a "synchronized" block. The locked object is inaccessible to any thread other than the one that explicitly claimed it
19. can the Kawa or any another J-editor export a .EXE file and to be has an install shield
I didn't know i need an Answer:.
20. Can there be an abstract class with no abstract methods in it?
Yes