java coding test questions and answers
Java Objective Type Q&A
Object type Q&A
1. The first version of Java was actually named Oak
2. A single line statement in Java ends with semicolon
3. The execution of Java application begin at main method
4. Features of java is called as Java Buzzwords
oops concept & key word part
- object are combination of code and data that are treated as a single unit 
- In objects, the behavior of the real-world entities is represented by method 
- In objects, data members/data elements define the state of an object 
- Class is a model or blue -print from which an object is created. 
- Binding the data to methods of an object is called encapsulation 
- Polymorphism provides the mechanism of ‘one name but different implementations’ 
- A class method is used to assign values to private instance variables of a class 
- Inheritance enable software reusability which saves time in development encourages using previously proven and quality software components 
- A method call resolved at compile-time is referred to as early binding and a method call resolved at run-time is called late binding 
- In a class global variables are declared using the keyword static 
- The word integer is not a java keyword 
- If class A inherits class B, class A is called derived class and class B is called base class 
- number ,Number ,sum _$, averages are legal identifier
- 44sum ,all/clear ,end-to-end are illegal identifier
Comments
Post a Comment