java questions

Test Your Java Tricky Questions

Test Your Java Tricky Questions Question 1 on Test Your Java Tricky Questions: What is the output of the following code?

Output: In child display method In child display method (Your guess may be: In parent display method and In child display method). Reason: Child class is not explicitly…

AWT Interview Questions

What is AWT?AWT stands for Abstract Window Toolkit and infact it is a package – java.awt. The classes of this package give the power of creating a GUI environment to the programmer in Java. What is component?By definition, the subclass of a java.awt.Component class is known as a component. A…

Applets Interview Questions

Read all Applets Interview Questions. What is an applet? (of Applets Interview Questions) Applet is a Java program with special syntax to execute in a browser. Applet does not contain main() method. What is the importance of applets in Java coding? (of Applets Interview Questions)Applets can be loaded on client-side…

IO Java Interview Questions

What is a IO stream?It is a stream of data that flows from source to destination. Good example is file copying. Two streams are involved – input stream and output stream. An input stream reads from the file and stores the data in the process (generally in a temporary variable).…

Exceptions Interview Questions

What is an exception?The English literature meaning is "something that happens unusually (very rarely)". It is the same meaning with Java also. Exception can be defined as a problem occurring at runtime that prevents the execution of the program. Or to say, an exception is a runtime problem (not compile…

String StringBuffer Interview Questions

String StringBuffer Interview Questions Read well String StringBuffer Interview Questions. What is a String in Java?In Java, String does not terminate with \0. String is a class from java.lang package and can be manipulated with String class methods. How strings are immutable? In case of variables, if a variable value…

Arrays Java Interview Questions

What is the advantage of arrays in a programming language? (of Arrays Java Interview Questions) Arrays avoid the declaration of a number of variables. With one array variable, number of values can be stored, using index numbers. What are the features of arrays in Java? (of Arrays Java Interview Questions)…