what is the base class of all classes in java?

The super base class of all the Java classes is the java.lang.Object class. In Java, each Java descends from the Object. An axiom in mathematics is the starting point of reasoning. An axiom can be used to logically derive the other statements. The concept of Object being a Superclass in Java can be understood from … Read more

Why Java is not a purely Object-Oriented Language?

A language that supports or has features to treat everything inside the program as objects can be called a Purely Object-Oriented Language, Fully Object-Oriented Language or Completely Object-Oriented Language. The primitive data types like int, char, float, bool, etc must not be supported by a Purely Object-Oriented Language. For a programming language to be pure … Read more

what is javac?

The javac is the primary Java compiler included in the Java Development Kit (JDK). It converts the java source code into byte code.  

What all memory areas are allocated by JVM?

Being an abstract machine, JVM (Java Virtual Machine) as a program/software takes Java bytecode and converts the byte code (line by line) into machine understandable code. To run Java applications, it acts as a run-time engine. Along with being a part of the JRE(Java Runtime Environment), JVM is also the one that calls for the … Read more

PLSQL Interview Questions and Answers

What is PL/SQL? PL/SQL stands for Procedural Language extension of SQL. It was developed by Oracle Corporation in the late 1980s to enhance the capabilities of SQL. It is the procedural extension language for SQL. See more at: PLSQL overview. Explain PL/SQL Block sections. 1. Declaration section (optional). 2. Execution section (mandatory). 3. Exception handling … Read more

JavaScript Interview Questions and Answers

What is JavaScript? JavaScript is the most popular programming language. It is lightweight and commonly used to create interactive and dynamic web pages. It is developed by Netscape in 1995 and named as LiveScript which is later renamed to JavaScript. See more at: Javascript overview. What are the advantages of JavaScript? 1. Speed: JavaScript is … Read more

Log4j Interview Questions and Answers

What is log4j? Log4j is a simple, flexible and fast java based logging framework. It is thread safe and supports internationalization. See more at: Log4j overview. What are the components of log4j? 1. Logger: It is used to log the messages. 2. Appender: It is used to publish the logging information to the destination like … Read more

JUnit Interview Questions and Answers

What is Testing? Testing is the process of checking an application that it is working as expected. Working as expected means for a known input it must give the expected output. In other words testing is a process of verification and validation. See more at: Junit overview. What is Unit testing? Unit testing is the … Read more

Generics Interview Questions and Answers

What is Generics in Java? Generics is a way of implementing generic programming. Generic programming provides the facility like for a set of related methods, declare a single method that support any valid types. Generics are introduced in java 5. In java, generics are added because of Compile time type safety. See more at: Generics … Read more