JAVA PART 1 - Shambhu Patil
JAVA PART 1 - Shambhu Patil
Shambhugouda Patil
Test Yantra Software Solutions
Bengaluru, Karnataka
COMMAND PROMPT
==========================================
TOKENS
===========================================
1.What is Variable?
2.Based on the type how many types of Variables are there? And list the types
3.What is Primitive Variable ? And What is the syntax to create Primitive Variable ?
4.What is Non Primitive Variable (Reference variable ) ? And What is the syntax to create
Non Primitive Variable ?
5.What is Datatype ? How many types are there?
6.What is Primitive Datatype? How many types are there? And list all the Primitive
Datatypes
7.What is Non-Primitive Datatype? How many types are there? And list some non
Primitive data types
8.In java, Whether the class name is a Non-Primitive Datatype?
9.What is Local Area? In local area which variables can we able to create ?
10.What is Global Area? In Global area which variables can we able to create ?
11.Based on the scope how many types of variables are there? And list the types
12.What is Local Variable? And explain about characteristics of Local Variable.
13.Can we able to print local variables without initialization ?
OPERATORS
===========================================
1.What is Typecasting and how many types of typecasting are there?
2.What is Primitive Typecasting and which are the types of Primitive Typecasting?
3.Expalin about Widening ? Write one example for widening.
4.Explain about Narrowing ? Write one example for narrowing.
5.Explain about Typecast Operator.
6.What is the difference between Typecasting and Type conversion
7.Explain about Operators?
8.Based on the operands how many types of operators are there?
9.Based on the task how many types of operators are there?
10.What is Operand and what is Expression?
11.Explain about Arithmetic Operators.
12.Explain about Assignment Operators.
13.Explain about Relational Operators
14.Explain about conditional Operator
15.Explain about logical Operators.
16.Explain about Increment and Decrement Operator
METHODS
=============================================
1.What is Method and what is the syntax to create a Method
2.Is Access Modifiers And Modifiers are Mandatory in Methods.
3.What is Access Modifiers and Explain their types
4.What is Modifiers and which are the different types of modifiers we have?
5.What is Return Type And What we can able to Write in the position of return Type
6.Explain about Method Terminologies (Method Signature, Method Declaration and
Method definition)
7.Types of Methods Based On the Arguments
8.How to call a method ?
9.What do you mean by calling method and Called Method
10.What process will Happen When The Method is Called
11.Is Their any keyword to terminate the Execution of the method and Transfer back the
Control to the caller
12.Can we call void Method inside Print Statements
13.which keyword is used to return the Promised value in return Type of Method
14.What is Actual Arguments
15.What is Formal Arguments
16.Who will call Main Method
17.Execution starts And Ends in which Method ?
18.Is Main Method Mandatory, what Happens When Main Method is Not Their and if
Programmer try to Compile and Run?
19.Can a programmer use String as a Return Type in a Method ?
20.What is The Convention for writing a method ?
21.is Return Type Mandatory ?
22.Can we have a method inside a method ?
23.What is dynamic read ?
24.Explain the steps to read the data from the user ?
25.In which package Scanner class is available ?
STATIC MEMBERS
===========================================
1.Explain about static.
2.Explain about static variables and their characteristics?
3.Explain about static methods and their characteristics?
4.Explain about static initializers?
5.How to access static variable within the class and outside the class?
6.How to access static method within the class and outside the class?
7.Explain about class loading process?
8.What is static context?
9.Inside the static context can we able to access static members directly ?
10.Inside the static context can we able to access non static members directly ?
For Queries :
============