What is difference between function and method? A method is a function that is written in a class. We do not have functions in Java, instead we have methods. This means whenever a function is written in Java. It should be written inside the class only. But if we take C++, we can write […]
Category: Interview Questions
Java Interview Questions and Answers
How many parts in Java?
Why Pointers are eliminated in java?
Why Pointers are eliminated in java? Pointers lead to confusion for a programmer. Pointers may crash a program easily, for example, when we add two pointers, the program crashes immediately. The same thing could also happen when we forgot to free the memory allotted to a variable and re-allot it to some other variable. Pointers […]
Why should I choose Java software development?
Why should I choose Java software development? What are the Pros and Cons? Java Pros It’s free cost, download it and start creating application. Open source with quite large community base. Lots of available third party libraries, frameworks & IDE for fast development cycles(Spring, Hibernate, Struts, Eclipse, IntelliJ). Platform independent, write once run on most […]
Classes and Objects interview questions
Classes and Objects interview questions We know a class is a model for creating objects. this means the properties and actions of the objects are written in the class. Properties are represented by variables and actions of the objects are represented by methods. So a class contains variables and methods. The same variables and methods […]
One of the IT Companies Java Interview Questions and Answers-1
One of the IT Companies Java Interview Questions and Answers-1 1) How many objects will be created for the following scenario? Integer a1=10; Integer a1=10; Integer a1=20; Integer a1=15; Ans: 3 objects will be created. Explanation: Java storing value in the cache and while initialization will check in the cache, if it is exist […]
Differences Between Spring and Struts
We need to understand the differences between spring and struts. This is a very basic interview question. So we need to refresh our mind before going to any java interview. Differences Between Spring and Struts Spring Struts Java-J2ee framework software J2ee based web framework software Can be used to develop all kinds of java-j2ee applications including […]
Java Collection Framework Interview Questions and Answers
Here I am going to sharing list of Java Collection Framework Interview Questions and Answers. Which are asking in the interview frequently. Java Collection Framework Interview Questions and Answers NarayanaswamyHello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in the IT industry for more than 12 years. NarayanaTutorial is my […]
Java keywords interview questions and answers
Java keywords interview questions and answers Here I am going to sharing some of the important and frequently asking Java keywords interview questions and answers. So before going to java interview, refresh your mind go through the following Java keywords interview questions and answers. What is use of synchronized keyword? This keyword is used to […]
Java basics interview questions and answers
Why should I choose Java software development? What are the Pros and Cons? Java Pros It’s free cost, download it and start creating application. Open source with quite large community base. Lots of available third party libraries, frameworks & IDE for fast development cycles(Spring, Hibernate, Struts, Eclipse, IntelliJ). Platform independent, write once run on most […]