Skip to main content

Posts

Showing posts from January, 2023

Advanced Java Interview Questions?

  Advanced Java Interview Questions 1. What Is A Reflection In Java? The reflection in Java is an API that is used to inspect other code which is present in the same node where it is running. This reflection is also used to give information about the instance to which an object belongs. 2. How To Differentiate The Interface And Class In Java? Even though both are used to achieve abstraction in Java. When it comes to the implementation point of view the abstract classes can have both abstract and non–abstract methods when it comes to the interface only abstract methods are allowed to include in the body of the interface. 3. Does Java Supports The Concept Of Pass-By -Reference ? No, java does not explicitly support the concept of pass-by-reference because there is the concept of pointers in java. In Java, everything is passed as values so we can java only supports the pass-by value and implicitly these are passed as references. 4. What Is Meant By JavaBean? Java Bean is a java class ...

Java Interview Questions?

  Java Interview Questions 1. Define Java Java is a general-purpose, Object-oriented programming and most widely used language which was developed by James Gosling in the 1990s. It’s a system-independent language where one can run the compiled byte code in any other system which contains JRE in it. 2. Explain The Features Of Java The features of Java include Platform Independent – The byte code generated on one computer can run on another system. Robust – Can easily handle errors during execution. Multithreaded – IT enables users to write programs that can perform many tasks at a time. Object Oriented – As we know everything in java is an Object. Performance – The inclusion of JIT Compilers in JRE increases their performance than other programming languages. 3. Define Variables In Java And Their Types. Variables are the storage locations that are used to store different types of data. In Java, there are three types of variables based on their scope. They are Local Variables – These...