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? class Parent { public Parent() { this.display(); } public void display() { System.out.println(“In parent display method”); } } public class Child extends Parent { public Child() { this.display(); } public void display() { System.out.println(“In …

Test Your Java Tricky Questions Read More »

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 so that they can communicate …

Applets Interview Questions Read More »

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 time as compilation is already …

Exceptions Interview Questions Read More »

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 is changed, the value in …

String StringBuffer Interview Questions Read More »

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) Same rules of C/C++ can …

Arrays Java Interview Questions Read More »