ANS- Path and Classpath are operating system level environment variales. Path is used define where the system can find the executables(.exe) files and classpath is used to specify the location .class files.
QUE- What is the base class of all classes?
ANS- Java.lang.Object
ANS- Java doesn't support multiple inheritance.
ANS- Java uses primitive data types and hence is not a pure object oriented language.
QUE- Are arrays primitive data types?
ANS- In Java, Arrays are objects.
QUE- What are local variables?
QUE- What are local variables?
ANS- Local variables are those which are declared within a block of code like methods. Local variables should be initialised before accessing them.
0 comments:
Post a Comment