Important Questions [10]
- Name the keyword which indicates that a method has no return type.
- Name the Keyword Which: Makes the Variable as a Class Variable.
- Evaluate the Following Expression If the Value Ofx=2,Y=3 and Z=1. V=X+–Z+Y+ + +Y
- What is the Difference Between the Scanner Class Functions Nextq and Nextline()?
- System.out.print("BEST "); System.out.println("OF LUCK"); Choose the correct option for the output of the above statements.
- Identify the statement given below as assignment, increment, method invocation or object creation statement. System.out.println(“Java”);
- Design a class with the following specifications: void print() Display student name, age, mks and stream allocated. Call all the above methods in main method using an object.
- Define a Class Named Parkinglot with the Following Description : Instance Variables/Data Members: Int Vno — to Store the Vehicle Number
- Identify the literal given below: 0.5
- What Are the Values Stored in Variables R! and R2: (I) Double R1=Math.Abs(Math.Min(-2.83,-5.83)); (Ii) Double R2=Math.Sqrt(Math.Floor(16.3));
