31. What are the different scopes for java variables? The different scopes for java variables are as follows:- Local Instance Static
Java Questions
-
-
21) What is the difference between instanceof() and isInstance()? instanceof() is used to see whether the object can be typecast without making use of the exception. isInstance() is to check …
-
11) What are the disadvantages of threads? The main disadvantage of using thread is that it is operating system dependent. It require to follow CPU cycle that various from system …
-
1) What is an object? An object is an entity, which consist of attributes, behaviors and qualities that describe the object.
- HeadstrongPlacement Papers with Answers
HeadStrong Java Placement Paper For Freshers Part-5
by Sby S41. What is the Collections API? The Collections API is a set of classes and interfaces that support operations on collections of objects. One example of class in Collections API …
- HeadstrongPlacement Papers with Answers
HeadStrong Java Placement Paper For Freshers Part-4
by Sby S31. What are the three types of priority? MAX_PRIORITY which is 10, MIN_PRIORITY which is 1, NORM_PRIORITY which is 5.
- HeadstrongPlacement Papers with Answers
HeadStrong Java Placement Paper For Freshers Part-3
by Sby S21. What is the difference between an array and a vector? Number of elements in an array are fixed at the construction time, whereas the number of elements in vector …
- HeadstrongPlacement Papers with Answers
HeadStrong Java Placement Paper For Freshers Part-2
by Sby S11. What are the access modifiers in Java? There are 3 access modifiers. Public, protected and private, and the default one if no identifier is specified is called friendly, but …
- HeadstrongPlacement Papers with Answers
HeadStrong Java Placement Paper For Freshers Part-1
by Sby S1. What is a class? A class is a blueprint, or prototype, that defines the variables and the methods common to all objects of a certain kind.