ThoughtWorks – Java Interview Questions
Here is the list Java Interview Questions which are recently asked in ThoughtWorks company. These questions are included for both Freshers and Experienced professionals.
1. What do you know about Java?
Java is a powerful, general purpose object-oriented programming language that produces software for multiple platforms. When a programmer writes a Java application, the compiled code which is also known as bytecode can runs on most operating systems (OS), including Windows, Linux and Mac OS.
2. What are the supported platforms by Java Programming Language?
There are four platforms of the Java programming language: Java Platform, Standard Edition (Java SE) Java Platform, Enterprise Edition (Java EE) Java Platform, Micro Edition (Java ME).
3. List any five features of Java?
- Simple.
- Object Oriented.
- Robust.
- Platform Independent.
- Secure.
- Multi-Threading.
4. Why is Java Architectural Neutral?
Java is architecture neutral because there are no implementation dependent features, for example, the size of primitive types is fixed. The format of this system-independent binary code is architecture neutral.
5. How Java enabled High Performance?
When compared to many other popular modern languages (Python, Ruby, PHP), Java is actually significantly faster for most uses. It doesn't quite match C or C++ but for many tasks it's close enough. The real performance concerns ought to be about how much memory it ends up using. Java uses Just-In-Time compiler to enable high performance.
6. Why Java is considered dynamic?
Java is considered dynamic because of Bytecode. The source code which is written in one platform that code can be executed in any platform. It loads the class file during runtime only. Hence, anything that happens in runtime is dynamic.
7. List two Java IDE’s?
Eclipse –is a Java IDE that is one of the 3 biggest and most popular IDE's in the world.
BlueJ - is a Java IDE that is widely used by Java programmers in the world.
8. List some Java keywords(unlike C, C++ keywords)?
The few Java keywords are import, super, finally, etc.const or goto.
Free PDF : Get our updated Java Course Content pdf
9. What do you mean by Object?
An object is an abstract data type with the addition of polymorphism and inheritance. Rather than structure programs as code and data, an object-oriented system integrates the two using the concept of an "object.
10. Define class?
A class is a user-defined type that describes what a certain type of object will look like. A class description consists of a declaration and a definition.
11. What is a Local Variable?
Local variables are the workhorse of Java and allow methods to compute significant results by cheaply storing intermediate values. Unlike a field, a local variable is declared, initialized, and used in the same block.
12. What is a Instance Variable?
An instance variable is a variable which is declared in a class but outside of constructors, methods, or blocks. Instance variables are created when an object is instantiated, and are accessible to all the constructors, methods, or blocks in the class.
13. What is a Class Variable?
Static variables are also known as Class variables. These variables are declared similarly as instance variables, the difference is that static variables are declared using the static keyword within a class outside any method constructor or block.
14. What is the default value of byte datatype in Java?
Zero.The byte data type is an 8-bit signed two's complement integer. It has a minimum value of -128 and a maximum value of 127.
15. What do you mean by Access Modifier?
Access Modifiers can define how the stored data variables of a class can be accessed and modified. They are public, private, protected.
16. What is protected access modifier?
The members of a class that are declared protected are only accessible to a class derived from it. Data members of a class are declared protected by adding a single underscore '_' symbol before the data member of that class.
Get Answer for all the above questions and place in your dream company
Wants to Become an Expert
in Java?
Know MoreTOP MNC's JAVA INTERVIEW QUESTIONS & ANSWERS
Here we listed all Java Interview Questions and Answers which are asked in Top MNCs. Periodically we update this page with recently asked Questions, please do visit our page often and be updated in Java.