User:Nitesh641990/sandbox

Check Yourself 1. What is java? 2. What is a JIT Compiler? 3. Define the following: a. Class b. Object / Entity c. Instance/Object 4. Create a class Product described by prodId,prodName,prodPrice,prodCategory. Price of the product is determined based on the prodCategory: If the product is of Commercial category, price of the product is Rs.1500/- If the product is of Commercial category, price of the product is Rs.1250/- For any other category, price of the product is Rs.750/- Define the class with the required constructors. 5. What is encapsulation? 6. What is information hiding? – What are accessors and mutators? 7. What is a constructor? 8. List down any 10 keywords excluding keywords to indicate data types in java and mention its usage. 9. What are variables? 10. Mention list of primitive data types and its size. Also mention the default values of PDT. 11. What are reference data types? 12. What are Strings and list down ways to create them? 13. List down any 5 methods in String class with method signature. 14. What are arrays? How to create arrays? 15. When does ArrayIndexOutOfBoundsException raise? 16. List any five reasons /causes for compile time errors? 17. Mention the entry point signature for execution of java application. 18. Explain about PATH and CLASSPATH. 19. What does ”this” keyword refer to? 20. Explain the working of == with pdt and rdt. 21. Explain about ArrayList in java.List few of the methods from the API in ArrayList. Compare ArrayList with arrays in java. 22. What are command line arguments? 23. Explain about auto boxing and unboxing. 24. What are wrapper classes? List wrapper classes from java API. 25. What is the work of a byte code verifier? 26. Explain java as a platform independent language. 27. Explain about types of variables in java – Instance variables and static variables. 28. Explain about methods in java – non static and static methods. 29. When does NegativeArraySizeException raise? 30. What is pass by value and pass by reference? For Q.Nos -1,3,7,10,17,18-[Refer to 02_ProblemSolving_Introduction to OOP_Classesv1.0]