![]() #JAVA COURSE MATERIAL INFOSYS CODE#These new data types are used to create objects.Īnswer: JVM is Java Virtual Machine which is a run time environment for the compiled java class files.ģ.What is the right data type to represent a price in Java?Īnswer: BigDecimal, if memory is not a concern and Performance, is not critical, otherwise double with predefined precision.Ĥ.Does Java support multiple inheritances? Answer: Java doesn’t support multiple inheritances.ĥ.What are the supported platforms by Java Programming Language?Īnswer: Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX/Linux like HP-Unix, Sun Solaris, Red hat Linux, Ubuntu, Cent OS, etc.Īnswer: Some features include Object Oriented Platform IndependentĪnswer: When a Java program contains more than one methods with the same name but different properties, then it is called method overloading.Ĩ.What restrictions are placed on the location of a package statement within a source code file? Answer: A package statement must appear as the first line in a source code file (eliminating blank lines and comments).ĩ.What method is used to specify a container’s layout?Īnswer: The setLayout() method is used to specify a container’s layout.ġ0.What is the immediate superclass of the Applet class?Īnswer: The Panel class is the immediate superclass of the Applet class.ġ1.What are the access modifiers in Java?Īnswer: There are 3 access modifiers. Answer: Java encapsulates the codes in various classes which define new data types. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |