Java Interview Questions and Answers for Freshers Pdf - 1
What are class, constructor and primitive data types?
Class is a template for multiple objects with similar features and it is a blue print for objects. It defines a type of objects according to the data the object can hold and the operations the object can perform.
Constructor is a special kind of method that determines how an object is initialized when created.
Primitive data types and 8 types and they are
byte, short, int, long
float, double, boolean, char
What is an interface?
It is a task for specific contract.
It does not actually define any implementations.
It is not all a class. It won’t allow constructors.
What is recursion?
It is a process of defining something in terms of itself.
What is static?
Static is the keyword, which is used to create a member that can be used by itself. Without reference to a specific instance.
It is a class level variable. It is illegal to refer to any instance variables inside of a static method.
What are methods?
Methods are functions that operate on instances of classes in which they are defined. Objects can communicate with each other using methods and can call methods in other classes.
Method definition has four parts. They are name of the method; type of object or primitive type the method returns, a list of parameters and the body of the method. A method’s signature is a combination of the first three parts mentioned above.
- Java Interview Questions and Answers
- Top 1000+ Java Interview Questions and Answers Pdf
- Top 500+ Advanced Java Interview Questions 2020-2021
- Java Interview Questions and Answers for Freshers Pdf
- Java Interview Questions and Answers for Experienced Pdf
- Java Programming Basics Interview Questions
- Java OOPS Interview Questions for 3 years experienced
- Basic Java Programs Asked in Interview with Answers Pdf
- Java Programming Interview Questions and Answers
- C | C++ | Java Interview Questions and Answers
100+ Statement and Courses of Action Practice Questions Pdf More
100+ Statement and Course of Action Questions for SBI PO More
100+ Statement and Courses of Action Questions and Answers More
1001+ Puzzle Questions and Answers Pdf Download More
Top 1000+ Logic Maths IQ Test Questions and Answers More
Top 100+ World History Gk Questions & Answers Pdf More
GK Current Affairs Quiz Questions and Answers 2019-2020 More
National Organisation Quiz Questions and Answers Pdf More
Fill in the Blanks with Suitable Preposition for TNPSC Group 1, 2, 2a, 4, VAO More
Solar System General Knowledge Questions and Answers More