Category: Javaskool Category
In the case of Public, Private and Protected, that is used to describe which programs can access that class or method: public : any other class from any package can instantiate and execute the...
The two common features that are used are: 1. Synchronized keyword – Used to synchronize a method or a block of code. When you synchronize a method, you are in effect synchronizing the code...
Java does not support multiple inheritence directly but it does thru the concept of interfaces. We can make a class implement a number of interfaces if we want to achieve multiple inheritence type of...
1.It separates the working/functional code from the error-handling code by way of try-catch clauses. 2.It allows a clean path for error propagation. If the called method encounters a situation it can’t manage, it can...
Abstract keyword declares either a method or a class. If a method has a abstract keyword in front of it,it is called abstract method.Abstract method hs no body. It has only arguments and return...
Java is compiled to be a byte code which is the intermediate language between source code and machine code. This byte code is not platform specific and hence can be fed to any platform....
What does the keyword “synchronize” mean in java. When do you use it? What are the disadvantages of synchronization? Synchronize is used when you want to make your methods thread safe. The disadvantage of...
Native methods are methods written in other languages like C, C++, or even assembly language. You can call native methods from Java using JNI. Native methods are used when the implementation of a particular...
JavaBeans is a portable, platform-independent component model written in the Java programming language, developed in collaboration with industry leaders. It enables developers to write reusable components once and run them anywhere — benefiting from...
What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both? Vector can contain objects of different types whereas array can contain objects only of a single type....
Recent Comments