Core Java Interview Questions – Set 13

Why main() in java is declared as public static void main? What if the main method is declared as private? Public – main method is called by JVM to run the method which is outside the scope of project therefore the access specifier has to be public to permit call from anywhere outside the application … Read more

Interface Java Interview Questions – Set 12

What is JSP Implicit Objects Certain objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated servlet. The implicit objects re listed below: request :It represents the request made by the client. The request implicit object is generally used … Read more

Core Java Interview Questions – Set 12

Can a double value be cast to a byte Yes, a double value can be cast to a byte. Is the ternary operator written x : y ? z or x ? y : z It is written x ? y : z. Can an abstract class be final An abstract class may not be declared as final. What is the difference … Read more

Interface Java Interview Questions – Set 11

Define TaskTracker. TaskTracker is a node in the cluster that accepts tasks like MapReduce and Shuffle operations from a JobTracker. What is the difference between HDFS and NAS? HDFS data blocks are distributed across local drives of all machines in a cluster whereas, NAS data is stored on dedicated hardware. What is the purpose of … Read more

Core Java Interview Questions – Set 11

What is Domain Naming Service(DNS)?- It is very difficult to remember a set of numbers(IP address) to connect to the Internet. The Domain Naming Service(DNS) is used to overcome this problem. It maps one particular IP address to a string of characters. For example, www. mascom. com implies com is the domain name reserved for … Read more